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

Disassembly:
push 0xffffffffffffffff
push 0x416fcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebp
push esi
mov dword [esp + 8], 0x1b7740
call fcn.004040b0
mov esi, dword [esp + 0x198]
cmp esi, eax
jae 0x404969
push esi
call fcn.00404750
mov ebp, dword [esp + 0x1a0]
add esp, 4
cmp ebp, eax
jb 0x404985
pop esi
mov eax, 0x1b7740
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.00404000
add esp, 8
test al, al
jne 0x4049fb
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 0x404a05
mov eax, dword [str.loading_ad_ad.ini]
mov ecx, dword [0x4188b4]
mov edx, dword [0x4188b8]
mov dword [edi], eax
mov eax, dword [0x4188bc]
mov dword [edi + 4], ecx
mov cx, word [0x4188c0]
mov dword [edi + 8], edx
mov dl, byte [0x4188c2]
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.0040cb6b
lea ecx, [esp + 0x80]
push esi
push ecx
call fcn.0040aa70
push eax
lea edx, [esp + 0x70]
push str.FlashGroup
xor edi, edi
push edx
mov dword [esp + 0x1bc], edi
call fcn.004019f0
mov ecx, dword [eax + 0x18]
mov esi, 0x10
add esp, 0x24
cmp ecx, esi
jb 0x404a8f
mov eax, dword [eax + 4]
jmp 0x404a92
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 0x404ac8
mov edx, dword [esp + 0x58]
push edx
call fcn.0040c688
add esp, 4
cmp dword [esp + 0x88], esi
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], edi
mov byte [esp + 0x58], 0
jb 0x404aef
mov eax, dword [esp + 0x74]
push eax
call fcn.0040c688
add esp, 4
pop edi
test bl, bl
pop ebx
je 0x404b04
lea ecx, [esp + 0xc]
push ecx
call fcn.0040cb66
add esp, 4
jmp 0x404b08
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 0x4050c0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x417069
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebp
push esi
call fcn.004040b0
mov ebp, dword [esp + 0xec]
cmp ebp, eax
jae 0x405101
push ebp
call fcn.00404750
mov esi, dword [esp + 0xf4]
add esp, 4
cmp esi, eax
jb 0x40511a
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 0x418424
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.00401860
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xec], edi
call fcn.004046b0
mov ecx, dword [esp + 0x2c]
add esp, 4
push edi
push 0x418424
push ecx
push edi
lea ecx, [esp + 0x24]
call fcn.00404230
test eax, eax
jne 0x40519c
cmp dword [esp + 0x2c], 0x10
jb 0x405182
mov edx, dword [esp + 0x18]
push edx
call fcn.0040c688
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.0040aa70
push eax
lea ecx, [esp + 0x5c]
push str.weight
push ecx
mov byte [esp + 0x100], 1
call fcn.004019f0
mov esi, eax
lea edx, [esp + 0x80]
push ebp
push edx
mov byte [esp + 0x108], 2
call fcn.0040aa70
push eax
lea eax, [esp + 0x54]
push str.FlashGroup
push eax
mov byte [esp + 0x114], 3
call fcn.004019f0
mov ecx, dword [esp + 0x58]
add esp, 0x28
cmp ecx, ebx
mov ecx, dword [esp + 0x1c]
jae 0x405218
lea ecx, [esp + 0x1c]
cmp dword [esi + 0x18], ebx
jb 0x405222
mov esi, dword [esi + 4]
jmp 0x405225
add esi, 4
cmp dword [eax + 0x18], ebx
jb 0x40522f
mov eax, dword [eax + 4]
jmp 0x405232
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 0x405264
mov edx, dword [esp + 0x38]
push edx
call fcn.0040c688
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 0x40528c
mov eax, dword [esp + 0x70]
push eax
call fcn.0040c688
add esp, 4
cmp dword [esp + 0x68], ebx
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], edi
mov byte [esp + 0x70], 0
jb 0x4052b2
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0040c688
add esp, 4
cmp dword [esp + 0xa0], ebx
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], edi
mov byte [esp + 0x54], 0
jb 0x4052d8
mov edx, dword [esp + 0x8c]
push edx
call fcn.0040c688
add esp, 4
mov al, byte [esp + 0x13]
test al, al
je 0x4052f4
lea eax, [esp + 0xa4]
push eax
call fcn.0040cb66
add esp, 4
mov esi, eax
jmp 0x4052f8
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x30], ebx
pop ebx
jb 0x40530c
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040c688
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 0x405330
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4170ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push esi
push edi
call fcn.004040b0
mov ebx, dword [ebp + 8]
cmp ebx, eax
jae 0x4053d3
push ebx
call fcn.00404750
mov esi, dword [ebp + 0xc]
add esp, 4
cmp esi, eax
jae 0x4053d3
xor edi, edi
push edi
push 0x418424
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
call fcn.00401860
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x1b0], edi
call fcn.004046b0
mov ecx, dword [esp + 0x24]
add esp, 4
push edi
push 0x418424
push ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.00404230
test eax, eax
jne 0x4053ea
cmp dword [esp + 0x24], 0x10
jb 0x4053d3
mov edx, dword [esp + 0x10]
push edx
call fcn.0040c688
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.0040aa70
push eax
lea ecx, [esp + 0x50]
push 0x41895c
push ecx
mov byte [esp + 0x1c0], 1
call fcn.004019f0
mov esi, eax
lea edx, [esp + 0x3c]
push ebx
push edx
mov byte [esp + 0x1c8], 2
call fcn.0040aa70
push eax
lea eax, [esp + 0x80]
push str.FlashGroup
push eax
mov byte [esp + 0x1d4], 3
call fcn.004019f0
mov edx, dword [esp + 0x4c]
mov ecx, 0x10
add esp, 0x28
cmp edx, ecx
mov edx, dword [esp + 0x10]
jae 0x405465
lea edx, [esp + 0x10]
cmp dword [esi + 0x18], ecx
jb 0x40546f
mov esi, dword [esi + 4]
jmp 0x405472
add esi, 4
cmp dword [eax + 0x18], ecx
jb 0x40547c
mov eax, dword [eax + 4]
jmp 0x40547f
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 0x4054b3
mov edx, dword [esp + 0x64]
push edx
call fcn.0040c688
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 0x4054d9
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040c688
add esp, 4
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
mov byte [esp + 0x2c], 0
jb 0x4054fa
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0040c688
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 0x405529
mov edx, dword [esp + 0x80]
push edx
call fcn.0040c688
add esp, 4
test bl, bl
je 0x405551
lea eax, [esp + 0x98]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405537
mov ecx, dword [ebp + 0x10]
sub eax, edx
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.00401860
cmp dword [esp + 0x24], 0x10
jb 0x405565
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040c688
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 0x40ab60
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 0x40ab76
mov eax, dword [esi]
jmp 0x40ab78
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 0x40abe0
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x18], 0x10
jb 0x40aba2
mov eax, dword [eax + 4]
jmp 0x40aba5
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 0x40abd1
mov ecx, dword [esp + 0x1c]
push ecx
call esi
test eax, eax
je 0x40ac4a
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 0x40ac59
push ebx
push edi
call fcn.0040ab10
add esp, 8
test al, al
je 0x40ac59
cmp dword [ebx + 0x18], 0x10
jb 0x40abfb
mov esi, dword [esi]
lea eax, [esp + 0x10]
push eax
push 2
push 0
push esi
push edi
call ebp
test eax, eax
jne 0x40ac59
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x18], 0x10
jb 0x40ac1b
mov eax, dword [eax + 4]
jmp 0x40ac1e
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 0x40ac52
mov eax, dword [esp + 0x10]
push eax
call esi
test eax, eax
jne 0x40ac52
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 0x40ac70
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 0x40ac95
mov eax, dword [eax + 4]
jmp 0x40ac98
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 0x40ad05
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x18], esi
jb 0x40acc2
mov eax, dword [eax + 4]
jmp 0x40acc5
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 0x40acfe
mov eax, dword [esp + 0x14]
push eax
call esi
test eax, eax
jne 0x40acfe
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 0x40c2f9
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.0040c5e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40c394
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 0x40c394
cmp eax, 1
je 0x40c3b5
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 0x40c394
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40c361
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40c390
xor eax, eax
inc eax
jmp 0x40c3d4
cmp edi, eax
jae 0x40c398
xor eax, eax
jmp 0x40c3d4
cmp eax, esi
jae 0x40c39f
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 0x40c3b8
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 0x40d1eb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x41e2b8], esi
push edi
jne 0x40d20b
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 0x40d271
mov ecx, dword [0x41f9d4]
test ecx, ecx
je 0x40d252
mov eax, dword [0x41f9d0]
sub eax, 4
cmp eax, ecx
jmp 0x40d24b
mov eax, dword [eax]
test eax, eax
je 0x40d23d
call eax
mov eax, dword [0x41f9d0]
sub eax, 4
cmp eax, dword [0x41f9d4]
mov dword [0x41f9d0], eax
jae 0x40d235
mov eax, 0x41d040
mov esi, 0x41d048
cmp eax, esi
mov edi, eax
jae 0x40d271
mov eax, dword [edi]
test eax, eax
je 0x40d26a
call eax
add edi, 4
cmp edi, esi
jb 0x40d262
mov eax, 0x41d04c
mov esi, 0x41d054
cmp eax, esi
mov edi, eax
jae 0x40d290
mov eax, dword [edi]
test eax, eax
je 0x40d289
call eax
add edi, 4
cmp edi, esi
jb 0x40d281
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40d2aa
push dword [ebp + 8]
mov dword [0x41e2b8], 1
call fcn.0040d151
pop ebp
ret
Function at 0x40d6e3
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x418dc8
call fcn.0040f570
mov edi, 0x94
mov eax, edi
call fcn.0040c5e0
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 0x40d743
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 0x40d77e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d77e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40d796
cmp eax, 0x20b
je 0x40d783
mov dword [ebp - 0x1c], esi
jmp 0x40d7aa
cmp dword [ecx + 0x84], 0xe
jbe 0x40d77e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40d7a4
cmp dword [ecx + 0x74], 0xe
jbe 0x40d77e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040f738
pop ecx
test eax, eax
jne 0x40d7d6
cmp dword [0x41e2c4], 1
jne 0x40d7c3
call fcn.004127cb
push 0x1c
call fcn.00412654
push 0xff
call fcn.0040d151
pop ecx
pop ecx
call fcn.004123fe
mov dword [ebp - 4], esi
call fcn.00412dc9
test eax, eax
jge 0x40d7ef
push 0x1b
call fcn.0040d6be
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41f9c8], eax
call fcn.00412ca7
mov dword [0x41e2bc], eax
call fcn.00412c05
test eax, eax
jge 0x40d815
push 8
call fcn.0040d6be
pop ecx
call fcn.004129d2
test eax, eax
jge 0x40d826
push 9
call fcn.0040d6be
pop ecx
push 1
call fcn.0040d181
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40d83c
push eax
call fcn.0040d6be
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00412975
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40d85d
movzx eax, word [ebp - 0x40]
jmp 0x40d860
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00402590
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40d87e
push edi
call fcn.0040d2ac
call fcn.0040d2ce
jmp 0x40d8b0
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040f5ab
ret
Function at 0x4102ac
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 0x4102da
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 0x4102e1
cmp ebx, dword [eax + 4]
jae 0x4102e1
xor eax, eax
jmp 0x4104d1
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4102f2
xor eax, eax
inc eax
jmp 0x4104d0
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x410308
cmp ecx, edx
jae 0x41044d
cmp dword [eax + 4], 0
je 0x410311
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4102f9
cmp dword [ebp + 8], 0
je 0x410333
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41044d
cmp eax, esi
jae 0x41044d
mov eax, dword [0x41e2f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x410358
cmp dword [esi*4 + 0x41e2f8], edi
je 0x410451
inc esi
cmp esi, eax
jl 0x410346
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4104cd
cmp dword [ebp - 8], 0x1000000
jne 0x4104cd
test byte [ebp - 0xc], 0xcc
je 0x4103d6
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4104cd
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4104cd
cmp word [eax + 0x18], 0x10b
jne 0x4104cd
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4104cd
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4103d6
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4103d6
test byte [ecx + 0x27], 0x80
jne 0x41044d
push 1
push 0x41e338
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4102ea
mov ecx, dword [0x41e2f0]
test ecx, ecx
mov edx, ecx
jle 0x41040a
lea eax, [ecx*4 + 0x41e2f4]
cmp dword [eax], edi
je 0x41040a
dec edx
sub eax, 4
test edx, edx
jg 0x4103fe
test edx, edx
jne 0x41043b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x410417
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41042f
lea eax, [edx*4 + 0x41e2f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41041d
cmp ecx, 0x10
jge 0x41043b
inc ecx
mov dword [0x41e2f0], ecx
push 0
push 0x41e338
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4102ea
xor eax, eax
jmp 0x4104d0
test esi, esi
jle 0x4102ea
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41e338
call ebx
test eax, eax
jne 0x4102ea
cmp dword [esi*4 + 0x41e2f8], edi
je 0x4104a7
mov eax, dword [0x41e2f0]
lea esi, [eax - 1]
test esi, esi
jl 0x410495
cmp dword [esi*4 + 0x41e2f8], edi
je 0x410491
dec esi
jns 0x410485
test esi, esi
jge 0x4104a5
cmp eax, 0x10
jge 0x4104a0
inc eax
mov dword [0x41e2f0], eax
lea esi, [eax - 1]
jmp 0x4104a7
je 0x4104bf
xor ecx, ecx
test esi, esi
jl 0x4104bf
lea eax, [ecx*4 + 0x41e2f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4104ad
push 0
push 0x41e338
call ebx
jmp 0x4102ea
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411b38
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x41f644]
mov eax, dword [0x41d334]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x411cfe
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x41f660]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x411cfe
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x411ba2
xor eax, eax
jmp 0x411d12
test al, 0x20
je 0x411bb3
push 2
push edi
push edi
push ecx
call fcn.004152f5
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x411c88
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x411ccf
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x411c15
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x411c06
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x411be8
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411c55
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x411c61
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x411bdc
jmp 0x411c63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x411cf9
cmp dword [ebp + 0x3a4], edi
je 0x411ccf
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x411cc1
mov dword [0x41e270], eax
jmp 0x411d05
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411cb3
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x411c63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x411c63
push dword [ebp + 0x3a4]
call fcn.004125f5
pop ecx
jmp 0x411d0f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x411ce7
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x411b9b
mov dword [0x41e26c], 0x1c
mov dword [0x41e270], edi
jmp 0x411d0f
sub eax, dword [ebp - 0x7c]
jmp 0x411d12
and dword [0x41e270], 0
mov dword [0x41e26c], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040e328
add ebp, 0x39c
leave
ret