joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004fe0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x1002b008]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push esi
push edi
push 0x140
lea eax, [esp + 0x14]
mov esi, ecx
push 0
push eax
call fcn.10009bf0
add esp, 0xc
lea eax, [esp + 0x258]
push esi
push str._s
push eax
call fcn.100010c0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10005145
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop dword [eax]
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
je 0x100050f2
mov ecx, 0x10029114
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10005084
test dl, dl
je 0x10005080
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10005084
add eax, 2
add ecx, 2
test dl, dl
jne 0x10005064
xor eax, eax
jmp 0x10005089
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000512e
mov eax, 0x10029118
lea ecx, [esp + 0x3c]
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100050c0
test dl, dl
je 0x100050bc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100050c0
add ecx, 2
add eax, 2
test dl, dl
jne 0x100050a0
xor eax, eax
jmp 0x100050c5
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000512e
lea eax, [esp + 0x3c]
push eax
push esi
lea eax, [esp + 0x158]
push str._s_s
push eax
call fcn.100010c0
add esp, 0x10
lea ecx, [esp + 0x150]
call fcn.10004fe0
jmp 0x1000512a
push eax
push esi
lea eax, [esp + 0x158]
push str._s_s
push eax
call fcn.100010c0
add esp, 0x10
lea eax, [esp + 0x150]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x10005161
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
jne 0x10005050
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.100086f8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x364]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100086f8
mov esp, ebp
pop ebp
ret
Function at 0x100055f0
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x1002b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1000572e
push 0x140
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.10009bf0
add esp, 0xc
lea eax, [ebp - 0x320]
push edi
push str._s
push eax
call fcn.100010c0
add esp, 0xc
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005793
lea eax, [ebp - 0x434]
push eax
push edi
lea eax, [ebp - 0x110]
push str._s_s
push eax
call fcn.100010c0
lea eax, [ebp - 0x434]
push eax
push ebx
lea eax, [ebp - 0x218]
push str._s_s
push eax
call fcn.100010c0
add esp, 0x20
test byte [ebp - 0x460], 0x10
je 0x10005741
mov ecx, 0x10029114
lea eax, [ebp - 0x434]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100056d2
test dl, dl
je 0x100056ce
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100056d2
add eax, 2
add ecx, 2
test dl, dl
jne 0x100056b2
xor eax, eax
jmp 0x100056d7
sbb eax, eax
or eax, 1
test eax, eax
je 0x10005776
mov ecx, 0x10029118
lea eax, [ebp - 0x434]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10005710
test dl, dl
je 0x1000570c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10005710
add eax, 2
add ecx, 2
test dl, dl
jne 0x100056f0
xor eax, eax
jmp 0x10005715
sbb eax, eax
or eax, 1
test eax, eax
je 0x10005776
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x110]
call fcn.100055f0
test eax, eax
jne 0x10005776
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100086f8
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x1000572e
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x460]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10005665
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100086f8
mov esp, ebp
pop ebp
ret
Function at 0x10007e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1002b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov esi, ebx
and esi, 0xfffffffe
mov dword [ebp - 0x10], esi
jne 0x10007e93
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100086f8
mov esp, ebp
pop ebp
ret
not bl
mov dword [ebp - 0xc], 0
and bl, 1
je 0x10007ec0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 1
push dword [ebp - 8]
call dword [0x1002c3b0]
add esp, 0x10
mov dword [ebp - 0xc], eax
jmp 0x10007ed2
push esi
push dword [ebp + 8]
push 1
push edx
call fcn.1001400b
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
test bl, bl
je 0x10007f0e
mov dword [ebp - 8], 0
push 1
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [0x1002c3b8]
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100086f8
mov esp, ebp
pop ebp
ret
push 1
push 0
push esi
call fcn.1000da1d
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop esi
pop ebx
call fcn.100086f8
mov esp, ebp
pop ebp
ret

Function at 0x10007f30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1002b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov esi, ebx
and esi, 0xfffffffe
mov dword [ebp - 0x10], esi
jne 0x10007f63
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100086f8
mov esp, ebp
pop ebp
ret
not bl
mov dword [ebp - 0xc], 0
and bl, 1
je 0x10007f90
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 1
push dword [ebp - 8]
call dword [0x1002c3c0]
add esp, 0x10
mov dword [ebp - 0xc], eax
jmp 0x10007fa2
push esi
push dword [ebp + 8]
push 1
push edx
call fcn.1000dd6b
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
test bl, bl
je 0x10007fde
mov dword [ebp - 8], 0
push 1
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [0x1002c3b8]
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100086f8
mov esp, ebp
pop ebp
ret
push 1
push 0
push esi
call fcn.1000da1d
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop esi
pop ebx
call fcn.100086f8
mov esp, ebp
pop ebp
ret
Function at 0x100192c7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001913d
Function at 0x40b4b6
Capabilities:
Encode data using xor

Disassembly:
insd dword es:[edi], dx
add dl, 0xae
js 0x40b4f9
xlatb
or dword [ebx], esp
movsd dword es:[edi], dword [esi]
mov byte [edx + edi*4 - 0x2c], bh
pop ecx
pushfd
pop ebx
clc
lahf
ljmp 0xd5fe
adc al, 0xc4
invalid

Function at 0x44555a
Capabilities:
Encode data using xor

Disassembly:
fnsave dword [0x2d8df633]
inc edi
xchg ebx, eax
push ss
imul edx, dword [eax], 0x72e97b35
cmpsd dword [esi], dword es:[edi]
jnp 0x445545
jb 0x445505
push esp
adc byte [esi + 0x57cd5162], 0x8d
inc ebx
inc ebp
call dword [edx - 0x34]
jecxz 0x4455bc
dec edi
jge 0x445557
xchg dword [ebx], esi
popal
xor dh, byte [esi - 0x4c]
outsb dx, byte [esi]
sbb ch, byte [eax]
jb 0x44556c
cli
push ecx
lahf
add byte [ecx - 0xe806fd9], bh
dec esp
retf
clc
xchg byte [ebp + 0x10], ch
adc byte [esi - 0x1d03b8d9], bh

Function at 0x45c076
Capabilities:
Encode data using xor

Disassembly:
adc eax, 0x6c351600
mov esi, 0xb33d917f
Function at 0x47f71e
Capabilities:
Encode data using xor

Disassembly:
push ebx
sal dword [ebx + 0x365fc43b], cl
adc byte [esi + 0xa], dl
adc byte ss:[esi + 0xa], dl
vpsrad xmm3, xmm0, xmm2
xor al, 0x97
add eax, 0x187cf086
sub dword [ebp + ebp - 0x58], edx
out 0xd7, al
or esp, ecx
add al, 0xc5
test byte [eax + edi - 0x6907825b], dl
shr byte [ebx + 0x57], 0x76
ja 0x47f770
fisubr word [ebx - 0xd]
adc byte [edx], 0xb9
add al, 0x6a
sar byte [esi], 0x35
dec esi
and dword [esi + 6], 0xe1fa9555
xor eax, 0x86f2c638
mov ebx, 0x6764e574
xor eax, 0x666814e
push ebp
xchg ebp, eax
cli
loope 0x47f793
cmp dh, al
xacquire xchg byte [ebx + 0x6764e574], bh
das
xor al, 0x2e
cmc
stc
call 0x38525920
les esp, [esi]
sub bh, 0x7b
cmp ah, al
sub bh, 0x7b
movsb byte es:[edi], byte [esi]
jnp 0x47f754
cmp al, 4
jbe 0x47f724
pop es
mov dh, 0x1b
sal edi, 0x65
mov cl, 0x3f
or dword [ecx - 0x313177f4], ebx
pop edx
cli
jg 0x47f7d7
cmp dword [esi - 0x3103372b], eax
cld
into
ror byte [esp + esi*4 - 0x32fa014a], cl
fnstsw word [0x8cfa595a]
mov esi, dword [edx - 0x4439a044]
invalid
invalid
mov eax, 0x8ec9566c
xor byte [eax - 0x5f5f1125], 0x4a
stosb byte es:[edi], al
pop esi
out dx, al
fisttp dword [esi + 0x5d]
push 0xffffffffffffffd1
inc ebx
jno 0x47f7fd
mov esp, 0xfd4017c4
pop ss
inc eax
std
mov byte [ecx + 0xa3eb1b8], dl
loope 0x47f7e1
invalid
jg 0x47f7a6
push cs
loop 0x47f7be
invalid
out dx, al
sar byte [edx + eax*2], cl
inc edx
mov ebx, 0x8c4b6e14
xchg byte [edx], ch
pop eax
fild qword [ebp + 0x4934b0d8]
nop
adc eax, 0xd751d451
pop eax
xchg esi, eax
arpl word [ecx + 0x4025c064], ax
out 0x4d, al
cmpsd dword [esi], dword es:[edi]
jb 0x47f886
mov al, byte [0x338c8f2]
scasb al, byte es:[edi]
mov dword [0x5329a3c9], eax
dec edx
xchg dword [ebp + ecx + 0x3cd65bf6], esi
aam 0x58
push es
jnp 0x47f7fa
adc eax, 0x8794bca8
mov ah, 0x60
cmp byte [eax + 0x56], al
mov esp, 0xfd195c0e
fst dword [esi - 0x7f765597]
or byte [ecx + ecx*2], bh
pop esp
mov ah, 0xa1
inc esp
xchg ebp, eax
add byte [edi - 0x30], bh
ror byte [ebx + ebx*4 - 0x433d95b5], cl
push esp
xchg edi, eax
mov ah, 0x77
cmp edx, dword [ecx - 0x57]
scasb al, byte es:[edi]
aam 0xda
lodsd eax, dword [esi]
xchg esi, eax
int3
aam 0x1c
fmul dword [eax + ebp]
pushfd
test eax, 0xa19c52bc
std
xchg edx, eax
invalid
Function at 0x491304
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x491332
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x491350
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049126a
jmp 0x491350
mov eax, dword [esi + 0x14]
test eax, eax
je 0x491350
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049126a
test edi, edi
mov eax, edi
jne 0x49133a
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x404292
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404de1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x408460]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi + 0x24], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp + 0x28]
mov dword [esi + 8], edx
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], edi
test cl, cl
jne 0x404365
mov dword [ebp + 0x28], edi
test eax, eax
je 0x404332
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x40431c
mov edi, eax
add ecx, 0x10
dec edx
jne 0x404314
mov dword [ebp + 0x28], edi
mov eax, 0x406784
cmp edi, 0x100000
ja 0x404335
lea eax, [ebp + 0x28]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.00404a32
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x40435b
push eax
call fcn.00404ac8
add esp, 4
mov dword [esi + 0x24], edi
push 0
call fcn.00404ac8
add esp, 4
xor ecx, ecx
mov eax, ebx
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00404a32
add esp, 4
mov dword [ebp + 0x28], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4043b1
push 0x402640
push 0x402600
push ebx
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebx
call fcn.00404b8f
jmp 0x4043b3
xor edi, edi
mov eax, dword [esi + 0x2c]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x4043e2
test eax, eax
je 0x4043df
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402640
push ecx
push 0x44
push eax
call fcn.00404b2c
push ebx
call fcn.00404ac8
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.00403ed2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x9883f70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9138000]
push edi
jmp 0x9883f8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9883f91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9883f80
mov eax, 1
add ebx, ebx
jne 0x9883fa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9883fb4
jne 0x9883fd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9883fd3
dec eax
add ebx, ebx
jne 0x9883fc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x9883f98
add ebx, ebx
jne 0x9883fcf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x9884025
xor ecx, ecx
sub eax, 3
jb 0x9883feb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x988405a
sar eax, 1
mov ebp, eax
jmp 0x9883ff6
add ebx, ebx
jne 0x9883ff6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9883fc4
inc ecx
add ebx, ebx
jne 0x9884004
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9883fc4
add ebx, ebx
jne 0x9884011
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9884006
jne 0x9884022
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9884006
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9884044
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9884036
jmp 0x9883f86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9884044
add edi, ecx
jmp 0x9883f86
pop esi
mov edi, esi
mov ecx, 0x4e656
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9884062
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x9884067
lea edi, [esi + 0x947f000]
mov eax, dword [edi]
or eax, eax
je 0x98840d8
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x948622c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x94863fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x988408d
mov ecx, edi
jns 0x98840bc
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 + 0x9486404]
or eax, eax
je 0x98840d2
mov dword [ebx], eax
add ebx, 4
jmp 0x98840aa
call dword [esi + 0x9486400]
mov ebp, dword [esi + 0x9486408]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
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 0x988410c
sub esp, 0xffffff80
jmp 0xd217f7
Function at 0x402fcc
Capabilities:
Query or enumerate registry value

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

Function at 0x403d30
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47e04c], 0
je 0x403d91
cmp word [0x47e220], 0xd7b2
jne 0x403d59
cmp dword [0x47e228], 0
jbe 0x403d59
mov eax, 0x47e21c
call dword [0x47e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47b06c
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 0x403db8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47b030], 0
jne 0x403dad
push 0
push 0x47b064
push 0x47b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403ee4
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.0040272c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47e04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403eac
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405d3c
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 0x405da2
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.004041a0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b90
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d8c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405da9
lea eax, [ebp - 0x10]
call fcn.00403f30
ret

Function at 0x40b394
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 0x40b3cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404020
jmp 0x40b3d6
mov eax, ebx
mov edx, esi
call fcn.00403f84
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ba88
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b900
mov eax, dword [0x47d14c]
cmp byte [eax], 0
je 0x40bb04
mov eax, dword [0x47cd7c]
call fcn.004029fc
call fcn.00402894
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.00408a48
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 0x40bb4c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bb3a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47ccf4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47e668]
call fcn.00405250
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 0x40c3f4
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 0x40c4ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403fc8
lea eax, [ebp - 8]
call fcn.00404440
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004043f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c4b4
mov eax, ebx
call fcn.0040272c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c4ad
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.004043f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c497
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c4dc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c497
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 0x40c4b4
mov eax, dword [ebp - 0x10]
call fcn.0040274c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4d1
lea eax, [ebp - 8]
call fcn.00403f30
ret

Function at 0x40cab0
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 0x40cb14
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.004041a0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408420
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb1b
lea eax, [ebp - 0xc]
call fcn.00403f30
ret

Function at 0x41ed30
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 0x41ed7d
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.0041eb44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ed95
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41ed9c
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.0041eb44
dec esi
jne 0x41edbe
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret