joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40932b
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
push esi
xor esi, esi
test eax, eax
je 0x409349
mov al, byte [ecx + esi + 4]
sub al, byte [ecx + 0x2d]
xor al, byte [ecx + 0x2c]
mov byte [ecx + esi + 4], al
inc esi
mov eax, dword [ecx]
cmp esi, eax
jb 0x409334
mov byte [eax + ecx + 4], 0
lea eax, [ecx + 4]
pop esi
ret

Function at 0x409353
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
push esi
xor esi, esi
test eax, eax
je 0x409371
mov al, byte [ecx + esi + 4]
sub al, byte [ecx + 0xc]
xor al, byte [ecx + 0xb]
mov byte [ecx + esi + 4], al
inc esi
mov eax, dword [ecx]
cmp esi, eax
jb 0x40935c
mov byte [eax + ecx + 4], 0
lea eax, [ecx + 4]
pop esi
ret

Function at 0x40937b
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
push esi
xor esi, esi
test eax, eax
je 0x409399
mov al, byte [ecx + esi + 4]
sub al, byte [ecx + 0x2f]
xor al, byte [ecx + 0x2e]
mov byte [ecx + esi + 4], al
inc esi
mov eax, dword [ecx]
cmp esi, eax
jb 0x409384
mov byte [eax + ecx + 4], 0
lea eax, [ecx + 4]
pop esi
ret

Function at 0x409402
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
push esi
xor esi, esi
test eax, eax
je 0x409420
mov al, byte [ecx + esi + 4]
sub al, byte [ecx + 9]
xor al, byte [ecx + 8]
mov byte [ecx + esi + 4], al
inc esi
mov eax, dword [ecx]
cmp esi, eax
jb 0x40940b
mov byte [eax + ecx + 4], 0
lea eax, [ecx + 4]
pop esi
ret

Function at 0x409c00
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
mov ebx, ecx
push ebx
push 0x409ddf
mov eax, dword [ebx]
mov dword [ebx + 4], eax
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
push 0x4c
pop ecx
cdq
idiv ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x409ca6
lea eax, [ecx - 1]
xor edx, edx
test eax, eax
je 0x409ca6
push esi
push edi
mov esi, ecx
sub esi, edx
sub esi, 1
mov dword [ebp - 8], esi
je 0x409c9c
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, dword [ebx]
add edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 0x4c]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
cmp eax, dword [edi + 0x4c]
jbe 0x409c8b
mov esi, edi
lea edi, [ebp - 0x60]
push 0x13
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
push 0x13
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
lea esi, [ebp - 0x60]
mov edi, dword [ebx]
add ecx, 0x4c
add edi, ecx
push 0x13
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 8]
add ecx, 0x4c
sub esi, 1
mov dword [ebp - 4], ecx
mov dword [ebp - 8], esi
jne 0x409c4a
mov ecx, dword [ebp - 0x14]
inc edx
lea eax, [ecx - 1]
cmp edx, eax
jb 0x409c39
pop edi
pop esi
mov eax, ecx
pop ebx
leave
ret

Function at 0x40a79c
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
push esi
xor esi, esi
test eax, eax
je 0x40a7ba
mov al, byte [ecx + esi + 4]
sub al, byte [ecx + 0x15]
xor al, byte [ecx + 0x14]
mov byte [ecx + esi + 4], al
inc esi
mov eax, dword [ecx]
cmp esi, eax
jb 0x40a7a5
mov byte [eax + ecx + 4], 0
lea eax, [ecx + 4]
pop esi
ret
Function at 0x40ee52
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x40ee91
call fcn.004187c9
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40ee91
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40ee99
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0040c1b4
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40f5bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x40f64b
cmp dword [esi + 0x20], 0
je 0x40f64b
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40f64b
cmp dword [ebp + 8], 0
je 0x40f64b
xor edi, edi
mov ebx, edi
call fcn.004187c9
push 0x43f5e0
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x40f62f
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f64b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.0041b5f0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40f647
mov ecx, esi
call fcn.0040f399
mov eax, edi
jmp 0x40f64d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x413949
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x413974
cmp dword [edi + 0x80], 0
jne 0x413974
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.004187c9
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00413ba1
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4167b5
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x416808
push esi
push dword [ebp + 8]
call fcn.0041699e
mov edi, eax
test edi, edi
je 0x416803
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x416803
mov eax, dword [ebp - 8]
jmp 0x41681a
mov eax, dword [ebp + 0x10]
jmp 0x41681a
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc
Function at 0x4307be
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043043b
Function at 0x5709d0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

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 0x401833
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x401f78
call fcn.00401d98
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x403f68
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x401878
cmp eax, esi
jne 0x40186b
xor esi, esi
inc esi
mov edi, esi
jmp 0x40187b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40184f
xor esi, esi
inc esi
cmp dword [0x403f6c], esi
jne 0x40188d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4018c7
cmp dword [0x403f6c], ebx
jne 0x4018c1
mov dword [0x403f6c], esi
push 0x4010cc
push 0x4010c0
call fcn.004019ac
pop ecx
pop ecx
test eax, eax
je 0x4018c7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40199c
mov dword [0x402014], esi
cmp dword [0x403f6c], esi
jne 0x4018ea
push 0x4010bc
push 0x4010b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x403f6c], 2
test edi, edi
jne 0x4018f7
xor eax, eax
mov ecx, 0x403f68
xchg dword [ecx], eax
cmp dword [0x403f70], 0
je 0x401923
push 0x403f70
call fcn.00401bf0
pop ecx
test eax, eax
je 0x401923
push ebx
push 2
push ebx
mov esi, dword [0x403f70]
mov ecx, esi
call dword [0x4040cc]
call esi
push dword [0x402020]
push dword [0x40201c]
push dword [0x402018]
call fcn.00401390
add esp, 0xc
mov dword [0x402010], eax
cmp dword [0x402028], 0
jne 0x401981
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x402014], 0
jne 0x401995
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x402010]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00493000
jmp 0x401833

Function at 0x401ad4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x401f98
call fcn.00401d98
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401b34
cmp eax, 0xffffffff
je 0x401b34
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401b2d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401b2d
cmp edx, 0x10000000
jae 0x401b2d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401b2a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401ba0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x401bde
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401bd6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401be0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401bc6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x462750
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5d000]
push edi
jmp 0x46276a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x462771
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x462760
mov eax, 1
add ebx, ebx
jne 0x462783
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x462778
jne 0x462794
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x462778
xor ecx, ecx
sub eax, 3
jb 0x4627a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46281a
mov ebp, eax
add ebx, ebx
jne 0x4627b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4627c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4627e4
inc ecx
add ebx, ebx
jne 0x4627d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4627c5
jne 0x4627e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4627c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x462804
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4627f5
jmp 0x462766
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x462804
add edi, ecx
jmp 0x462766
pop esi
mov edi, esi
mov ecx, 0x244
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x462822
cmp byte [edi], 2
jne 0x462822
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 al, bl
loop 0x462827
lea edi, [esi + 0x60000]
mov eax, dword [edi]
or eax, eax
je 0x46289f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8b968]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ba34]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x462854
mov ecx, edi
jns 0x462883
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 + 0x8ba3c]
or eax, eax
je 0x462899
mov dword [ebx], eax
add ebx, 4
jmp 0x462871
call dword [esi + 0x8ba38]
mov ebp, dword [esi + 0x8ba40]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4628d3
sub esp, 0xffffff80
jmp 0x4030e3
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x100062fa
pop dword [ebp - 0x44]
mov eax, 0x699dab19
add eax, 0xa662b7e1
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x3bccc
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0xe9d4c5af
sub ecx, 0xe9d47293
mov esi, eax
mov edi, 0x10018600
add edi, dword [ebp - 0x44]
mov ebx, 0xbaf097df
sub dword [ebp - 0x24], ebx
mov edx, dword [edi]
add dword [ebp - 0x24], 0x39851bf5
add edx, ebx
xor dword [ebp - 0x24], 0x66fa49e1
mov dword [esi], edx
xor dword [ebp - 0x10], 0x66c46170
add esi, 4
add edi, 0x8009409b
add edi, 0x7ff6bf69
loop 0x10006348
add eax, 0xee1a45c4
add eax, 0x11e6f97f
mov ebx, eax
add eax, 0xefd65f8
sub eax, 0xefd65f3
mov ecx, 0x142967cb
sub ecx, 0x42967cb
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x402a40
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.00404770
test esi, esi
jne 0x402a76
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.00404860
jmp 0x402a94
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402954
mov edi, eax
test esi, esi
je 0x402a94
cmp dword [ebx], 0
je 0x402a94
dec esi
jmp 0x402a7d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037f4
Capabilities:
Query or enumerate registry value

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

Function at 0x404550
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46e048], 0
je 0x4045b1
cmp word [0x46e21c], 0xd7b2
jne 0x404579
cmp dword [0x46e224], 0
jbe 0x404579
mov eax, 0x46e218
call dword [0x46e234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46c090
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 0x4045d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46c030], 0
jne 0x4045cd
push 0
push 0x46c088
push 0x46c090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404724
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040270c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46e049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4046ec
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406648
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 0x4066ae
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.004049e0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040325c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406698
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066b5
lea eax, [ebp - 0x10]
call fcn.00404770
ret

Function at 0x40b9f4
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 0x40ba2d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404860
jmp 0x40ba36
mov eax, ebx
mov edx, esi
call fcn.004047c4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c0e8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bf60
mov eax, dword [0x46db1c]
cmp byte [eax], 0
je 0x40c164
mov eax, dword [0x46d828]
call fcn.00402e64
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.00409194
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 0x40c1ac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c19a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46d7ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46e664]
call fcn.00405b5c
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 0x40ca00
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 0x40cad6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404808
lea eax, [ebp - 8]
call fcn.00404c80
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c30
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cac0
mov eax, ebx
call fcn.0040270c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cab9
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.00404c30
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40caa3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cae8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40caa3
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 0x40cac0
mov eax, dword [ebp - 0x10]
call fcn.0040272c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cadd
lea eax, [ebp - 8]
call fcn.00404770
ret

Function at 0x40d054
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 0x40d0b8
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.004049e0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408b50
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0bf
lea eax, [ebp - 0xc]
call fcn.00404770
ret

Function at 0x41b118
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41b165
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041af44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b17d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41b184
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041af44
dec esi
jne 0x41b1a6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret