joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x407ef8
mov ecx, 0x39112102
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x675e06fe
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call 0x40c300
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.6117xfrx]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.6117xfrx]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.6117xfrx]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.6117xfrx]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.6117xfrx]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.6117xfrx]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x17c3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.017c378f
jae 0x17c370e
xor ecx, ecx
call fcn.017c378f
jae 0x17c373d
xor eax, eax
call fcn.017c378f
jae 0x17c374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.017c378f
adc al, al
jae 0x17c372f
jne 0x17c3779
stosb byte es:[edi], al
jmp 0x17c3711
call fcn.017c379b
sub ecx, ebx
jne 0x17c3756
call fcn.017c3799
jmp 0x17c3775
lodsb al, byte [esi]
shr eax, 1
je 0x17c3783
adc ecx, ecx
jmp 0x17c3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.017c3799
cmp eax, 0x7d00
jae 0x17c3772
cmp ah, 5
jae 0x17c3773
cmp eax, 0x7f
ja 0x17c3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17c3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x40362a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], 0xfffffffe
sub dh, byte [0x401b88]
mov edx, esi
shl edi, 6
sub bh, byte [0x405a88]
lea esi, [edi + 0x5b60]
push 0x40
mov edi, 0x16c7
mov ecx, dword [0x403a68]
push 0x3fdd42
call fcn.00404b2c
mov al, bl
lea esp, [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
and dword [ecx + 0x70], 0xfffffffd
leave
ret 8

Function at 0x404b7f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x41d074]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], eax
ja 0x404b82
jb 0x404baa
push eax
call dword [sym.imp.USER32.dll_GetSysColor]
lea ecx, [esi + 4]
call fcn.00406598
xor ecx, ecx
test eax, eax
jne 0x404b99
mov eax, esi
jmp 0x404b99

Function at 0x405967
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x41d054]
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
cmp dword [ebp + 8], 0
jne 0x40596a
add esi, dword [0x4025a4]
push eax
add edi, dword [0x4019e8]
push 0x3fd334
call fcn.00406b34
cmp esi, 0x41d32c
jne 0x405975
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [0x41d300]
add ebx, 0x10
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], pe_nt_image_headers32
test edi, eax
jne 0x4059bb
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], eax
jmp 0x4059ed
push edx
call esi
movzx ecx, word [ebx + 0x50]
push 0
mov ecx, 0x41d098
call fcn.00402f77
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
pop esi
pop ebx
pop ebp
ret
Function at 0x406605
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x14]
push eax
xor esi, 0x7707
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edi, 0x29c
push 0x3fe61d
call fcn.00406b34
push 0
push 0x1000
push ebx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x406634
mov edx, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0x168]
xor eax, eax
test ebx, ebx
jne 0x406644
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebx + 4], ecx
mov ecx, dword [eax + 0xbc]
mov ecx, dword [ecx]
cmp dword [esi + 0x14], eax
jae 0x40668d
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x406657
mov edi, dword [0x60c9d9]
mov ecx, dword [0x402748]
push 0x400993
call fcn.00406b34
cmp dword [edi + 8], 0
jne 0x406665
push 0x30
push ebx
jae 0x40665d
push esi
push 0x4014d4
call fcn.00409018
cmp cx, si
je 0x406687
sub edi, eax
mov eax, edi
pop edi
pop esi
xor ecx, ebp
xor eax, eax
cmp dword [ebp + eax*4 - 0x10], ebx
jne 0x4066a7
mov eax, dword [esi + 0x48]
cmp eax, dword [0x41d274]
jne 0x4066cd
mov dword [ebp - 4], 0xfffffffe
call fcn.0040352d
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [esi + 0x18]
sub edi, eax
dec ecx
and ecx, 0x80000000
or ebx, ecx
mov ecx, dword [0x41d1b4]
or ebx, dword [ebp - 0x10]
cmp ecx, 0x40
je 0x4066f8
inc edi
add esp, 4
xor eax, eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
xor ecx, ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4082fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x41d1c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push eax
push dword [ebp - 4]
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp word [ebx + 0x40], 0
mov byte [ebp - 0x10], 1
je 0x408306
push eax
push dword [esi + 0x18]
call fcn.00403223
pop ecx
cmp dword [ebp + 0xc], eax
ja 0x408330
mov dword [ebx + 8], esi
mov dword [ebx + 4], esi
pop esi
mov dword [ebp - 0x240], eax
cmp eax, esi
jne 0x408341
mov dword [ebx + 8], esi
xor eax, eax
cmp dword [0x41d388], eax
jne 0x408340
mov ecx, edx
cmp dword [esi + 0x14], eax
jb 0x40834b
cmp si, word [eax + 0x18]
ja 0x408347
movsx eax, byte [ebp - 2]
xor edi, edi
xor ebp, ebp
mov eax, dword [esp + 0x14]
or eax, eax
jne 0x40836d
mov ecx, dword [esp + 0x18]
Function at 0x408379
Capabilities:
Delete registry key
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
cmp dword [ebp + eax*4 - 0x10], ebx
jne 0x4083ac
test cl, 8
jne 0x4083b0
mov edi, dword [esi + 0x18]
mov eax, dword [ebp - 0x101c]
mov eax, dword [eax]
mov byte [ebp - 0xc], 0xd
push dword [edi + eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4083b0
add ecx, 1
test al, al
je 0x4083a4
push 1
push 0x40000015
push 3
push ebx
lea edx, [0x2507]
mov ch, byte [0x401cdc]
test eax, eax
jne 0x408409
push 0x404dad
call fcn.00409018
push edi
mov edi, dword [ebp + 8]
mov eax, edi
jmp 0x4083cb
mov dword [ebp - 0x28], edi
mov ebx, dword [ebp + 8]
cmp dword [edi + 4], 0x80
pop ebp
or byte [ecx + 0x80047f], al
add byte [eax], al
jg 0x408405
push 0xfe
lea ecx, [eax + 0x200]
push ecx
mov eax, dword [ecx + 0x38]
push esi
push edi
mov ecx, ebx
call fcn.0040683d
mov edi, dword [ebp + 8]
push 0
cmp eax, 0x41d128
je 0x408425
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, esi
dec edi
jne 0x40845d
push dword [esi + edi*8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xd4], edi
xor eax, eax
push eax
call fcn.00405185
push dword [esi]
call fcn.00405185
push esi
call fcn.0040368a
jmp 0x40845f

Function at 0x408934
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
call fcn.00408963
add eax, 1
sub edi, 1
xor dword [ebx], ecx
mov eax, eax
add edi, 0xace27261
inc ebx
sub edi, 0x17bb5896
cmp ebx, edx
jne fcn.00408934
ret
Function at 0x423bba
Capabilities:
Encrypt data using rc4 prga

Disassembly:
shr ebx, 0x38
lea eax, [ebp - 0x14]
push eax
movzx eax, word [ebx]
push eax
call 0x624e70
movzx esi, ax
lea eax, [ebp - 0x14]
push eax
movzx eax, word [edi]
push eax
call 0x8c334e70
jne 0x423c01
adc byte [edi], cl
mov bh, 0xc0
dec dword [ebp + 0x10]
lea ebx, [ebx + 2]
lea edi, [edi + 2]
je 0x423bf5
test si, si
je 0x423bf5
cmp si, ax
je 0x423bbd
Function at 0x468ae3
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x4c4190]
jne 0x468af5
call 0x11eaf85
mov eax, dword [0x4c7ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c7ef0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffd8df8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x468b38
fadd qword [str.ANYCRLF]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4bbaa0]
mov esp, ebp
pop ebp
ret

