joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bbe8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
call fcn.0040bbaf
test eax, eax
lea eax, [ebp - 4]
push eax
je 0x40bc06
push 0x20119
jmp 0x40bc0b
push 0x20019
push 0
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bc82
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x40bc76
push str.Dbg2Log
push ebx
call fcn.00417bb0
test eax, eax
pop ecx
pop ecx
je 0x40bc76
push str.Debug
push ebx
call fcn.00417bb0
test eax, eax
pop ecx
pop ecx
je 0x40bc76
push ebx
push edi
push str.GetRegValueLong______Get_value_error____ld_for__s_n
call fcn.004039f4
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
jmp 0x40bc93
push dword [ebp + 8]
push eax
push str.GetRegValueLong___Open_registry_error____ld_for__s_n
call fcn.004039f4
add esp, 0xc
mov eax, dword [ebp - 8]
leave
ret

Function at 0x40bc98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x434044]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3ac]
push esi
xor esi, esi
cmp dword [ebp + 0x3b0], esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], 1
je 0x40bcda
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x3b0]
jmp 0x40bcf3
call fcn.0040bbaf
test eax, eax
lea eax, [ebp - 0x78]
push eax
je 0x40bcee
push 0x20119
jmp 0x40bcf3
push 0x20019
push esi
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40bd58
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp - 0x7c]
mov dword [ebp - 0x74], 0x208
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x40bd41
push dword [ebp - 0x7c]
mov word [ebx], si
push eax
push str.GetRegValueString___Get_value_error____ld_for__s_n
mov dword [ebp - 0x74], esi
call fcn.00403b05
add esp, 0xc
jmp 0x40bd4d
lea eax, [ebp - 0x70]
push eax
push ebx
call fcn.00417615
pop ecx
pop ecx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40bd6a
push edi
push eax
push str.GetRegValueString___Open_registry_error____ld_for__s_n
mov dword [ebp - 0x74], esi
call fcn.00403b05
add esp, 0xc
mov ecx, dword [ebp + 0x3a0]
mov eax, dword [ebp - 0x74]
xor ecx, ebp
pop esi
call fcn.004175dc
add ebp, 0x3a4
leave
ret
Function at 0x40be18
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x40be2d
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
jmp 0x40be43
call fcn.0040bbaf
test eax, eax
lea eax, [ebp + 0x10]
push eax
je 0x40be41
push 0x108
jmp 0x40be43
push 8
push edi
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40be8d
xor esi, esi
cmp dword [ebp + 0xc], edi
jle 0x40be7f
mov edi, dword [ebp + 8]
push 0x104
push edi
push esi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc esi
add edi, 0x208
cmp esi, dword [ebp + 0xc]
jl 0x40be63
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp + 0xc]
jmp 0x40be9c
push esi
push eax
push str.GetEnumRegSubkeys___Open_registry_error____ld_for__s_n
call fcn.004039f4
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x40e135
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x434044]
xor eax, ebp
mov dword [ebp + 0x88], eax
test byte [ebp + 0x94], 1
push 0xa
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 0x7c], 0
push 9
je 0x40e16c
push 0x800
jmp 0x40e171
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
and dword [ebp - 0x80], 0
push esi
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.00417660
xor edi, edi
mov esi, eax
inc edi
cmp esi, edi
pop ecx
jge 0x40e194
xor eax, eax
jmp 0x40e1ce
lea eax, [ebp - 0x7c]
push eax
call fcn.00419884
pop ecx
lea ecx, [esi - 1]
test ecx, ecx
jl 0x40e1cb
mov al, byte [ebp + ecx - 0x7c]
cmp al, 0x41
jl 0x40e1b9
cmp al, 0x46
jg 0x40e1b9
movsx eax, al
sub eax, 0x37
jmp 0x40e1bf
movsx eax, al
sub eax, 0x30
imul eax, edi
add dword [ebp - 0x80], eax
shl edi, 4
dec ecx
jns 0x40e1a5
mov eax, dword [ebp - 0x80]
cmp eax, 0x404
pop edi
mov dword [ebx + 8], eax
pop esi
je 0x40e21a
cmp eax, 0x804
je 0x40e211
cmp eax, 0xc04
je 0x40e208
cmp eax, 0x1004
je 0x40e1ff
cmp eax, 0x1404
jne 0x40e221
mov dword [ebx + 8], 0x14c1
jmp 0x40e221
mov dword [ebx + 8], 0x10c0
jmp 0x40e221
mov dword [ebx + 8], 0xcc1
jmp 0x40e221
mov dword [ebx + 8], 0x8c0
jmp 0x40e221
mov dword [ebx + 8], 0x4c1
test byte [ebp + 0x94], 0x10
je 0x40e231
and dword [ebx + 8], 0xff
mov ecx, dword [ebp + 0x88]
mov eax, dword [ebx + 8]
xor ecx, ebp
call fcn.004175dc
add ebp, 0x8c
leave
ret 4
Function at 0x40e686
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x434044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0040e5fd
test eax, eax
jl 0x40e8e5
imul eax, eax, 0x53c
lea edi, [eax + ecx]
mov eax, dword [edi + 0x358]
test eax, eax
mov esi, dword [edi + 0x34c]
je 0x40e7cc
movzx eax, ax
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x40e8e5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40e8e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov dword [ebp - 0x244], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 3
push eax
push dword [ebp - 0x244]
call fcn.00412729
add esp, 0xc
push 0x103
mov esi, eax
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00417990
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push str._04x.txt
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x110]
add esp, 0xc
push eax
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x248]
mov eax, esi
call fcn.004127de
test eax, eax
pop ecx
jne 0x40e8e5
push dword [ebp - 0x118]
call fcn.00417923
pop ecx
push dword [ebp - 0x118]
mov dword [ebp - 0x244], eax
push eax
push dword [ebp - 0x248]
mov eax, esi
call fcn.0041280d
add esp, 0xc
push dword [ebp - 0x118]
call fcn.00417923
pop ecx
push dword [ebp - 0x118]
mov ebx, eax
push dword [ebp - 0x244]
push ebx
call fcn.00418520
add esp, 0xc
push dword [ebp - 0x244]
call fcn.00417e0e
jmp 0x40e8af
push 4
lea eax, [edi + 0x67c]
push 0
push eax
call fcn.00412729
add esp, 0xc
push 0x103
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00417990
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push str._04x.txt
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push str.tszLang__s_n
call fcn.004039f4
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x248]
call fcn.004127de
add esp, 0xc
test eax, eax
jne 0x40e8e5
push dword [ebp - 0x118]
call fcn.00417923
pop ecx
push dword [ebp - 0x118]
mov esi, eax
mov eax, dword [ebp - 0x244]
push esi
push dword [ebp - 0x248]
call fcn.0041280d
mov eax, dword [ebp - 0x118]
add eax, 4
add esp, 0xc
push eax
call fcn.00417923
mov ebx, eax
mov eax, dword [ebp - 0x118]
pop ecx
add eax, 4
push eax
push esi
push ebx
call fcn.00418520
add esp, 0xc
push esi
call fcn.00417e0e
mov esi, dword [ebp - 0x244]
pop ecx
call fcn.00412840
mov eax, dword [ebp - 0x118]
mov dword [edi + 0x364], ebx
mov dword [edi + 0x360], eax
cmp byte [ebx], 0xfd
jbe 0x40e8de
cmp byte [ebx + 1], 0xfd
jbe 0x40e8de
mov dword [edi + 0x35c], 1
jmp 0x40e8e5
and dword [edi + 0x35c], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004175dc
leave
ret 4
Function at 0x410993
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x41099e
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x410a50
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x430c80]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x430c80]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x430c80]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x430c80]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x430c80]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x430c80]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x430c80]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x430c80]
inc ecx
sub eax, 8
dec edi
jne 0x4109b5
pop edi
test eax, eax
je 0x410a69
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x430c80]
inc ecx
dec eax
jne 0x410a54
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x410a70
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x430c80]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x430c80]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x411214
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x411244
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41123f
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x41126c
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x411255
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00418520
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x411f64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x412008
cmp dword [esi + 4], 0xffffffff
jne 0x412008
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call fcn.00417660
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
pop ecx
je 0x411fb0
cmp al, 0x2f
je 0x411fb0
push 0x42dda4
push edi
call fcn.00417c50
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
jne 0x411fd1
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x411fd1
mov eax, 0x2000000
jmp 0x41200d
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411062
add esp, 0x10
test eax, eax
jne 0x411fef
mov eax, dword [ebp + 0x10]
jmp 0x41200d
push eax
call fcn.004114d1
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x41200d
mov eax, 0x1000000
pop edi
pop ebp
ret 0xc
Function at 0x413d2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x8c
mov eax, 0x42a13e
call fcn.004261ae
mov eax, dword [0xb80f14]
xor ebx, ebx
cmp eax, ebx
je 0x413d53
push eax
call fcn.00418514
pop ecx
mov dword [0xb80f14], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x431554
push 0x9d
push ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
je 0x413da0
push edi
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x413da0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push ebx
mov dword [ebp - 0x10], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x98]
call fcn.0041663e
push dword [ebp - 0x14]
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
mov eax, 0x7fffffff
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x64], 0x186a0
call fcn.00416093
cmp eax, 1
jne 0x413e19
mov eax, dword [ebp - 0x5c]
imul eax, dword [ebp - 0x60]
shl eax, 2
push eax
call fcn.00418195
mov esi, eax
mov eax, dword [ebp - 0x5c]
imul eax, dword [ebp - 0x60]
shl eax, 2
push eax
push dword [ebp - 0x58]
push esi
call fcn.00418520
mov eax, dword [ebp - 0x60]
mov dword [0xb80f18], eax
mov eax, dword [ebp - 0x5c]
add esp, 0x10
mov dword [0xb80f14], esi
mov dword [0xb80f1c], eax
cmp dword [ebp - 0x10], ebx
je 0x413e27
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x98]
push eax
call fcn.0041668d
call fcn.00426217
ret

Function at 0x4141a1
Capabilities:
Hide graphical window

Disassembly:
push esi
call fcn.00414073
mov esi, eax
test esi, esi
je 0x4141c9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jne 0x4141ba
pop esi
ret
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi + 0x44], 0
xor eax, eax
inc eax
pop esi
ret

Function at 0x415322
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x434044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 8
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00419d59
add esp, 0x10
cmp byte [ebp - 0xc], 0x89
jne 0x41537b
cmp byte [ebp - 0xb], 0x50
jne 0x41537b
cmp byte [ebp - 0xa], 0x4e
jne 0x41537b
cmp byte [ebp - 9], 0x47
jne 0x41537b
cmp byte [ebp - 8], 0xd
jne 0x41537b
cmp byte [ebp - 7], 0xa
jne 0x41537b
cmp byte [ebp - 6], 0x1a
jne 0x41537b
cmp byte [ebp - 5], 0xa
jne 0x41537b
xor eax, eax
inc eax
jmp 0x41537d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004175dc
leave
ret 4
Function at 0x4154ab
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push 4
pop edi
push edi
push 1
push eax
call fcn.00419d59
add esp, 0x10
cmp eax, edi
jae 0x4154d0
xor eax, eax
jmp 0x4155b7
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
push dword [ebp + 0x14]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 2]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 1]
shl eax, 8
add eax, ecx
push edi
mov dword [esi], eax
lea eax, [ebp - 4]
push 1
push eax
call fcn.00419d59
add esp, 0x10
cmp eax, edi
jb 0x4154c9
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
movzx edx, byte [ebp - 2]
movzx edi, byte [ebp - 1]
push ebx
mov ebx, eax
shl ebx, 8
add ebx, ecx
shl ebx, 8
add ebx, edx
shl ebx, 8
add ebx, edi
mov edi, dword [ebp + 0xc]
mov dword [edi], ebx
movzx edi, byte [ebp - 1]
push edi
push edx
push ecx
push eax
push str.Chunk_name_c_c_c_c_n
call fcn.004199f8
mov eax, dword [esi]
add esp, 0x14
test eax, eax
pop ebx
jbe 0x41556e
push eax
call fcn.00417923
push dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push dword [esi]
mov dword [ecx], eax
push 1
push eax
call fcn.00419d59
add esp, 0x14
cmp eax, dword [esi]
jae 0x415574
jmp 0x4154c9
mov eax, dword [ebp + 8]
and dword [eax], 0
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push 4
push 1
push eax
call fcn.00419d59
add esp, 0x10
cmp eax, 4
jb 0x4154c9
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 2]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
inc eax
pop edi
leave
ret 0x10

