joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4073a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00405a90
add esp, 4
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00407690
add esp, 8
push eax
lea ecx, [ebp - 8]
call fcn.00407700
lea ecx, [ebp - 0xc]
call fcn.00407600
mov dword [ebp - 0x10], 0x407740
mov edx, dword [ebp - 4]
add edx, 4
push edx
push 0
lea ecx, [ebp - 8]
call fcn.00401670
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
call fcn.00410831
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x407413
lea ecx, [ebp - 8]
call fcn.00406a00
jmp 0x407424
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
push 6
call fcn.00408752
lea ecx, [ebp - 8]
call fcn.00407600
mov esp, ebp
pop ebp
ret 4

Function at 0x409aa1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x409ac2
jl 0x409ab9
test edi, edi
jne 0x409ac2
xor eax, eax
xor edx, edx
jmp 0x409b83
cmp dword [ebx + 0x38], 0
je 0x409ad7
push eax
push edi
push dword [ebp + 8]
call fcn.00409b89
jmp 0x409b83
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409b1e
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409b1e
cmp eax, edi
jb 0x409af8
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040cc40
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x409b24
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x409b78
mov ecx, ebx
call fcn.004091b8
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x409b63
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00413577
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x409b78
jmp 0x409b36
test edx, edx
je 0x409b78
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00413577
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40ca26
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42db0c
push 0x42db04
push str.FlsAlloc
push 0x1e
call fcn.0041908b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419292
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a150]
call esi
jmp 0x419298
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4192dc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42db1c
push 0x42db14
push str.FlsGetValue
push 0x20
call fcn.0041908b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419313
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41c4a6
Capabilities:
Read file on windows

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

Function at 0x41c4b1
Capabilities:
Read file on windows

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

Function at 0x41c8ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040cb90
mov eax, dword [0x439020]
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.0041aefd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c8ed
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ca49
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428d30
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 + 0x53ecf0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041da7b
mov ecx, dword [esi*4 + 0x53ecf0]
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 0x41ca42
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ca42
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 0x41ca42
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041da7b
add esp, 0x14
test edx, edx
jl 0x41ca42
jg 0x41c9b8
test eax, eax
jb 0x41ca42
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ca42
jl 0x41c9d2
cmp dword [ebp - 0x1008], eax
ja 0x41ca42
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c9f0
test ebx, ebx
je 0x41ca29
cmp ecx, edi
jae 0x41ca29
mov al, byte [ecx]
cmp al, 0xd
jne 0x41ca0a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41ca16
cmp byte [ecx + 1], 0xa
jne 0x41ca16
inc ecx
jmp 0x41ca16
movzx eax, al
movsx eax, byte [eax + 0x4392b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c9f0
cmp edx, ebx
jne 0x41c9f0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ca47
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040bcc2
leave
ret
Function at 0x41cf19
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 + 0x53ecf0]
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 0x41cf59
cmp byte [ebx], 0xa
jne 0x41cf59
or byte [eax + edi + 0x28], 4
jmp 0x41cf5e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d05c
mov al, byte [edx]
cmp al, 0x1a
je 0x41d03e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41cf8d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41cfb2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41cfbc
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 0x41cf6f
jmp 0x41d05c
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 0x41d039
cmp dword [ebp - 0xc], 0
je 0x41d039
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x53ecf0]
test byte [eax + edi + 0x28], 0x48
je 0x41d013
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41cffe
mov byte [esi], dl
jmp 0x41d00f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x53ecf0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d05c
cmp byte [ebp - 1], 0xa
jne 0x41d022
cmp esi, ebx
jne 0x41d022
mov byte [esi], 0xa
jmp 0x41d05b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041da99
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d05c
mov byte [esi], 0xd
jmp 0x41d05b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x53ecf0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d058
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d05c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d065
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 + 0x53ecf0]
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 0x41d0a8
cmp word [esi], dx
jne 0x41d0a8
or byte [edi + eax + 0x28], 4
jmp 0x41d0ad
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 0x41d200
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 0x41d1e0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d0ef
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d125
cmp eax, edx
jae 0x41d131
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 0x41d0c7
jmp 0x41d200
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 0x41d1dc
cmp dword [ebp - 0x14], 0
je 0x41d1dc
mov eax, dword [ebx*4 + 0x53ecf0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d1b4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d17d
mov word [esi], cx
jmp 0x41d1b0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x53ecf0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x53ecf0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x53ecf0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d200
pop ebx
cmp word [ebp - 4], bx
jne 0x41d1c5
cmp esi, dword [ebp + 0xc]
jne 0x41d1c5
mov word [esi], bx
jmp 0x41d1fd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041da99
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d200
push 0xd
jmp 0x41d1f9
mov ecx, dword [ebx*4 + 0x53ecf0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d1f7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d200
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 0x421bbd
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 0x421c5a
push ebx
push esi
call fcn.00421b86
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.0042080b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x421c07
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421c59
push edi
push eax
call fcn.00419f98
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x421c27
call fcn.00418daf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421c58
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042080b
add esp, 0x20
test eax, eax
jne 0x421c46
push edi
call fcn.00418daf
jmp 0x421c4e
push ebx
call fcn.00418daf
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 0x428b30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x428b5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x428b5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402a7c
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.00404630
test esi, esi
jne 0x402ab2
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.00404720
jmp 0x402ad0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402930
mov edi, eax
test esi, esi
je 0x402ad0
cmp dword [ebx], 0
je 0x402ad0
dec esi
jmp 0x402ab9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40373c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49200c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4037b4
xor eax, eax
push ebp
push 0x4037ad
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 0x4037f0
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 0x4037b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x49200c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49200c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044b4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x495048], 0
je 0x404515
cmp word [0x49521c], 0xd7b2
jne 0x4044dd
cmp dword [0x495224], 0
jbe 0x4044dd
mov eax, 0x495218
call dword [0x495234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x492074
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 0x40453c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49201c], 0
jne 0x404531
push 0
push 0x492094
push 0x492074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4060ac
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40612f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40612f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4061b8
xor eax, eax
push ebp
push 0x4061b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ef4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406196
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406318
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406196
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061b8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4062d2
cmp byte [ebp - 0xd], 0
jne 0x4061ff
cmp byte [ebp - 0x12], 0
je 0x4062d2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406218
dec ebx
cmp byte [ebx], 0x2e
je 0x406227
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406217
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4062d2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406264
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4062d2
cmp byte [ebp - 0xd], 0
je 0x4062d2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4062d2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bc8c
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 0x40bcc5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404720
jmp 0x40bcce
mov eax, ebx
mov edx, esi
call fcn.00404684
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bcd8
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 0x40bcf9
mov al, byte [esp]
jmp 0x40bcfb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c380
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c1f8
mov eax, dword [0x494178]
cmp byte [eax], 0
je 0x40c3e8
mov eax, dword [0x493ebc]
call fcn.00402ea0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408ff4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40c430
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c41e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x493e54]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x495714]
call fcn.00405eb8
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 0x40d1c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d224
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404898
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408bbc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d22b
lea eax, [ebp - 0xc]
call fcn.00404630
ret
Function at 0x41f6d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x495a20
cmp dword [edi], 0
jne 0x41f74c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x495a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4925a0
mov ecx, 2
call fcn.004028f0
mov edx, 0x41f6a8
lea eax, [esi + 5]
call fcn.0041f6c8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f6c8
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 0x41f721
mov dword [0x495a1c], 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

Function at 0x420c40
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x420c46
ret

Function at 0x42318c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4231dd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4231c4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4231b4
jmp 0x4231dd
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4231c5
pop ebx
mov esp, ebp
pop ebp
ret