Function at 0x469405
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3804dc
lea ecx, [ebp + 0xffff24]
push esi
push edi
call 0x7925b
push dword [ebp + 0x10]
lea ecx, [ebp + 0xffff24]
call 0x8d4792a1
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x469449
mov edi, dword [ebp + 8]
push ecx
push ecx
lea ecx, [ebp + 0xffff24]
call 0x14693d9
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x469433
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x46a127
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x205c
call fcn.00431c02
cmp byte [0x894c6280], 6
push ebx
push esi
push edi
mov edi, ecx
jne 0x384aa33e
cmp dword [edi + 0xf8], 1
je 0x11ea33e
mov esi, dword [0x48f604]
lea eax, [ebp - 0x272058]
mov ebx, 0x6890fff
push ebx
push eax
push 0x66
push dword [0x4c6278]
call esi
lea eax, [ebp - 0x272058]
push eax
lea ecx, [ebp - 0x54]
call 0x69407fb3
push ebx
lea eax, [ebp - 0x272058]
push eax
push dword [ebp + 8]
push dword [0x4c6278]
call esi
lea eax, [ebp - 0x272058]
push eax
lea ecx, [ebp - 0x44]
call 0x69407fb3
add edx, dword [edi + 0x200fff4]
push edx
call fcn.004071b5
push edx
mov ebx, eax
call fcn.0045ffe7
push edx
mov dword [ebp - 4], eax
stc
call dword [edx - 0x75]
fsubr st(0)
xor bl, byte [esi - 1]
call dword [edx - 0x77]
inc ebp
cld
call 0x1f0019
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.00407839
lea eax, [ebp - 0x34]
push eax
push esi
call 0x1f004b
test byte [ecx - 0x73], dh
test dword [eax + 0x74ffd8df], ebp
adc al, 0xff
jne 0x46a1ab
mov esi, dword [ebp - 4]
push esi
push 0x4b9e70
push eax
call fcn.0042394a
jmp 0x46a20a
inc ebp
les edx, [eax]
lea eax, [ebp - 0x272058]
lea ecx, [ebp - 0x14]
push eax
call fcn.00407fb3
dec esp
invalid
Function at 0x402a34
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.004044c0
test esi, esi
jne 0x402a6a
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.004045b0
jmp 0x402a88
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402948
mov edi, eax
test esi, esi
je 0x402a88
cmp dword [ebx], 0
je 0x402a88
dec esi
jmp 0x402a71
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4035e0
Capabilities:
Query or enumerate registry value

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

Function at 0x404344
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46f04c], 0
je 0x4043a5
cmp word [0x46f220], 0xd7b2
jne 0x40436d
cmp dword [0x46f228], 0
jbe 0x40436d
mov eax, 0x46f21c
call dword [0x46f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46d070
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 0x4043cc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46d030], 0
jne 0x4043c1
push 0
push 0x46d068
push 0x46d070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b34
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 0x405d64
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405bb7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d64
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405bb7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d80
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405c40
xor eax, eax
push ebp
push 0x405c39
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040597c
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 0x405c1e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405da0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c1e
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 0x405c40
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 0x405d5a
cmp byte [ebp - 0xd], 0
jne 0x405c87
cmp byte [ebp - 0x12], 0
je 0x405d5a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405ca0
dec ebx
cmp byte [ebx], 0x2e
je 0x405caf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c9f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405d5a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405cec
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 0x405d5a
cmp byte [ebp - 0xd], 0
je 0x405d5a
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 0x405d5a
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 0x40642c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406492
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404730
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004031a4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40647c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406499
lea eax, [ebp - 0x10]
call fcn.004044c0
ret

Function at 0x40b898
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 0x40b8d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045b0
jmp 0x40b8da
mov eax, ebx
mov edx, esi
call fcn.00404514
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bf8c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40be04
mov eax, dword [0x46e9a4]
cmp byte [eax], 0
je 0x40c008
mov eax, dword [0x46e6f8]
call fcn.00402e70
call fcn.00402874
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.00408f4c
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 0x40c050
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c03e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46e684]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46f668]
call fcn.00405940
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 0x40c8ec
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c9c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404558
lea eax, [ebp - 8]
call fcn.004049d0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404980
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c9ac
mov eax, ebx
call fcn.0040270c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c9a5
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 - 8]
call fcn.00404980
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c98f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c9d4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c98f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9ac
mov eax, dword [ebp - 0x10]
call fcn.0040272c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9c9
lea eax, [ebp - 8]
call fcn.004044c0
ret

Function at 0x40cf8c
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 0x40cff0
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.00404730
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004089c8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cff7
lea eax, [ebp - 0xc]
call fcn.004044c0
ret

Function at 0x41eedc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46f888
cmp dword [edi], 0
jne 0x41ef58
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46f884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46d480
mov ecx, 2
call fcn.00402908
mov edx, 0x41eeb4
lea eax, [esi + 5]
call fcn.0041eed4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041eed4
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 0x41ef2d
mov dword [0x46f884], 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 0x4204f4
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 0x4204fa
ret
Function at 0x422a04
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 0x422a55
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422a3c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422a2c
jmp 0x422a55
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 0x422a3d
pop ebx
mov esp, ebp
pop ebp
ret