Function at 0x4175dc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434044]
jne 0x4175e6
repz ret
jmp fcn.0041a2d5
Function at 0x419abd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x419afa
cmp dword [ebp + 0x14], edi
je 0x419afa
cmp ecx, edi
jne 0x419b01
call fcn.0041b5fb
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0041b59c
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x419b15
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x419b36
cmp ebx, 0xffffffff
je 0x419b25
push ebx
push edi
push ecx
call fcn.00417990
add esp, 0xc
cmp esi, edi
je 0x419ae2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x419ae2
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x419b52
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x419b59
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x419c4a
test word [esi + 0xc], 0x10c
je 0x419bad
mov eax, dword [esi + 4]
test eax, eax
je 0x419bad
jl 0x419cab
cmp ebx, eax
mov edi, ebx
jb 0x419b7e
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x419c52
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00420ccd
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x419c42
cmp ebx, dword [ebp - 0xc]
jb 0x419c1a
cmp dword [ebp - 0xc], 0
je 0x419bd7
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x419bcc
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x419bd3
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x419be2
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x419be2
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x419c7e
push eax
push dword [ebp - 8]
push esi
call fcn.0041e0ae
pop ecx
push eax
call fcn.00420bd0
add esp, 0xc
test eax, eax
je 0x419cbd
cmp eax, 0xffffffff
je 0x419cab
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x419c42
push esi
call fcn.0041ea61
cmp eax, 0xffffffff
pop ecx
je 0x419caf
cmp dword [ebp - 4], 0
je 0x419c7e
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x419b61
mov eax, dword [ebp + 0x14]
jmp 0x419afc
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x419c69
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00417990
add esp, 0xc
call fcn.0041b5fb
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x419af2
cmp dword [ebp + 0xc], 0xffffffff
je 0x419c94
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00417990
add esp, 0xc
call fcn.0041b5fb
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x419af2
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x419afc
or dword [esi + 0xc], 0x10
jmp 0x419caf
Function at 0x41fa01
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x434bf8]
je 0x41fa1c
inc edi
cmp edi, 0x17
jb 0x41fa0d
cmp edi, 0x17
jae 0x41fb9c
push ebp
push 3
call fcn.00425347
cmp eax, 1
pop ecx
je 0x41fb68
push 3
call fcn.00425347
test eax, eax
pop ecx
jne 0x41fa50
cmp dword [0x434040], 1
je 0x41fb68
cmp ebx, 0xfc
je 0x41fb9b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x435958
push ebp
call fcn.0041eda1
add esp, 0xc
test eax, eax
je 0x41fa86
push esi
push esi
push esi
push esi
push esi
call fcn.0041b4a0
add esp, 0x14
push 0x104
mov esi, 0x435971
push esi
push 0
mov byte [0x435a75], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41faca
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041eda1
add esp, 0xc
test eax, eax
je 0x41faca
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041b4a0
add esp, 0x14
push esi
call fcn.00417660
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41fb0f
push esi
call fcn.00417660
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x435c6c
push 0x42bb4c
sub ecx, eax
push ecx
push eax
call fcn.00421bc6
add esp, 0x14
test eax, eax
je 0x41fb0f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041b4a0
add esp, 0x14
jmp 0x41fb11
xor esi, esi
push 0x42bb48
push ebx
push ebp
call fcn.00421b05
add esp, 0xc
test eax, eax
je 0x41fb31
push esi
push esi
push esi
push esi
push esi
call fcn.0041b4a0
add esp, 0x14
push dword [edi*8 + 0x434bfc]
push ebx
push ebp
call fcn.00421b05
add esp, 0xc
test eax, eax
je 0x41fb53
push esi
push esi
push esi
push esi
push esi
call fcn.0041b4a0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042518a
add esp, 0xc
jmp 0x41fb9b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41fb9b
cmp ebp, 0xffffffff
je 0x41fb9b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x434bfc]
push dword [esi]
call fcn.00417660
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42518a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041ae76
xor ebx, ebx
cmp dword [0x435dc0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x425260
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x425340
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x425340
push eax
call fcn.0041ae08
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x435dc0], eax
call esi
push eax
call fcn.0041ae08
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x435dc4], eax
call esi
push eax
call fcn.0041ae08
mov dword [0x435dc8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041f78e
test eax, eax
pop ecx
pop ecx
je 0x42522e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041b4a0
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x425260
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041ae08
cmp eax, ebx
pop ecx
mov dword [0x435dd0], eax
je 0x425260
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041ae08
pop ecx
mov dword [0x435dcc], eax
mov eax, dword [0x435dcc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4252e5
cmp dword [0x435dd0], ecx
je 0x4252e5
push eax
call fcn.0041ae7f
push dword [0x435dd0]
mov esi, eax
call fcn.0041ae7f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4252e5
cmp edi, ebx
je 0x4252e5
call esi
cmp eax, ebx
je 0x4252b2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4252b2
test byte [ebp - 0x18], 1
jne 0x4252e5
lea eax, [ebp - 0x10]
push eax
call fcn.0041f7c5
test eax, eax
pop ecx
je 0x4252cd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041b4a0
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4252dc
or dword [ebp + 0x10], 0x200000
jmp 0x425320
or dword [ebp + 0x10], 0x40000
jmp 0x425320
mov eax, dword [0x435dc4]
cmp eax, dword [ebp - 8]
je 0x425320
push eax
call fcn.0041ae7f
cmp eax, ebx
pop ecx
je 0x425320
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x425320
mov eax, dword [0x435dc8]
cmp eax, dword [ebp - 8]
je 0x425320
push eax
call fcn.0041ae7f
cmp eax, ebx
pop ecx
je 0x425320
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435dc0]
call fcn.0041ae7f
cmp eax, ebx
pop ecx
je 0x425340
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425342
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret