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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e266
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x44a064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x40
lea eax, [ebp - 0x58]
mov byte [ebp - 0x18], 0
push 0
push eax
mov dword [ebp - 0x17], 0
mov byte [ebp - 0x13], 0
call fcn.00410e30
add esp, 0xc
mov dword [ebp - 0x2a0], 0x40
lea eax, [ebp - 0x29c]
push eax
push 0x20019
push 0
push 0x440cfc
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409ce9
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x440cf0
push dword [ebp - 0x29c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409ce9
sub esp, 0x18
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.00401670
lea ecx, [ebp - 0x280]
call fcn.00407c70
add esp, 0x18
mov esi, eax
cmp edi, esi
je 0x409cc2
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x409c9b
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00401e50
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x409cb3
mov eax, dword [edi]
jmp 0x409cb5
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
push esi
call fcn.00401970
mov eax, dword [ebp - 0x26c]
cmp eax, 8
jb 0x409dca
inc eax
lea ecx, [ebp - 0x280]
push eax
push dword [ebp - 0x280]
call fcn.00401e50
jmp 0x409dca
lea ecx, [ebp - 0x18]
call fcn.00409b00
test eax, eax
je 0x409dcf
push 0x104
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.00410e30
movsx eax, byte [ebp - 0x13]
add esp, 0xc
push eax
movsx eax, byte [ebp - 0x14]
push eax
movsx eax, byte [ebp - 0x15]
push eax
movsx eax, byte [ebp - 0x16]
push eax
movsx eax, byte [ebp - 0x17]
push eax
movsx eax, byte [ebp - 0x18]
push eax
push 0x440d20
lea eax, [ebp - 0x160]
push 0x104
push eax
call fcn.004013a0
add esp, 0x24
call fcn.00405e40
lea ecx, [ebp - 0x160]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409d54
sub ecx, edx
lea edx, [ebp - 0x160]
push ecx
call fcn.00406020
push 0x104
mov esi, eax
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.00410e30
add esp, 0xc
lea eax, [ebp - 0x268]
push esi
push 0x440d40
push 0x104
push eax
call fcn.004013a0
sub esp, 8
lea eax, [ebp - 0x268]
mov ecx, esp
push eax
call fcn.00401670
lea ecx, [ebp - 0x298]
call fcn.00407c70
add esp, 0x18
mov ecx, edi
push eax
call fcn.00401400
lea ecx, [ebp - 0x298]
call fcn.004013c0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040cc96
mov esp, ebp
pop ebp
ret
Function at 0x409df0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 4]
push eax
push 0
mov ebx, ecx
mov dword [ebp - 4], 0
call edi
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ccac
mov ecx, dword [ebp - 4]
mov esi, eax
add ecx, ecx
push ecx
push 0
push esi
call fcn.00410e30
add esp, 0x10
test esi, esi
jne 0x409e47
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push esi
call edi
test eax, eax
jne 0x409e66
push esi
xor edi, edi
call fcn.0040cca7
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [esi], 0
jne 0x409e70
xor eax, eax
jmp 0x409e84
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409e75
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, ebx
call fcn.00401740
push esi
mov edi, 1
call fcn.0040cca7
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4191e7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042d1a0
mov eax, dword [0x44a064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00420450
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419229
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419385
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040d760
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x44f1e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00421c1d
mov ecx, dword [esi*4 + 0x44f1e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41937e
cmp eax, dword [edi + ecx + 0x24]
jne 0x41937e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41937e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421c1d
add esp, 0x14
test edx, edx
jl 0x41937e
jg 0x4192f4
test eax, eax
jb 0x41937e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41937e
jl 0x41930e
cmp dword [ebp - 0x1008], eax
ja 0x41937e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41932c
test ebx, ebx
je 0x419365
cmp ecx, edi
jae 0x419365
mov al, byte [ecx]
cmp al, 0xd
jne 0x419346
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419352
cmp byte [ecx + 1], 0xa
jne 0x419352
inc ecx
jmp 0x419352
movzx eax, al
movsx eax, byte [eax + 0x44a4c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41932c
cmp edx, ebx
jne 0x41932c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419383
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040cc96
leave
ret

Function at 0x41ee47
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4391e4
push 0x4391dc
push 0x4391e4
push 0x1e
call fcn.0041ecb4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ee7b
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f210]
call esi
jmp 0x41ee81
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41eec5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439208
push 0x439200
push 0x439208
push 0x20
call fcn.0041ecb4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eefc
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f210]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4218e5
Capabilities:
Read file on windows

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

Function at 0x421f10
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x44f1e0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x421f50
cmp byte [ebx], 0xa
jne 0x421f50
or byte [eax + edi + 0x28], 4
jmp 0x421f55
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x422053
mov al, byte [edx]
cmp al, 0x1a
je 0x422035
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x421f84
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x421fa9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x421fb3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x421f66
jmp 0x422053
push 0
lea eax, [ebp - 0xc]
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 0x422030
cmp dword [ebp - 0xc], 0
je 0x422030
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x44f1e0]
test byte [eax + edi + 0x28], 0x48
je 0x42200a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x421ff5
mov byte [esi], dl
jmp 0x422006
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x44f1e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x422053
cmp byte [ebp - 1], 0xa
jne 0x422019
cmp esi, ebx
jne 0x422019
mov byte [esi], 0xa
jmp 0x422052
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421c3b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x422053
mov byte [esi], 0xd
jmp 0x422052
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x44f1e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42204f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x422053
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42205c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x44f1e0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42209f
cmp word [esi], dx
jne 0x42209f
or byte [edi + eax + 0x28], 4
jmp 0x4220a4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4221f7
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4221d7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4220e6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42211c
cmp eax, edx
jae 0x422128
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4220be
jmp 0x4221f7
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4221d3
cmp dword [ebp - 0x14], 0
je 0x4221d3
mov eax, dword [ebx*4 + 0x44f1e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4221ab
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x422174
mov word [esi], cx
jmp 0x4221a7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x44f1e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x44f1e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x44f1e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4221f7
pop ebx
cmp word [ebp - 4], bx
jne 0x4221bc
cmp esi, dword [ebp + 0xc]
jne 0x4221bc
mov word [esi], bx
jmp 0x4221f4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421c3b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4221f7
push 0xd
jmp 0x4221f0
mov ecx, dword [ebx*4 + 0x44f1e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4221ee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4221f7
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42459a
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 0x424637
push ebx
push esi
call fcn.00424563
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.0041f4f6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4245e4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424636
push edi
push eax
call fcn.0041dc2c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x424604
call fcn.0041dfa5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424635
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041f4f6
add esp, 0x20
test eax, eax
jne 0x424623
push edi
call fcn.0041dfa5
jmp 0x42462b
push ebx
call fcn.0041dfa5
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 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6a
nop
nop
sub eax, 0x403d10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp int.00401219
Function at 0x4071bc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409bc4
test esi, esi
jne 0x4071f2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409d4c
jmp 0x407210
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407100
mov edi, eax
test esi, esi
je 0x407210
cmp dword [ebx], 0
je 0x407210
dec esi
jmp 0x4071f9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408874
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.00408cf0
mov byte [esp], al
cmp byte [esp], 0
jne 0x4089fd
test edi, edi
je 0x4089fd
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40893d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408918
cmp edi, 0xffffffff
je 0x4088d9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4088d9
mov byte [esp], 0
jmp 0x4089fd
cmp dword [esi], 1
jg 0x408918
cmp dword [esi], 0
jne 0x40890a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40890a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4089fd
lea eax, [esp + 0xc]
call fcn.00408534
dec ebp
test ebp, ebp
jg 0x4088be
cmp edi, 0xffffffff
je 0x40893d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40893b
mov byte [esp], 0
jmp 0x4089fd
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408882
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40893d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408a6c
mov edx, eax
mov ebx, dword [0x61d8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4089a1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40899f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4089a1
xor edi, edi
cmp byte [esp], 0
je 0x4089c7
mov ebx, dword [esi]
test bl, 1
jne 0x4089dd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089a7
mov byte [esp + 1], 1
jmp 0x4089dd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089c7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408954
cmp byte [esp], 0
je 0x4089fd
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 0x40985c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x61d05c], 0
je 0x4098c3
cmp word [0x61d348], 0xd7b2
jne 0x409885
cmp dword [0x61d350], 0
jbe 0x409885
mov eax, 0x61d344
call dword [0x61d360]
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, 0x4098f0
call fcn.0040a440
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x614034], 0
jne 0x4098df
push 0
push 0x6149ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409a84
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 [0x614038], 0
je 0x409aaf
mov edx, edi
mov eax, esi
call dword [0x614038]
mov ebx, eax
jmp 0x409ac0
mov eax, 8
call fcn.00406e3c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x61d05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409a4c
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 0x409af0
mov eax, ebx
call fcn.00406e58
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c844
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 0x40c9a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409bc4
cmp si, word [0x614a08]
jb 0x40c8dc
cmp si, word [0x614c08]
ja 0x40c8dc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c8dc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x614a08]
jae 0x40c8b6
mov edi, ebx
dec edi
jmp 0x40c8d7
cmp si, word [ebx*8 + 0x614a08]
jbe 0x40c8c6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c8d7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x614a0c]
call fcn.0040c764
jmp 0x40c8dc
cmp edi, dword [ebp - 8]
jae 0x40c8a0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c98b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c98b
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.0040a7f8
push dword [ebp - 0x160]
push 0x40c9c4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a7f8
push dword [ebp - 0x164]
push 0x40c9d4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a7f8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aa30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9b0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409c24
ret
Function at 0x40cb5c
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 0x40cc60
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x61fb8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x61fba4]
jne 0x40cba8
mov eax, esi
mov edx, 0x61fba6
mov ecx, 0x55
call fcn.0040a7f8
push 0x61fb8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cc4a
push 0x61fb8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409bc4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cc17
cmp byte [0x61fb88], 0
je 0x40cbdc
mov edx, esi
mov eax, ebx
call fcn.0040ca40
jmp 0x40cc17
mov edx, esi
mov eax, ebx
call fcn.0040c844
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cc17
cmp dword [esi], 0
je 0x40cc00
mov eax, esi
mov edx, 0x40cc78
call fcn.0040a950
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c844
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a950
push 0x61fb8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x61fba4], bx
mov eax, dword [esi]
call fcn.0040a73c
mov ecx, eax
mov eax, 0x61fba6
mov edx, 0xaa
call fcn.0040c6c4
push 0x61fb8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc67
lea eax, [ebp - 4]
call fcn.00409bc4
ret