joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42be20
Capabilities:
Get file system object information

Disassembly:
push ebp
sub esp, 0x180
lea ebp, [esp - 4]
mov eax, dword [0x462044]
xor eax, ebp
mov dword [ebp + 0x180], eax
push 0x50
mov eax, 0x44fdbc
call fcn.0043d4af
mov ebx, ecx
mov eax, dword [ebp + 0x190]
lea ecx, [ebp - 0x44]
mov edi, dword [ebp + 0x194]
mov dword [ebp - 0x20], eax
call fcn.0040c03a
and dword [ebp - 4], 0
cmp byte [edi], 0
je 0x42beab
push dword [edi + 0xc]
lea eax, [ebp - 0x50]
push dword [edi + 8]
push eax
call fcn.0042bd42
push eax
push 0xdb0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
call fcn.0042bde0
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040c216
push dword [ebp - 0x5c]
call fcn.0043d465
push dword [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.0043d465
pop ecx
pop ecx
lea eax, [edi + 0x18]
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.0040c564
mov esi, eax
lea eax, [ebp - 0x38]
lea ecx, [esi + 1]
push ecx
push eax
lea ecx, [edi + 0x18]
call fcn.0041bc61
mov eax, dword [edi + 0x18]
lea ecx, [ebp - 0x2c]
add eax, 2
mov byte [ebp - 4], 3
lea eax, [eax + esi*2]
push eax
call fcn.0040c118
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.0042c0f4
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.0042c0f4
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040c14c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0040c3b6
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040c424
lea ecx, [ebp - 0x18]
call fcn.0040c3b6
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040c424
lea ecx, [ebp - 0x18]
call fcn.0040c3b6
cmp byte [edi + 1], 0
je 0x42bf7c
push 0x3f4
lea eax, [ebp - 0x18]
push eax
call fcn.0042b9d5
push 0x4529b0
lea ecx, [ebp - 0x18]
call fcn.0040c45f
push 0
lea eax, [ebp + 0x160]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.00412c74
lea eax, [ebp + 0x160]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040c45f
push dword [ebp + 0x18c]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebx + 4]
call edi
push dword [ebp - 0x18]
push eax
call fcn.00413e6e
push dword [ebp - 0x1c]
lea eax, [ebp - 0x50]
push eax
call fcn.0040e9ba
push 0x110
push 0x160
lea ecx, [ebp]
push ecx
push 0x80
push dword [eax]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x50]
mov esi, eax
call fcn.0043d465
pop ecx
test esi, esi
je 0x42bfe5
push dword [ebp - 0x20]
push dword [ebx + 4]
call edi
push 0
push dword [ebp]
push 0x170
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x18]
call fcn.0043d465
push dword [ebp - 0x2c]
call fcn.0043d465
push dword [ebp - 0x38]
call fcn.0043d465
push dword [ebp - 0x44]
call fcn.0043d465
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x180]
xor ecx, ebp
call fcn.0043d1f0
lea esp, [ebp + 0x184]
pop ebp
ret 0xc
Function at 0x42d6ba
Capabilities:
Log keystrokes via polling

Disassembly:
mov edx, dword [esp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edx]
lea esi, [edi + 0xb4]
cmp eax, dword [esi]
jne 0x42d6eb
cmp dword [edx + 8], 0xffffff65
jne 0x42d6eb
movzx eax, word [edx + 0xc]
sub eax, 0x2d
je 0x42d70c
sub eax, 0x14
je 0x42d6f2
dec eax
sub eax, 1
je 0x42d70c
xor al, al
pop edi
pop esi
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x42d6eb
mov ecx, esi
call fcn.0042eaf1
mov al, 1
jmp 0x42d6ed
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x42d6eb
mov ecx, edi
call fcn.0042d724
jmp 0x42d708

Function at 0x42edcf
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x462044]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x465d34], 0
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
jne 0x42ee3c
push esi
push edx
lea eax, [ebp - 0x2c4]
push eax
call fcn.0040cb7a
push 0x4010
push 0x160
mov ecx, dword [eax]
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x80
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x2c4]
mov esi, eax
call fcn.0043d465
pop ecx
mov ecx, dword [ebp - 0x160]
mov eax, esi
pop esi
jmp 0x42ee69
mov eax, dword [0x465d30]
test eax, eax
je 0x42ee63
push 0x4010
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
mov ecx, dword [ebp + 0xc]
or ecx, 0x80
push ecx
push edx
call eax
mov ecx, dword [ebp - 0x2b4]
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0043d1f0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42eeff
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x462044]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
mov edx, 0x4011
test al, al
mov ecx, 0x4110
lea eax, [ebp - 0x164]
cmovne ecx, edx
push ecx
push 0x160
push eax
push 0x90
push 0x4517f2
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d1f0
mov esp, ebp
pop ebp
ret 4

Function at 0x42fa7e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42faa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42faa9
xor al, al
jmp 0x42fabd
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x43c78e
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x462044]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x228]
xor ebp, ebp
push 0x208
push ebp
push eax
call fcn.0043ee20
add esp, 0xc
lea eax, [esp + 0x14]
push 0x104
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43c828
push edi
push esi
call fcn.0042fa7e
push dword [edi]
mov dword [esp + 0x14], ebp
call fcn.0043d45c
pop ecx
push ebp
lea ecx, [esp + 0x14]
mov dword [ebx], eax
push ecx
push dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043d1f0
add esp, 0x210
ret 8
Function at 0x4026b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [str.073110116101114110101116082101097100070105108101]
push ecx
call fcn.00401280
add esp, 8
lea edx, [ebp - 0x104]
push edx
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x409e10], eax
call fcn.0040198f
test eax, eax
jne 0x402726
call fcn.00401de3
call fcn.00402620
call fcn.004015fa
xor eax, eax
jmp 0x40280d
mov eax, dword [ebp + 0x10]
push eax
call fcn.00402920
add esp, 4
test eax, eax
je 0x40274b
push str.start
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00402c20
add esp, 8
test eax, eax
jne 0x4027ae
push 0x44
push 0
lea edx, [ebp - 0x25c]
push edx
call fcn.00402ca0
add esp, 0xc
mov dword [ebp - 0x230], 1
mov word [ebp - 0x22c], 5
push str.__start
push 0x409d0c
call fcn.00402b10
add esp, 8
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x25c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x409d0c
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
jmp 0x40280d
call fcn.0040268b
mov byte [ebp - 0x208], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x208]
push edx
push 0x409d0c
call fcn.004019b3
add esp, 8
lea eax, [ebp - 0x208]
push eax
call fcn.00402920
add esp, 4
cmp eax, 0x26
jne 0x402803
lea ecx, [ebp - 0x208]
push ecx
call fcn.00401bb1
add esp, 4
call fcn.00402620
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40c7d0
nop
mov ecx, 0x548c0f09
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x6bb9466e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x403ad0
Capabilities:
Hide graphical window
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, dword [ebp + 8]
push 0x7f00
push 0
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x403cd0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0
mov dword [ebp - 0x30], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], str.Incubator
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x403b5e
push 0x10
push str.Incubator
push 0x46e6d8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [section..data]
push edi
push 0
push esi
push 0
push 0
lea eax, [ecx + ecx*4]
shl eax, 5
push eax
imul eax, ecx, 0x1c2
push eax
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x46e6f8
push str.Incubator
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push dword [ebp + 0x14]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push str.C:CYGNUSH8_settings.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea ecx, [ebp + 8]
mov dword [0x48284c], eax
push ecx
push 0x80a
push 0x482040
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [0x48284c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040f710
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x403cba
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
nop word [eax + eax]
lea eax, [ebp - 0x20]
push eax
call ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
call fcn.0040f720
cmp byte [0x482851], 0
je 0x403c4c
push 0
push 0
push edi
mov byte [0x482851], 0
call esi
cmp byte [0x47f981], 0
je 0x403ca1
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push str.C:CYGNUSH8_settings.txt
mov byte [0x47f981], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea ecx, [ebp - 4]
mov dword [0x48284c], eax
push ecx
push 0x80a
push 0x482040
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [0x48284c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x403c20
pop ebx
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x422189
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4221c8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4221c8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4221c8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4221c8
cmp dword [ecx + 0x74], 0xe
jbe 0x4221c8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42f1db
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42f21a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f21a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f21a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42f21a
cmp dword [ecx + 0x74], 0xe
jbe 0x42f21a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x452376
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00452249
Function at 0x452d3e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47ef80]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x452d89
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004531dc
test al, al
jne 0x452d83
sub edx, 2
cmp edx, edi
jne 0x452d69
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x452dab
lea eax, [edi + 2]
cmp edx, eax
je 0x452dab
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004529fe
add esp, 0x10
jmp 0x452ea3
push esi
lea ecx, [ebp - 0x255]
call fcn.004531dc
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x452dec
push dword [ebp - 0x25c]
jmp 0x452d9b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x452e29
cmp word [ebp - 0x226], 0
je 0x452e4a
cmp word [ebp - 0x226], ax
jne 0x452e29
cmp word [ebp - 0x224], 0
je 0x452e4a
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004529fe
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x452e96
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x452e03
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x452e7e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x452ea3
push 0x45244e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0045f010
add esp, 0x10
jmp 0x452e73
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004215ac
leave
ret
Function at 0x4547c4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x454861
push ebx
push esi
call fcn.00454780
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004546bf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x45480e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x454860
push edi
push eax
call fcn.00456fe0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x45482e
call fcn.004523f0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45485f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004546bf
add esp, 0x20
test eax, eax
jne 0x45484d
push edi
call fcn.004523f0
jmp 0x454855
push ebx
call fcn.004523f0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x454864
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x454875
pop esi
ret
push ebx
push edi
push esi
call fcn.00454780
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00456fe0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45489d
push ebx
push esi
push edi
call fcn.0042ace0
add esp, 0xc
push 0
call fcn.004523f0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x455189
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00454b10

Function at 0x4592f8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004519f2
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x459367
cmp esi, dword [ebp - 4]
je 0x459362
cmp dword [ebp + 0xc], 0
je 0x459362
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x45933f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00458e4d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x459369
xor eax, eax
inc eax
jmp 0x459369
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4593d4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47ef80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004519f2
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004519f2
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x45944b
cmp word [ecx], dx
je 0x45944b
mov eax, dword [0x4767d4]
push edi
dec eax
push eax
push 0x4766c0
call fcn.0045936d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4594be
cmp word [eax], dx
je 0x4594be
mov eax, dword [edi]
test eax, eax
je 0x45946f
cmp word [eax], dx
je 0x45946f
lea eax, [ebp - 0x10]
push eax
call fcn.00458d53
jmp 0x459478
lea eax, [ebp - 0x10]
push eax
call fcn.00458dee
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4594e8
mov eax, dword [0x4766bc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4763b0
call fcn.0045936d
add esp, 0xc
test al, al
je 0x4594e8
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4594b3
cmp word [eax], di
je 0x4594b3
lea eax, [ebp - 0x10]
push eax
call fcn.00458d53
pop ecx
jmp 0x4594ea
lea eax, [ebp - 0x10]
push eax
call fcn.00458dee
jmp 0x4594b0
mov eax, dword [edi]
test eax, eax
je 0x4594d5
cmp word [eax], dx
je 0x4594d5
lea eax, [ebp - 0x10]
push eax
call fcn.00458cea
pop ecx
jmp 0x4594e8
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4595b3
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004591f2
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4595b3
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4595b3
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4595b3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x459540
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0045a45b
test ebx, ebx
je 0x4595ae
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0045a45b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4595b3
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4595b3
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004603eb
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4595b5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004215ac
leave
ret
Function at 0x465adb
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x465af5
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x465b0c
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x465b64
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0045592a
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x465b64
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x465b64
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x465b64
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x465b5e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x465b60
xor bl, bl
mov al, bl
jmp 0x465b66
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x466b1f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x480978]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x466b61
cmp byte [ebx], 0xa
jne 0x466b61
or byte [edi + eax + 0x28], 4
jmp 0x466b66
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x466c69
mov cl, byte [eax]
cmp cl, 0x1a
je 0x466c44
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x466b95
mov eax, dword [ebp - 8]
jmp 0x466bb5
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x466bd1
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x466baf
add eax, 2
mov cl, 0xa
jmp 0x466bb2
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x466b77
jmp 0x466c69
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x466c3f
cmp dword [ebp - 0x10], 0
je 0x466c3f
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x480978]
test byte [eax + edi + 0x28], 0x48
je 0x466c1e
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x466c0e
mov byte [esi], 0xa
jmp 0x466c68
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x480978]
mov byte [eax + edi + 0x2a], cl
jmp 0x466c68
cmp byte [ebp - 1], 0xa
jne 0x466c28
cmp esi, ebx
je 0x466c09
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00466971
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x466c69
mov byte [esi], 0xd
jmp 0x466c68
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x480978]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x466c66
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x466c69
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret