joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dfa0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x8c
push esi
push 0x20019
push 0x420fd0
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x6c]
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x70], esi
mov dword [ebp + 0x68], 0x80
call fcn.00402e0e
test eax, eax
jne 0x40e06c
push 0x2001f
push 0x420fdc
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x70]
call fcn.00402e0e
test eax, eax
jne 0x40e06c
cmp dword [ebp + 0x7c], esi
jne 0x40e008
push 0x420fe8
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40e069
lea eax, [ebp + 0x68]
push eax
push 0x420ff8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x70]
call fcn.0040eeb6
test eax, eax
jne 0x40e056
cmp dword [ebp + 0x68], esi
je 0x40e056
push dword [ebp + 0x7c]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push esi
push 0x421008
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40e069
push 0xffffffffffffffff
push esi
push 0x421018
push dword [ebp + 0x7c]
lea ecx, [ebp + 0x70]
call fcn.0040ef14
xor esi, esi
inc esi
lea ecx, [ebp + 0x70]
call fcn.00402df7
lea ecx, [ebp + 0x6c]
call fcn.00402df7
mov eax, esi
pop esi
add ebp, 0x74
leave
ret
Function at 0x40ec4c
Capabilities:
Delete registry value
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x188
push edi
xor edi, edi
call fcn.0040eb5d
test eax, eax
je 0x40ed52
push esi
push 0x4209be
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x80
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4209c0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push str.__s_s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x10
cmp dword [ebp + 0x78], 0
jne 0x40ecc1
push str.__delete
lea eax, [ebp - 0x118]
push eax
call esi
xor edi, edi
inc edi
lea eax, [ebp + 0x6c]
push eax
push 0x2001f
push 0
push 0x4209e0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ed2d
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ece9
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 0
push str.SunJavaUpdateReg
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test edi, edi
jne 0x40ed24
push 0x420a24
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
call fcn.0040bf65
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x7c], 0
je 0x40ed4e
push str.__noruntask
lea eax, [ebp - 0x118]
push eax
call esi
lea eax, [ebp - 0x118]
push eax
call fcn.0040befd
pop ecx
xor eax, eax
inc eax
pop esi
pop edi
add ebp, 0x70
leave
ret

Function at 0x40eeb6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x40ef05
cmp dword [ebp - 4], ebx
jbe 0x40ef02
cmp dword [ebp - 4], 2
jbe 0x40ef0c
cmp dword [ebp - 4], 7
jne 0x40ef02
mov ecx, dword [edi]
cmp ecx, 2
jb 0x40ef02
add ecx, esi
cmp byte [ecx - 1], bl
jne 0x40ef02
cmp byte [ecx - 2], bl
je 0x40ef05
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [edi]
cmp byte [ecx + esi - 1], bl
jmp 0x40ef00
Function at 0x40f3e0
Capabilities:
Delete registry value
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x218
push edi
lea eax, [ebp + 0x6c]
push 1
push eax
call fcn.0040cc7a
test eax, eax
pop ecx
pop ecx
je 0x40f5be
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push esi
push 4
pop ebx
push 0x421850
lea eax, [ebp + 0x64]
push eax
mov dword [ebp + 0x70], ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x421854
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 3
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x42185c
push dword [ebp + 0x6c]
mov byte [ebp - 0x1a4], 0
mov dword [ebp + 0x70], 0x100
call esi
push 0x42186c
lea eax, [ebp - 0x24]
push eax
call edi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x421870
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 0x80
call esi
push 0x421884
lea eax, [ebp - 0xa4]
push eax
call edi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x68]
push eax
xor edi, edi
push edi
push 0x421888
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 0x80
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x68]
push eax
push edi
push 0x421898
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], ebx
call esi
test eax, eax
jne 0x40f51d
push edi
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x64]
push eax
push 0x4218a8
lea eax, [ebp - 0x1a4]
push 0x4218ac
push eax
call fcn.0040e084
add esp, 0x20
test eax, eax
je 0x40f51d
push 0x4218b0
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x68]
push eax
push edi
push 0x4218c0
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x60], edi
call esi
test eax, eax
jne 0x40f5b1
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x68]
push eax
push edi
push 0x4218d0
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x5c], edi
call esi
push dword [ebp + 0x5c]
lea eax, [ebp - 0x24]
push dword [ebp + 0x60]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x64]
push eax
push 0x4218e4
lea eax, [ebp - 0x1a4]
push 0x4218e8
push eax
call fcn.0040e084
add esp, 0x20
test eax, eax
je 0x40f5b1
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x4218ec
push dword [ebp + 0x6c]
call esi
push 0x421900
push dword [ebp + 0x6c]
call esi
push 0x421914
push dword [ebp + 0x6c]
call esi
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
jmp 0x40f5c0
xor edi, edi
mov dword [0x42774c], edi
xor eax, eax
pop edi
add ebp, 0x74
leave
ret 4
Function at 0x40f5d0
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.0040d19c
test eax, eax
jne 0x40f5e1
leave
ret
push ebx
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push 1
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
call fcn.0040cc7a
test eax, eax
pop ecx
pop ecx
je 0x40f68d
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x421924
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x40f64b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x421934
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
cmp esi, ebx
pop esi
je 0x40f68d
cmp dword [0x42774c], ebx
jne 0x40f68d
cmp dword [ebp + 8], ebx
jne 0x40f67d
push 0x42774c
push ebx
push ebx
push fcn.0040f3e0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x40f68d
push ebx
mov dword [0x42774c], 1
call fcn.0040f3e0
xor eax, eax
inc eax
pop ebx
leave
ret

Function at 0x40f756
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x208
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x421a70
lea eax, [ebp + 0x6c]
push eax
mov dword [ebp + 0x70], 3
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x6c]
push eax
push str.Country
xor ebx, ebx
push ebx
call fcn.0040cd4f
add esp, 0x10
push 0x421a7c
lea eax, [ebp - 0x194]
push eax
mov dword [ebp + 0x70], 0x100
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x194]
push eax
push str.PostStatusUrl
push ebx
call fcn.0040cd4f
add esp, 0x10
push 0x421a90
lea eax, [ebp - 0x14]
push eax
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x14]
push eax
push str.InstalledJREVersion
push ebx
mov dword [ebp + 0x70], 0x80
call fcn.0040cd4f
add esp, 0x10
push 0x421aa8
lea eax, [ebp - 0x94]
push eax
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x94]
push eax
push str.NewJREVersion
push ebx
mov dword [ebp + 0x70], 0x80
call fcn.0040cd4f
push dword [ebp + 0x7c]
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp + 0x6c]
push eax
push 0x421abc
lea eax, [ebp - 0x194]
push 0x421ac0
push eax
call fcn.0040e084
add esp, 0x30
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x411120
Capabilities:
Create process on windows

Disassembly:
cmp word [esp + 8], 0xcc
jne 0x411142
push 1
xor eax, eax
push eax
push eax
add ecx, 0x620
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
ret 0x10

Function at 0x41302d
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.00412ff0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4130c8
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 [0x427ae4]
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 0x4130c8
cmp eax, 1
je 0x4130e9
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 0x4130c8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x413095
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4130c4
xor eax, eax
inc eax
jmp 0x413108
cmp edi, eax
jae 0x4130cc
xor eax, eax
jmp 0x413108
cmp eax, esi
jae 0x4130d3
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 [0x427ae4]
jmp 0x4130ec
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 0x413f87
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x422368
call fcn.00412678
mov edi, 0x94
mov eax, edi
call fcn.00412ff0
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 [0x427ae4], ecx
mov eax, dword [esi + 4]
mov dword [0x427af0], eax
mov edx, dword [esi + 8]
mov dword [0x427af4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x427ae8], esi
cmp ecx, 2
je 0x413fe7
or esi, 0x8000
mov dword [0x427ae8], esi
shl eax, 8
add eax, edx
mov dword [0x427aec], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x414022
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414022
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41403a
cmp eax, 0x20b
je 0x414027
mov dword [ebp - 0x1c], esi
jmp 0x41404e
cmp dword [ecx + 0x84], 0xe
jbe 0x414022
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x414048
cmp dword [ecx + 0x74], 0xe
jbe 0x414022
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00414783
pop ecx
test eax, eax
jne 0x414062
push 0x1c
call fcn.00413f63
pop ecx
call fcn.004161a2
test eax, eax
jne 0x414073
push 0x10
call fcn.00413f63
pop ecx
call fcn.00419eff
mov dword [ebp - 4], esi
call fcn.00419d01
test eax, eax
jge 0x41408c
push 0x1b
call fcn.00413f3e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4291b4], eax
call fcn.00419bdf
mov dword [0x427930], eax
call fcn.00419b3d
test eax, eax
jge 0x4140b2
push 8
call fcn.00413f3e
pop ecx
call fcn.0041990a
test eax, eax
jge 0x4140c3
push 9
call fcn.00413f3e
pop ecx
push 1
call fcn.00415537
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4140d9
push eax
call fcn.00413f3e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004198ad
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4140fa
movzx eax, word [ebp - 0x40]
jmp 0x4140fd
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040157d
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41411b
push edi
call fcn.00415664
call fcn.00415686
jmp 0x41414d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004126b3
ret
Function at 0x414540
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 0x41456e
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 0x414575
cmp ebx, dword [eax + 4]
jae 0x414575
xor eax, eax
jmp 0x414765
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x414586
xor eax, eax
inc eax
jmp 0x414764
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41459c
cmp ecx, edx
jae 0x4146e1
cmp dword [eax + 4], 0
je 0x4145a5
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41458d
cmp dword [ebp + 8], 0
je 0x4145c7
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4146e1
cmp eax, esi
jae 0x4146e1
mov eax, dword [0x427940]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4145ec
cmp dword [esi*4 + 0x427948], edi
je 0x4146e5
inc esi
cmp esi, eax
jl 0x4145da
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414761
cmp dword [ebp - 8], 0x1000000
jne 0x414761
test byte [ebp - 0xc], 0xcc
je 0x41466a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x414761
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x414761
cmp word [eax + 0x18], 0x10b
jne 0x414761
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x414761
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41466a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41466a
test byte [ecx + 0x27], 0x80
jne 0x4146e1
push 1
push 0x427988
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41457e
mov ecx, dword [0x427940]
test ecx, ecx
mov edx, ecx
jle 0x41469e
lea eax, [ecx*4 + 0x427944]
cmp dword [eax], edi
je 0x41469e
dec edx
sub eax, 4
test edx, edx
jg 0x414692
test edx, edx
jne 0x4146cf
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4146ab
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4146c3
lea eax, [edx*4 + 0x427948]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4146b1
cmp ecx, 0x10
jge 0x4146cf
inc ecx
mov dword [0x427940], ecx
push 0
push 0x427988
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41457e
xor eax, eax
jmp 0x414764
test esi, esi
jle 0x41457e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x427988
call ebx
test eax, eax
jne 0x41457e
cmp dword [esi*4 + 0x427948], edi
je 0x41473b
mov eax, dword [0x427940]
lea esi, [eax - 1]
test esi, esi
jl 0x414729
cmp dword [esi*4 + 0x427948], edi
je 0x414725
dec esi
jns 0x414719
test esi, esi
jge 0x414739
cmp eax, 0x10
jge 0x414734
inc eax
mov dword [0x427940], eax
lea esi, [eax - 1]
jmp 0x41473b
je 0x414753
xor ecx, ecx
test esi, esi
jl 0x414753
lea eax, [ecx*4 + 0x427948]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x414741
push 0
push 0x427988
call ebx
jmp 0x41457e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4155a1
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4223d0
call fcn.00412678
push 8
call fcn.00414927
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x427b24], esi
jne 0x4155d5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x427b20], esi
mov al, byte [ebp + 0x10]
mov byte [0x427b1c], al
cmp dword [ebp + 0xc], edi
jne 0x41561f
cmp dword [0x429188], edi
je 0x41560f
mov eax, dword [0x429184]
sub eax, 4
mov dword [0x429184], eax
cmp eax, dword [0x429188]
jb 0x41560f
mov eax, dword [eax]
cmp eax, edi
je 0x4155f0
call eax
jmp 0x4155f0
push 0x42603c
mov eax, 0x426034
call fcn.0041551f
pop ecx
push 0x426048
mov eax, 0x426040
call fcn.0041551f
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x415650
cmp dword [ebp + 0x10], edi
jne 0x41565e
mov dword [0x427b24], esi
push dword [ebp + 8]
call fcn.004154dd
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41565d
push 8
call fcn.00414872
pop ecx
ret
call fcn.004126b3
ret

Function at 0x419599
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x426770]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x426da8]
je 0x4195ce
inc eax
cmp eax, 0x13
jb 0x4195bf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x426da8]
jne 0x4196f4
mov eax, dword [0x427938]
cmp eax, 1
je 0x4196cc
cmp eax, edx
jne 0x4195fe
cmp dword [0x426764], 1
je 0x4196cc
cmp ecx, 0xfc
je 0x4196f4
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x419634
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041b390
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004177b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x419668
mov eax, edi
push eax
call fcn.004177b0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x423088
push edi
call fcn.004139e0
add esp, 0x10
push edi
call fcn.004177b0
push dword [esi + 0x426dac]
mov ebx, eax
call fcn.004177b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00412ff0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041b390
push edi
push ebx
call fcn.0041b3a0
push 0x423068
push ebx
call fcn.0041b3a0
push dword [esi + 0x426dac]
push ebx
call fcn.0041b3a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041c155
add esp, 0x2c
jmp 0x4196f4
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x426dac]
push dword [esi]
call fcn.004177b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004144ce
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41a412
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x426770]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41a443
xor eax, eax
jmp 0x41a5cc
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x428e40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41a47f
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041c5bb
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41a55a
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41a598
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x41a4e3
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41a4d4
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x41a4b4
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a523
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41a52c
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41a4a5
jmp 0x41a52e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41a5c7
cmp dword [ebp - 0x6c], edi
je 0x41a598
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41a58d
call fcn.00419228
mov dword [eax], 9
call fcn.00419231
mov dword [eax], esi
jmp 0x41a5c2
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a582
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41a52e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41a52e
push dword [ebp - 0x6c]
call fcn.0041923a
pop ecx
jmp 0x41a5c2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41a5b0
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41a5b0
xor eax, eax
jmp 0x41a5ca
call fcn.00419228
mov dword [eax], 0x1c
call fcn.00419231
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41a5ca
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004144ce
add ebp, 0x3a0
leave
ret
Function at 0x41c155
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x427dd0], ebx
push esi
push edi
jne 0x41c1d5
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41c210
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4234b0
push edi
call esi
test eax, eax
mov dword [0x427dd0], eax
je 0x41c210
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x427dd4], eax
call esi
cmp dword [0x427ae4], 2
mov dword [0x427dd8], eax
jne 0x41c1d5
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x427de0], eax
je 0x41c1d5
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x427ddc], eax
mov eax, dword [0x427ddc]
test eax, eax
je 0x41c21a
call eax
test eax, eax
je 0x41c201
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x427de0]
test eax, eax
je 0x41c201
test byte [ebp - 8], 1
jne 0x41c21a
cmp dword [0x427af0], 4
jb 0x41c214
or byte [ebp + 0x12], 0x20
jmp 0x41c239
xor eax, eax
jmp 0x41c249
or byte [ebp + 0x12], 4
jmp 0x41c239
mov eax, dword [0x427dd4]
test eax, eax
je 0x41c239
call eax
mov ebx, eax
test ebx, ebx
je 0x41c239
mov eax, dword [0x427dd8]
test eax, eax
je 0x41c239
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x427dd0]
pop edi
pop esi
pop ebx
leave
ret