joyce8/EMBER2024-capa huggingface dataset:
Function at 0xaea5f6
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.00aedef0
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0xaea611
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0xaea61e
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0xaea6e1
movzx eax, word [esi]
test ax, ax
je 0xaea6e1
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0xaea66b
test edi, edi
je 0xaea675
test ebx, ebx
jne 0xaea675
test ecx, ecx
je 0xaea667
mov byte [ecx], 1
mov ebx, ebp
jmp 0xaea68c
cmp eax, 0xd
je 0xaea69f
cmp eax, 0xa
je 0xaea6a2
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0xaea69a
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0xaea64d
jmp 0xaea6a2
mov byte [edx], 1
jmp 0xaea6a2
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0xaea6db
mov word [edi], ax
test ebx, ebx
je 0xaea6db
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00adfd80
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0xaea6e3
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0xaea6ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0xaea749
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0xb02260]
call esi
pop esi
jmp 0xaea751
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0xaecc93
Capabilities:
Hide graphical window

Disassembly:
and dword [0xb17304], 0
push 1
push dword [esp + 8]
mov byte [0xb17301], 1
mov byte [0xb17302], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00ad1177
cmp dword [0xb172ec], 0
jne 0xaeccd3
cmp byte [0xb17313], 0
je 0xaeccdc
cmp dword [0xb1730c], 0
jne 0xaeccef
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0xaecdef
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00aedef0
cmp byte [0xb19320], 0
je 0xaece7e
cmp word [0xb19322], 0
je 0xaece7e
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0xb19322
call fcn.00aeb980
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0xaece7d
push dword [ebp + 8]
call fcn.00af3193
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0xaece84
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00aedef0
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.00adfb02
mov esi, eax
test esi, esi
je 0xaecedc
movzx ecx, word [esi]
push ecx
jmp 0xaecec7
add esi, 2
movzx eax, word [esi]
push eax
call fcn.00adfc1b
test al, al
jne 0xaecec0
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x448b10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x448b32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x448b39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x448b28
mov eax, 1
add ebx, ebx
jne 0x448b4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x448b5c
jne 0x448b6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x448b6c
dec eax
add ebx, ebx
jne 0x448b68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x448b40
xor ecx, ecx
sub eax, 3
jb 0x448b84
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x448bf6
sar eax, 1
mov ebp, eax
jmp 0x448b8f
add ebx, ebx
jne 0x448b8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x448b9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x448bc0
inc ecx
add ebx, ebx
jne 0x448bac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x448ba1
jne 0x448bbd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x448ba1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x448be0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x448bd1
jmp 0x448b2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x448be0
add edi, ecx
jmp 0x448b2e
pop esi
mov edi, esi
mov ecx, 0x921
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x448bfe
cmp byte [edi], 7
jne 0x448bfe
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x448c03
lea edi, [esi + 0x46000]
mov eax, dword [edi]
or eax, eax
je 0x448c7b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x48990]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x48a08]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x448c30
mov ecx, edi
jns 0x448c5f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x48a0c]
or eax, eax
je 0x448c75
mov dword [ebx], eax
add ebx, 4
jmp 0x448c4d
call dword [esi + 0x48a10]
popal
jmp 0x4150a0

Function at 0x4018d3
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x414c50
push 0x411f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x419924], 0xffffffff
or dword [0x419928], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x41791c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x417918]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x419920], eax
call fcn.00411f7b
cmp dword [0x417710], ebx
jne 0x411e72
push 0x411f78
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00411f66
push 0x417048
push 0x417044
call sub.MSVCRT.dll__initterm
mov eax, dword [0x417914]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x417910]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x417040
push section..data
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x411f05
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x411ed9
cmp al, 0x22
jne 0x411ecb
cmp byte [esi], 0x22
jne 0x411ee2
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x411eec
cmp al, 0x20
jbe 0x411ede
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x411f10
movzx eax, word [ebp - 0x2c]
jmp 0x411f13
cmp byte [esi], 0x20
jbe 0x411ee2
inc esi
mov dword [ebp - 0x74], esi
jmp 0x411f05
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x5d3337
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x5d289e
call fcn.005d345a
mov byte [esp + 4], bh
jmp 0x5d3303
lea esp, [esp + 3]
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.005d33a0
aas
lodsb al, byte [esi]
and al, byte [ebp - 0x4c]
jno 0x5d3353
sbb byte [ebx + 0x52], bh
int 0x66
bsf eax, esi
jno 0x5d3285
jo 0x5d289e
pop dword [esp]
call 0x5d3337
pop esp
lea esp, [esp + 2]
lea esp, [esp + 2]
jmp 0x5d3373
je 0x5d3379
add dword [ebx - 0x2a], edi
pop dword [esp]
jmp 0x5d3331
mov dword [esp], ebx
push di
lea esp, [esp]
and al, 0x24
mov word [esp], cx
lea esp, [esp + 2]
push esp
call fcn.005d335d
lea esp, [esp]
mov byte [esp + 2], al
push esi
mov dword [esp + 4], ebp
mov dword [esp], esi
pushfd
jmp 0x5d341d
lea esp, [esp + 2]
mov dword [esp + 4], edi
lea esp, [esp + 4]
jmp 0x5d33b4
pushfd
jmp 0x5d28cd
push dword [esp + 4]
mov byte [esp + 5], cl
jmp 0x5d33a2
push word [esp + 3]
js 0x5d33ca
push dword [esp + 4]
mov byte [esp + 5], cl
lea esp, [esp + 2]
mov dword [esp + 4], edi
lea esp, [esp + 4]
jmp 0x5d33b4

Function at 0x6b2dfc
Capabilities:
Access peb ldr_data

Disassembly:
call fcn.006b1099
push edi
lea esp, [esp + 2]
mov byte [esp], bl
lea esp, [esp + 1]
lea esp, [esp + 1]
jmp 0x6b2e18
mov dword [esp + 0x78], esi
jmp 0x6b2de6
mov eax, dword [eax + 0x1c]
jmp 0x6b2e2b
mov dword [esp + 0x74], edi
lea esp, [esp + 0x74]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
jmp 0x6b2e02
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x6b2fcb
push eax
jmp 0x6b1094
Function at 0x425450
Capabilities:
Encrypt data using blowfish

Disassembly:
push esi
push edi
mov dword [0x4299ac], 0x10
mov esi, 0x42655c
mov edi, 0x428924
mov ecx, 0x422
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret

Function at 0x425714
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x1004], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4257ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1000]
mov ecx, 0x20
mov edx, 0x1000
call fcn.0040305c
cmp ebx, 0xff
jne 0x42576d
lea eax, [ebp - 0x1000]
push eax
push 0x1000
call sub.kernel32.dll_GetTempPathA
jmp 0x42577e
push 0
push ebx
lea eax, [ebp - 0x1000]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
lea eax, [ebp - 0x1004]
lea edx, [ebp - 0x1000]
mov ecx, 0x1000
call fcn.00404550
mov eax, dword [ebp - 0x1004]
mov edx, esi
call fcn.00407c7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4257c1
lea eax, [ebp - 0x1004]
call fcn.00404460
ret

Function at 0x4038f7
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040f6], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404650], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045e4], eax
mov dword [0x4040ee], eax
mov dword [0x4045d0], 0x30
mov dword [0x4045d4], 2
jmp 0x40393c
mov dword [0x4045d8], 0x40321a
mov dword [0x4045dc], 0
mov dword [0x4045e0], 0
mov dword [0x4045f8], 0x40454d
mov dword [0x4045f0], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045e8], eax
mov dword [0x4045fc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045ec], eax
push 0x4045d0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040ee]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.lofegaswer_huijd
push str.lisclass
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404648], eax
push 5
push dword [0x404648]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404648]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404600]
jmp 0x403a10
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a02
mov eax, dword [0x404608]
jmp 0x403a2b
call 0x402c21
ret
Function at 0x405861
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp eax, 0x65f8ecff
adc al, 0x3b
lea esp, [esi]
push ss
push es
fistp word [edi - 0x29]

Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push es
jge 0x407f43
dec edi
jl 0x407f03
inc ebx
dec esp
adc byte [esi], cl
add byte [ebp - 0x23], ch
inc ebp
or ah, bl
sbb eax, 0xec29f
fld qword [ebp + 8]
fcomp qword [0xec29f]
mov ecx, dword [ebp + 0x18]
inc eax
mov byte [0xdd085ddd], al
inc ebp
in al, dx
Function at 0x406820
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406cc8
mov byte [esp], al
cmp byte [esp], 0
jne 0x4069a9
test edi, edi
je 0x4069a9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4068e9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4068c4
cmp edi, 0xffffffff
je 0x406885
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406885
mov byte [esp], 0
jmp 0x4069a9
cmp dword [esi], 1
jg 0x4068c4
cmp dword [esi], 0
jne 0x4068b6
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4068b6
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4069a9
lea eax, [esp + 0xc]
call fcn.00406500
dec ebp
test ebp, ebp
jg 0x40686a
cmp edi, 0xffffffff
je 0x4068e9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4068e7
mov byte [esp], 0
jmp 0x4069a9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40682e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4068e9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406a24
mov edx, eax
mov ebx, dword [0x4cf8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40694d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40694b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40694d
xor edi, edi
cmp byte [esp], 0
je 0x406973
mov ebx, dword [esi]
test bl, 1
jne 0x406989
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406953
mov byte [esp + 1], 1
jmp 0x406989
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406973
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406900
cmp byte [esp], 0
je 0x4069a9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40761c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4d1b98
cmp dword [ebp + 0xc], 2
jl 0x407630
mov ebx, 0x4d1bc8
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x407668
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4036fc
mov dword [0x4cf01c], eax
mov eax, 0x403704
mov dword [0x4cf020], eax
mov eax, ebx
call fcn.00407500
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x40769d
cmp al, 3
jge 0x40769d
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4076ae
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x4076b9
call dword [ecx + eax*4]
cmp dword [0x4cf040], 0
jne 0x4076cf
mov byte [0x4cf048], 1
fnstcw word [0x4cb028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00407968
call fcn.004075b0
ret 4

Function at 0x4078d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4cf058], 0
je 0x407937
cmp word [0x4cf344], 0xd7b2
jne 0x4078f9
cmp dword [0x4cf34c], 0
jbe 0x4078f9
mov eax, 0x4cf340
call dword [0x4cf35c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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
mov eax, 0x407964
call fcn.004084b8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4cb032], 0
jne 0x407953
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407af8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4cb034], 0
je 0x407b23
mov edx, edi
mov eax, esi
call dword [0x4cb034]
mov ebx, eax
jmp 0x407b34
mov eax, 8
call fcn.0040543c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4cf059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x407ac0
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x407b64
mov eax, ebx
call fcn.00405458
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40af64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40b0c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407c38
cmp si, word [0x4cba10]
jb 0x40affc
cmp si, word [0x4cbc10]
ja 0x40affc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40affc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4cba10]
jae 0x40afd6
mov edi, ebx
dec edi
jmp 0x40aff7
cmp si, word [ebx*8 + 0x4cba10]
jbe 0x40afe6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40aff7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4cba14]
call fcn.0040ae84
jmp 0x40affc
cmp edi, dword [ebp - 8]
jae 0x40afc0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40b0ab
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b0ab
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004087a8
push dword [ebp - 0x160]
push 0x40b0e4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004087a8
push dword [ebp - 0x164]
push 0x40b0f4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004087a8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004089e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b0d0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407c98
ret
Function at 0x40b27c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b380
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d1c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4d1c28]
jne 0x40b2c8
mov eax, esi
mov edx, 0x4d1c2a
mov ecx, 0x55
call fcn.004087a8
push 0x4d1c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40b36a
push 0x4d1c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407c38
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b337
cmp byte [0x4d1c0c], 0
je 0x40b2fc
mov edx, esi
mov eax, ebx
call fcn.0040b160
jmp 0x40b337
mov edx, esi
mov eax, ebx
call fcn.0040af64
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40b337
cmp dword [esi], 0
je 0x40b320
mov eax, esi
mov edx, 0x40b398
call fcn.00408900
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040af64
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408900
push 0x4d1c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4d1c28], bx
mov eax, dword [esi]
call fcn.00408708
mov ecx, eax
mov eax, 0x4d1c2a
mov edx, 0xaa
call fcn.0040ade4
push 0x4d1c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b387
lea eax, [ebp - 4]
call fcn.00407c38
ret