joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a60
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4171db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebp
push esi
mov dword [esp + 8], 0x1e
call fcn.00404420
mov esi, dword [esp + 0x198]
cmp esi, eax
jae 0x404aa9
push esi
call fcn.00404890
mov ebp, dword [esp + 0x1a0]
add esp, 4
cmp ebp, eax
jb 0x404ac5
pop esi
mov eax, 0x1e
pop ebp
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
add esp, 0x18c
ret
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x84]
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], ecx
push 0x104
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], ecx
call fcn.00404370
add esp, 8
test al, al
jne 0x404b3b
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
add esp, 0x18c
ret
push ebx
push edi
lea edi, [esp + 0x8c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404b45
mov eax, dword [str.loading_ad_ad.ini]
mov ecx, dword [0x4188e4]
mov edx, dword [0x4188e8]
mov dword [edi], eax
mov eax, dword [0x4188ec]
mov dword [edi + 4], ecx
mov cx, word [0x4188f0]
mov dword [edi + 8], edx
mov dl, byte [0x4188f2]
push ebp
mov dword [edi + 0xc], eax
push str.timer_u
lea eax, [esp + 0x3c]
mov word [edi + 0x10], cx
push 0x1f
push eax
mov byte [edi + 0x12], dl
call fcn.0040cd4b
lea ecx, [esp + 0x80]
push esi
push ecx
call fcn.0040ac50
push eax
lea edx, [esp + 0x70]
push str.FlashGroup
xor edi, edi
push edx
mov dword [esp + 0x1bc], edi
call fcn.00401ad0
mov ecx, dword [eax + 0x18]
mov esi, 0x10
add esp, 0x24
cmp ecx, esi
jb 0x404bcf
mov eax, dword [eax + 4]
jmp 0x404bd2
add eax, 4
lea ecx, [esp + 0x8c]
push ecx
push 0x20
lea edx, [esp + 0x1c]
push edx
push edi
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov eax, dword [esp + 0x6c]
setne bl
cmp eax, esi
jb 0x404c08
mov edx, dword [esp + 0x58]
push edx
call fcn.0040c868
add esp, 4
cmp dword [esp + 0x88], esi
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], edi
mov byte [esp + 0x58], 0
jb 0x404c2f
mov eax, dword [esp + 0x74]
push eax
call fcn.0040c868
add esp, 4
pop edi
test bl, bl
pop ebx
je 0x404c44
lea ecx, [esp + 0xc]
push ecx
call fcn.0040cd46
add esp, 4
jmp 0x404c48
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x188]
imul eax, eax, 0xea60
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18c
ret
Function at 0x405200
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x417279
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebp
push esi
call fcn.00404420
mov ebp, dword [esp + 0xec]
cmp ebp, eax
jae 0x405241
push ebp
call fcn.00404890
mov esi, dword [esp + 0xf4]
add esp, 4
cmp esi, eax
jb 0x40525a
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
add esp, 0xe0
ret
push edi
xor edi, edi
push edi
push 0x418454
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
call fcn.00401970
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xec], edi
call fcn.004047f0
mov ecx, dword [esp + 0x2c]
add esp, 4
push edi
push 0x418454
push ecx
push edi
lea ecx, [esp + 0x24]
call fcn.004045a0
test eax, eax
jne 0x4052dc
cmp dword [esp + 0x2c], 0x10
jb 0x4052c2
mov edx, dword [esp + 0x18]
push edx
call fcn.0040c868
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
add esp, 0xe0
ret
push ebx
mov ebx, 0x10
xor eax, eax
mov ecx, ebx
lea edi, [esp + 0xa4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x88]
push esi
push eax
call fcn.0040ac50
push eax
lea ecx, [esp + 0x5c]
push str.weight
push ecx
mov byte [esp + 0x100], 1
call fcn.00401ad0
mov esi, eax
lea edx, [esp + 0x80]
push ebp
push edx
mov byte [esp + 0x108], 2
call fcn.0040ac50
push eax
lea eax, [esp + 0x54]
push str.FlashGroup
push eax
mov byte [esp + 0x114], 3
call fcn.00401ad0
mov ecx, dword [esp + 0x58]
add esp, 0x28
cmp ecx, ebx
mov ecx, dword [esp + 0x1c]
jae 0x405358
lea ecx, [esp + 0x1c]
cmp dword [esi + 0x18], ebx
jb 0x405362
mov esi, dword [esi + 4]
jmp 0x405365
add esi, 4
cmp dword [eax + 0x18], ebx
jb 0x40536f
mov eax, dword [eax + 4]
jmp 0x405372
add eax, 4
push ecx
push 0x40
lea ecx, [esp + 0xac]
push ecx
xor edi, edi
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov eax, dword [esp + 0x4c]
setne byte [esp + 0x13]
cmp eax, ebx
jb 0x4053a4
mov edx, dword [esp + 0x38]
push edx
call fcn.0040c868
add esp, 4
cmp dword [esp + 0x84], ebx
mov esi, 0xf
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edi
mov byte [esp + 0x38], 0
jb 0x4053cc
mov eax, dword [esp + 0x70]
push eax
call fcn.0040c868
add esp, 4
cmp dword [esp + 0x68], ebx
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], edi
mov byte [esp + 0x70], 0
jb 0x4053f2
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0040c868
add esp, 4
cmp dword [esp + 0xa0], ebx
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], edi
mov byte [esp + 0x54], 0
jb 0x405418
mov edx, dword [esp + 0x8c]
push edx
call fcn.0040c868
add esp, 4
mov al, byte [esp + 0x13]
test al, al
je 0x405434
lea eax, [esp + 0xa4]
push eax
call fcn.0040cd46
add esp, 4
mov esi, eax
jmp 0x405438
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x30], ebx
pop ebx
jb 0x40544c
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040c868
add esp, 4
mov ecx, dword [esp + 0xe0]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xe0
ret
Function at 0x405470
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4172bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push esi
push edi
call fcn.00404420
mov ebx, dword [ebp + 8]
cmp ebx, eax
jae 0x405513
push ebx
call fcn.00404890
mov esi, dword [ebp + 0xc]
add esp, 4
cmp esi, eax
jae 0x405513
xor edi, edi
push edi
push 0x418454
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
call fcn.00401970
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x1b0], edi
call fcn.004047f0
mov ecx, dword [esp + 0x24]
add esp, 4
push edi
push 0x418454
push ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.004045a0
test eax, eax
jne 0x40552a
cmp dword [esp + 0x24], 0x10
jb 0x405513
mov edx, dword [esp + 0x10]
push edx
call fcn.0040c868
add esp, 4
xor al, al
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x7c]
push esi
push eax
call fcn.0040ac50
push eax
lea ecx, [esp + 0x50]
push 0x41898c
push ecx
mov byte [esp + 0x1c0], 1
call fcn.00401ad0
mov esi, eax
lea edx, [esp + 0x3c]
push ebx
push edx
mov byte [esp + 0x1c8], 2
call fcn.0040ac50
push eax
lea eax, [esp + 0x80]
push str.FlashGroup
push eax
mov byte [esp + 0x1d4], 3
call fcn.00401ad0
mov edx, dword [esp + 0x4c]
mov ecx, 0x10
add esp, 0x28
cmp edx, ecx
mov edx, dword [esp + 0x10]
jae 0x4055a5
lea edx, [esp + 0x10]
cmp dword [esi + 0x18], ecx
jb 0x4055af
mov esi, dword [esi + 4]
jmp 0x4055b2
add esi, 4
cmp dword [eax + 0x18], ecx
jb 0x4055bc
mov eax, dword [eax + 4]
jmp 0x4055bf
add eax, 4
push edx
push 0x104
lea ecx, [esp + 0xa0]
push ecx
xor edi, edi
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov eax, dword [esp + 0x78]
setne bl
cmp eax, 0x10
jb 0x4055f3
mov edx, dword [esp + 0x64]
push edx
call fcn.0040c868
add esp, 4
cmp dword [esp + 0x40], 0x10
mov esi, 0xf
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], edi
mov byte [esp + 0x64], 0
jb 0x405619
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040c868
add esp, 4
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
mov byte [esp + 0x2c], 0
jb 0x40563a
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0040c868
add esp, 4
cmp dword [esp + 0x94], 0x10
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], edi
mov byte [esp + 0x48], 0
mov byte [esp + 0x1ac], 0
jb 0x405669
mov edx, dword [esp + 0x80]
push edx
call fcn.0040c868
add esp, 4
test bl, bl
je 0x405691
lea eax, [esp + 0x98]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405677
mov ecx, dword [ebp + 0x10]
sub eax, edx
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.00401970
cmp dword [esp + 0x24], 0x10
jb 0x4056a5
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040c868
add esp, 4
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ad40
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x18], 0x10
push ebp
push esi
push edi
lea esi, [ebx + 4]
jb 0x40ad56
mov eax, dword [esi]
jmp 0x40ad58
mov eax, esi
mov edi, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x1c]
push ecx
push 2
push 0
push eax
push edi
call ebp
test eax, eax
jne 0x40adc0
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x18], 0x10
jb 0x40ad82
mov eax, dword [eax + 4]
jmp 0x40ad85
add eax, 4
mov edx, dword [esp + 0x24]
push 4
push edx
push 4
push 0
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x40adb1
mov ecx, dword [esp + 0x1c]
push ecx
call esi
test eax, eax
je 0x40ae2a
mov edx, dword [esp + 0x1c]
push edx
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
cmp eax, 2
jne 0x40ae39
push ebx
push edi
call fcn.0040acf0
add esp, 8
test al, al
je 0x40ae39
cmp dword [ebx + 0x18], 0x10
jb 0x40addb
mov esi, dword [esi]
lea eax, [esp + 0x10]
push eax
push 2
push 0
push esi
push edi
call ebp
test eax, eax
jne 0x40ae39
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x18], 0x10
jb 0x40adfb
mov eax, dword [eax + 4]
jmp 0x40adfe
add eax, 4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push 4
push ecx
push 4
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x40ae32
mov eax, dword [esp + 0x10]
push eax
call esi
test eax, eax
jne 0x40ae32
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret

Function at 0x40ae50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, 4
mov dword [esp], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x18]
push esi
mov esi, 0x10
cmp ecx, esi
jb 0x40ae75
mov eax, dword [eax + 4]
jmp 0x40ae78
add eax, 4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aee5
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x18], esi
jb 0x40aea2
mov eax, dword [eax + 4]
jmp 0x40aea5
add eax, 4
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x40aede
mov eax, dword [esp + 0x14]
push eax
call esi
test eax, eax
jne 0x40aede
mov al, 1
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x14]
push ecx
call esi
xor al, al
pop esi
add esp, 8
ret
Function at 0x40c4d9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040c7c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40c574
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x41e278]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40c574
cmp eax, 1
je 0x40c595
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40c574
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40c541
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40c570
xor eax, eax
inc eax
jmp 0x40c5b4
cmp edi, eax
jae 0x40c578
xor eax, eax
jmp 0x40c5b4
cmp eax, esi
jae 0x40c57f
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41e278]
jmp 0x40c598
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d3cb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x41e2b8], esi
push edi
jne 0x40d3eb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x41e2b4], esi
mov byte [0x41e2b0], al
jne 0x40d451
mov ecx, dword [0x41f9d4]
test ecx, ecx
je 0x40d432
mov eax, dword [0x41f9d0]
sub eax, 4
cmp eax, ecx
jmp 0x40d42b
mov eax, dword [eax]
test eax, eax
je 0x40d41d
call eax
mov eax, dword [0x41f9d0]
sub eax, 4
cmp eax, dword [0x41f9d4]
mov dword [0x41f9d0], eax
jae 0x40d415
mov eax, 0x41d040
mov esi, 0x41d048
cmp eax, esi
mov edi, eax
jae 0x40d451
mov eax, dword [edi]
test eax, eax
je 0x40d44a
call eax
add edi, 4
cmp edi, esi
jb 0x40d442
mov eax, 0x41d04c
mov esi, 0x41d054
cmp eax, esi
mov edi, eax
jae 0x40d470
mov eax, dword [edi]
test eax, eax
je 0x40d469
call eax
add edi, 4
cmp edi, esi
jb 0x40d461
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40d48a
push dword [ebp + 8]
mov dword [0x41e2b8], 1
call fcn.0040d331
pop ebp
ret
Function at 0x40d8c3
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x418df8
call fcn.0040f750
mov edi, 0x94
mov eax, edi
call fcn.0040c7c0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x41e278], ecx
mov eax, dword [esi + 4]
mov dword [0x41e284], eax
mov edx, dword [esi + 8]
mov dword [0x41e288], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41e27c], esi
cmp ecx, 2
je 0x40d923
or esi, 0x8000
mov dword [0x41e27c], esi
shl eax, 8
add eax, edx
mov dword [0x41e280], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40d95e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d95e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40d976
cmp eax, 0x20b
je 0x40d963
mov dword [ebp - 0x1c], esi
jmp 0x40d98a
cmp dword [ecx + 0x84], 0xe
jbe 0x40d95e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40d984
cmp dword [ecx + 0x74], 0xe
jbe 0x40d95e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040f918
pop ecx
test eax, eax
jne 0x40d9b6
cmp dword [0x41e2c4], 1
jne 0x40d9a3
call fcn.00412b6b
push 0x1c
call fcn.004129f4
push 0xff
call fcn.0040d331
pop ecx
pop ecx
call fcn.00412799
mov dword [ebp - 4], esi
call fcn.00411a26
test eax, eax
jge 0x40d9cf
push 0x1b
call fcn.0040d89e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41f9c8], eax
call fcn.00413047
mov dword [0x41e2bc], eax
call fcn.00412fa5
test eax, eax
jge 0x40d9f5
push 8
call fcn.0040d89e
pop ecx
call fcn.00412d72
test eax, eax
jge 0x40da06
push 9
call fcn.0040d89e
pop ecx
push 1
call fcn.0040d361
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40da1c
push eax
call fcn.0040d89e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00412d15
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40da3d
movzx eax, word [ebp - 0x40]
jmp 0x40da40
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004028d0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40da5e
push edi
call fcn.0040d48c
call fcn.0040d4ae
jmp 0x40da90
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040f78b
ret
Function at 0x41048c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4104ba
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4104c1
cmp ebx, dword [eax + 4]
jae 0x4104c1
xor eax, eax
jmp 0x4106b1
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4104d2
xor eax, eax
inc eax
jmp 0x4106b0
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4104e8
cmp ecx, edx
jae 0x41062d
cmp dword [eax + 4], 0
je 0x4104f1
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4104d9
cmp dword [ebp + 8], 0
je 0x410513
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41062d
cmp eax, esi
jae 0x41062d
mov eax, dword [0x41e2f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x410538
cmp dword [esi*4 + 0x41e2f8], edi
je 0x410631
inc esi
cmp esi, eax
jl 0x410526
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4106ad
cmp dword [ebp - 8], 0x1000000
jne 0x4106ad
test byte [ebp - 0xc], 0xcc
je 0x4105b6
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4106ad
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4106ad
cmp word [eax + 0x18], 0x10b
jne 0x4106ad
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4106ad
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4105b6
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4105b6
test byte [ecx + 0x27], 0x80
jne 0x41062d
push 1
push 0x41e338
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4104ca
mov ecx, dword [0x41e2f0]
test ecx, ecx
mov edx, ecx
jle 0x4105ea
lea eax, [ecx*4 + 0x41e2f4]
cmp dword [eax], edi
je 0x4105ea
dec edx
sub eax, 4
test edx, edx
jg 0x4105de
test edx, edx
jne 0x41061b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4105f7
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41060f
lea eax, [edx*4 + 0x41e2f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4105fd
cmp ecx, 0x10
jge 0x41061b
inc ecx
mov dword [0x41e2f0], ecx
push 0
push 0x41e338
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4104ca
xor eax, eax
jmp 0x4106b0
test esi, esi
jle 0x4104ca
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41e338
call ebx
test eax, eax
jne 0x4104ca
cmp dword [esi*4 + 0x41e2f8], edi
je 0x410687
mov eax, dword [0x41e2f0]
lea esi, [eax - 1]
test esi, esi
jl 0x410675
cmp dword [esi*4 + 0x41e2f8], edi
je 0x410671
dec esi
jns 0x410665
test esi, esi
jge 0x410685
cmp eax, 0x10
jge 0x410680
inc eax
mov dword [0x41e2f0], eax
lea esi, [eax - 1]
jmp 0x410687
je 0x41069f
xor ecx, ecx
test esi, esi
jl 0x41069f
lea eax, [ecx*4 + 0x41e2f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41068d
push 0
push 0x41e338
call ebx
jmp 0x4104ca
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411838
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x41f880]
push edi
jae 0x411a0d
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x41f8a0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x411a0d
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4118e3
test dl, 2
jne 0x4118e3
test dl, 0x48
je 0x4118ad
cmp byte [eax + 5], 0xa
je 0x4118ad
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4118f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4118de
mov dword [0x41e270], ecx
jmp 0x411a14
cmp eax, 0x6d
jne 0x4118ea
xor eax, eax
jmp 0x411a21
push eax
call fcn.00412995
pop ecx
jmp 0x411a1e
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x411a08
test eax, eax
je 0x41191d
cmp byte [ebx], 0xa
jne 0x41191d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x411926
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x411a02
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x4119f2
cmp al, 0xd
je 0x411958
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x4119e4
dec ecx
cmp dword [ebp - 8], ecx
jae 0x411972
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x41196d
add dword [ebp - 8], 2
jmp 0x4119c6
mov dword [ebp - 8], eax
jmp 0x4119e0
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41199a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4119e0
cmp dword [ebp - 0x10], 0
je 0x4119e0
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4119bb
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4119c6
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4119e3
cmp ebx, dword [ebp + 0xc]
jne 0x4119cb
cmp byte [ebp - 1], 0xa
jne 0x4119cb
mov byte [ebx], 0xa
jmp 0x4119e3
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411bd1
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4119e4
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x41193c
jmp 0x411a02
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x411a02
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x411a21
and dword [0x41e270], 0
mov dword [0x41e26c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret