joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4044e7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, 0x104
push edi
xor ebx, ebx
push esi
mov edi, 0x4773a4
push ebx
push edi
mov dword [0x477178], 0x43
call fcn.00406340
push dword [ebp + 8]
push edi
call fcn.00406600
add esp, 0x14
push ebx
push 0x404439
push dword [0x477390]
push 0x67
push ebx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 0xffffffff
jne 0x404574
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x208]
push esi
push eax
push 1
push ebx
call edi
lea eax, [ebp - 0x104]
push esi
push eax
push 3
push ebx
call edi
lea eax, [ebp - 0x104]
push 0x20
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.004063c5
mov eax, dword [0x477178]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4045bd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push 0x30c
lea eax, [ebp - 0x314]
push 0
push eax
call fcn.00406340
lea eax, [ebp - 0x314]
push str.SOFTWARENetzipNetzip_Classic
push eax
call fcn.00406600
lea eax, [ebp - 0x314]
push eax
call fcn.00405ed0
add esp, 0x18
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x20019
lea eax, [ebp - 0x314]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40464a
lea eax, [ebp - 8]
mov dword [ebp - 8], 0xff
push eax
push dword [ebp + 8]
push 0
push 0
push str.LibraryPath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40464a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x40469b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.004045bd
lea eax, [ebp - 0x104]
push eax
call fcn.00405ed0
pop ecx
xor ebx, ebx
cmp byte [ebp + eax - 0x105], 0x5c
pop ecx
je 0x4046e6
cmp byte [ebp - 0x104], bl
je 0x4046e6
lea eax, [ebp - 0x104]
push 0x410960
push eax
call fcn.00406610
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push str.NetZip.exe
push eax
call fcn.00406610
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push 1
push ebx
push ebx
push eax
push str.open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jae 0x404758
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
mov edi, 0x104
lea eax, [ebp - 0x30c]
push edi
push eax
push 6
push ebx
call esi
lea eax, [ebp - 0x208]
push edi
push eax
push 3
push ebx
call esi
lea eax, [ebp - 0x208]
push ebx
push eax
lea eax, [ebp - 0x30c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404f8e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40501a
push esi
mov esi, 0x12c
push edi
mov edi, esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
test eax, eax
je 0x404fe9
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x20]
push ecx
push eax
call esi
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 8]
sub eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
sar esi, 1
sub eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
xor eax, eax
push 0x105
push eax
push eax
push edi
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x477390]
call esi
push 5
push ebx
call esi
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4050cc
Capabilities:
Terminate process

Disassembly:
mov eax, 0x40d948
call fcn.00406320
sub esp, 0x638
and byte [ebp - 0xd], 0
push ebx
push esi
xor esi, esi
push 0x208
lea eax, [ebp - 0x43c]
push esi
push eax
call fcn.00406340
push dword [ebp + 8]
lea eax, [ebp - 0x43c]
push eax
call fcn.00406600
add esp, 0x14
cmp dword [ebp + 8], esi
je 0x4052f3
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00401164
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x2c]
call fcn.004011fd
test al, al
je 0x4051e1
movsx eax, al
cmp eax, 0x61
jg 0x40516b
je 0x405165
cmp eax, 0x4f
jg 0x405155
je 0x405185
sub eax, 0x41
je 0x405165
sub eax, 3
je 0x4051ad
sub eax, 5
je 0x4051a0
dec eax
dec eax
je 0x405195
jmp 0x40511f
sub eax, 0x50
je 0x4051b8
dec eax
je 0x4051d5
dec eax
je 0x4051ca
dec eax
je 0x4051d5
jmp 0x40511f
mov byte [ebp - 0xd], 1
jmp 0x40511f
cmp eax, 0x70
jg 0x4051c5
je 0x4051b8
sub eax, 0x64
je 0x4051ad
sub eax, 5
je 0x4051a0
dec eax
dec eax
je 0x405195
sub eax, 4
jne 0x40511f
mov eax, dword [0x4774b4]
and al, 0xfd
or al, 1
mov dword [0x4774b4], eax
jmp 0x40511f
mov eax, dword [0x4774b4]
and al, 0xf7
or al, 4
jmp 0x40518e
mov eax, dword [0x4774b4]
and ah, 0xf7
or ah, 4
jmp 0x40518e
mov eax, dword [0x4774b4]
and al, 0x7f
or al, 0x40
jmp 0x40518e
mov eax, dword [0x4774b4]
and ah, 0xfd
or ah, 1
jmp 0x40518e
sub eax, 0x71
jmp 0x40515b
mov eax, dword [0x4774b4]
and al, 0xdf
or al, 0x10
jmp 0x40518e
and byte [0x4774b5], 0xfc
jmp 0x40511f
lea ecx, [ebp - 0x2c]
call fcn.004011e8
cmp eax, esi
mov ebx, 0x411840
je 0x4051fb
push eax
push ebx
call fcn.00406600
pop ecx
pop ecx
cmp byte [ebp - 0xd], 0
je 0x4052e7
push edi
mov edi, 0x104
lea eax, [ebp - 0x234]
push edi
push eax
push 0xa
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
call esi
lea eax, [ebp - 0x130]
push edi
push eax
push 0xb
push 0
call esi
cmp byte [0x476d54], 0
mov dword [ebp + 8], 0x476d54
jne 0x405243
mov dword [ebp + 8], str.None
cmp byte [0x411840], 0
mov dword [ebp - 0x14], ebx
jne 0x405256
mov dword [ebp - 0x14], str.Default_temp
mov edx, dword [0x4774b4]
mov ecx, 0x410b8c
mov esi, edx
mov eax, 0x410b88
and esi, 0x300
mov dword [ebp - 0x18], ecx
jne 0x405276
mov dword [ebp - 0x18], eax
test dl, 0xc0
mov dword [ebp - 0x1c], eax
jne 0x405281
mov dword [ebp - 0x1c], ecx
test dl, 0x30
mov edi, eax
jne 0x40528a
mov edi, ecx
test esi, esi
mov ebx, eax
jne 0x405292
mov ebx, ecx
test dl, 0xc
mov esi, eax
jne 0x40529b
mov esi, ecx
test dl, 3
jne 0x4052a2
mov eax, ecx
push dword [ebp + 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push edi
push ebx
push esi
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.0040649a
add esp, 0x28
xor esi, esi
lea eax, [ebp - 0x130]
push esi
push eax
lea eax, [ebp - 0x644]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.004063c5
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004011b2
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405301
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
push ebx
push esi
mov esi, 0x104
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.00406340
push esi
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.00406340
push esi
lea eax, [ebp - 0x30c]
push ebx
push eax
call fcn.00406340
push esi
lea eax, [ebp - 0x514]
push ebx
push eax
call fcn.00406340
push esi
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.00406340
mov edi, dword [ebp + 8]
push 0x410ba8
push edi
call fcn.00406cb0
add esp, 0x44
test eax, eax
jne 0x405432
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebx
push ebx
lea eax, [ebp - 0x410]
push ebx
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00406a7e
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
push ebx
push edi
call fcn.00406a7e
push 4
push ebx
push edi
call fcn.00406340
lea eax, [ebp - 0x410]
push eax
push edi
call fcn.00406600
push edi
call fcn.00405ed0
add esp, 0x40
cmp byte [eax + edi - 1], 0x5c
mov esi, 0x410960
je 0x4053eb
cmp byte [edi], bl
je 0x4053eb
push esi
push edi
call fcn.00406610
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.00406610
push edi
call fcn.00405ed0
add esp, 0xc
cmp byte [eax + edi - 1], 0x5c
je 0x405415
cmp byte [edi], bl
je 0x405415
push esi
push edi
call fcn.00406610
pop ecx
pop ecx
lea eax, [ebp - 0x30c]
push eax
push edi
call fcn.00406610
lea eax, [ebp - 0x514]
push eax
push edi
call fcn.00406610
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407684
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4076af
test byte [esp + 8], 0x80
je 0x40769e
and al, 0xfe
jmp 0x4076a0
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4076c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040aec8
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x40a05b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410c98
cmp edx, dword [eax]
je 0x40a07d
add eax, 8
inc ecx
cmp eax, 0x410d28
jl 0x40a06e
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410c98]
jne 0x40a1ab
mov eax, dword [0x477518]
cmp eax, 1
je 0x40a185
test eax, eax
jne 0x40a0ae
cmp dword [0x410c54], 1
je 0x40a185
cmp edx, 0xfc
je 0x40a1ab
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a0e5
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406600
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405ed0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a128
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405ed0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e648
push edi
call fcn.00406980
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406600
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406610
lea eax, [ebp - 0xa0]
push 0x40e628
push eax
call fcn.00406610
push dword [esi + 0x410c9c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406610
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c4b5
add esp, 0x2c
pop edi
jmp 0x40a1ab
lea eax, [ebp + 8]
lea esi, [esi + 0x410c9c]
push 0
push eax
push dword [esi]
call fcn.00405ed0
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]
pop esi
leave
ret
Function at 0x4010b2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4010ff
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push 0x400
push eax
call fcn.0040170c
lea eax, [ebp - 0x804]
push eax
call fcn.0040170c
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.0040170c
lea eax, [ebp - 0x404]
push eax
call fcn.0040170c
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x40170c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40171b
pop dword [ebp - 0x30]
mov eax, 0x5a8270cf
sub eax, 0x5a4259b4
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x20b8bb28
add dword [ebp - 0x40], 0x2d998a23
mov dword [ebp - 0x3c], 0x30f95e20
sub dword [ebp - 0x3c], 0xfec611db
mov dword [ebp - 0x38], 0xba3c03d2
add dword [ebp - 0x38], 0x9210405c
mov dword [ebp - 0x34], 0x1fd9d566
sub dword [ebp - 0x34], 0x1fd9d566
lea eax, [ebp - 0x40]
push eax
mov eax, 0xd93ee6cf
add eax, 0x2701e985
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x38f6483d
add dword [ebp - 0x40], 0x3b7c2119
mov dword [ebp - 0x3c], 0x6293f8cf
sub dword [ebp - 0x3c], 0x2127975a
mov dword [ebp - 0x38], 0x460d345a
sub dword [ebp - 0x38], 0xe29dc7ee
mov dword [ebp - 0x34], 0x7224c5f7
sub dword [ebp - 0x34], 0x7224c5f7
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x2ffd8655
add eax, 0xd04349f7
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3c072
push 0
call eax
mov ecx, 0x512f
xor edx, edx
add edx, eax
mov esi, 0x41b000
add esi, dword [ebp - 0x30]
mov ebx, 0xeb6d6e1a
sub ebx, 0x34e1b6b3
add dword [ebp - 0x1c], edi
mov edi, dword [esi]
mov dword [ebp - 0x24], 0x9a9e90ab
add edi, ebx
sub dword [ebp - 0x28], ecx
mov dword [edx], edi
xor dword [ebp - 0x1c], 0x5ac684b4
add edx, 4
add esi, 0x96567db2
sub esi, 0x96567dae
loop 0x401833
add eax, 0xeef2c117
sub eax, 0xeef18988
xor ebx, ebx
add ebx, eax
add eax, 0x96d795a
sub eax, 0x96d7955
mov ecx, 0xed17487e
add ecx, 0x1328b782
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x40308c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4030c8
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4030e8
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404dd0
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403390
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b60
test esi, esi
jne 0x4033c6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404c50
jmp 0x4033e4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403294
mov edi, eax
test esi, esi
je 0x4033e4
cmp dword [ebx], 0
je 0x4033e4
dec esi
jmp 0x4033cd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403b2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x490020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403bc4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403ba4
xor eax, eax
push ebp
push 0x403b9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403be0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ba4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x490020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x490020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4049e0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49904c], 0
je 0x404a41
cmp word [0x499220], 0xd7b2
jne 0x404a09
cmp dword [0x499228], 0
jbe 0x404a09
mov eax, 0x49921c
call dword [0x499238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404a68
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49002c], 0
jne 0x404a5d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408c9c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408cee
test eax, edx
je 0x408cf1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408cb1
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408cd7
add ecx, 4
js 0x408cc7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408cd4
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408cfd
test edx, edx
jne 0x408ca4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x409798
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404ff0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4097b6
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4097d7
cmp ebx, 3
je 0x4097d7
cmp ebx, 0x7b
je 0x4097d7
mov eax, esi
call fcn.00409758
test al, al
jne 0x4097db
xor eax, eax
jmp 0x4097dd
mov al, 1
pop esi
pop ebx
ret

Function at 0x4097e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ff0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4097f9
test al, 0x10
jne 0x4097fd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4099a4
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ff0
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x4099b8
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404ff0
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4099da
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c8ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c8e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c50
jmp 0x40c8ee
mov eax, ebx
mov edx, esi
call fcn.00404bb4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c8f8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c91a
movzx eax, byte [esp]
jmp 0x40c91c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40cfac
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ce24
mov eax, dword [0x4983f0]
cmp byte [eax], 0
je 0x40d028
mov eax, dword [0x49818c]
call fcn.004034b8
call fcn.00402fe0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409f20
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d070
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d05e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x498120]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x49b7f8]
call fcn.00405fd8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40d954
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40da2a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404bf8
lea eax, [ebp - 4]
call fcn.00405048
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ff0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40da14
mov eax, ebx
call fcn.00402e84
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40da0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ff0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d9f7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40da3c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d9f7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da14
mov eax, dword [ebp - 0x10]
call fcn.00402ea0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da31
lea eax, [ebp - 4]
call fcn.00404b60
ret
Function at 0x420440
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49d9ec
cmp dword [edi], 0
jne 0x4204bc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49d9e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x490ae8
mov ecx, 2
call fcn.00403194
mov edx, 0x420418
lea eax, [esi + 5]
call fcn.00420438
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420438
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x420491
mov dword [0x49d9e8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8