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

Disassembly:
dec edx
not edx
test ax, sp
cmc
test si, 0x4d14
xor ebx, edx
test ebx, esp
clc
add edi, edx
jmp fcn.102464b7
test ah, 0x35
xor edx, ebx
inc edx
cmc
ror edx, 1
jmp 0x10070ef5
xchg esp, eax
push edx
fimul dword [esi + 0x54758c53]
push esp
in eax, 0x10
out 0x8c, al
xor ebp, esp
jb 0x1008174e
lea esi, [esi - 0x1b]
push esp
dec edi
scasd eax, dword es:[edi]
sbb ah, byte [ebp - 0x1aea9337]
xor dword [ebp - 0x38], edx
jle 0x10081787
movsd dword es:[edi], dword [esi]
sbb byte [eax + 0x4d0a1ae9], 0xd9
stosd dword es:[edi], eax
sbb cl, cl
add al, 0xe6
movsb byte es:[edi], byte [esi]
sbb bh, al
salc
mov byte [0x163ae548], al
sbb eax, 0x7d201ac9
sbb byte [0xfbf931b6], ch
and al, 7
in al, 0xb9
xlatb
invalid
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x406840
Capabilities:
Connect socket

Disassembly:
push ebp
mov ah, ch
push esi
xchg ebp, eax
jne 0x40681f
push fcn.004066e0
push esi
mov eax, dword [esi]
push eax
call 0x205640
push esi
call fcn.004066e0
add esp, 4
pop esi
add edx, 0x4d
add byte [eax + 0x4c909090], dl
nop
nop
nop
push cs
mov edx, dword [eax - 0x74aafb70]
in al, dx
test al, 0xec
adc byte [edx], al
jnp 0x406849
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 4]
cmp dword [edx + ebx + 0x194d30f], 0
add byte [ebx - 0x362eefb5], cl
minps xmm3, xmmword [esi - 0x74ff2cff]
jne 0x406898
mov ecx, dword [esi + 0x14]
lea edx, [esi + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffc4
jne 0x12969b8
mov esi, dword [0x40c5d8]
call esi
test eax, eax
sub al, 0x84
stc
and dword [eax], eax
add bh, bh
salc
add eax, 0x50fc80
cmp eax, 0xe60b23b3
jne 0x324069f4
mov edi, dword [ebx + 0x20]
mov esi, dword [ebx + 0x24]
mov eax, edi
pop ss
invalid
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40f080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
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 eax, ebx
loop 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a
Function at 0x4012d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401324
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401320
lea ebx, [ebx]
cmp esi, eax
jae 0x401324
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401310
cmp esi, eax
jb 0x40132a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402ae0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x44f634]
xor eax, esp
mov dword [esp + 0x10c], eax
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
push esi
push edi
mov edi, dword [esp + 0x124]
lea edx, [esp + 8]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402b59
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.004217a8
add esp, 0x110
ret 0xc
Function at 0x4038a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x438498
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x44f634]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x7c], 0
jne 0x4039c5
call fcn.0040f049
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4038ea
push 0x80004005
call fcn.004012b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x1c], 0
jge 0x403928
push 0x104
lea ecx, [esp + 0x14]
call fcn.00401930
mov esi, dword [esp + 0x10]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x40393c
xor eax, eax
jmp 0x403952
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403941
sub eax, edx
js 0x4039d8
cmp eax, dword [esi - 8]
jg 0x4039d8
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x18]
mov byte [eax + esi], 0
call fcn.00403340
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40399a
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x40399a
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x7c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push 0x80070057
call fcn.004012b0
int3

Function at 0x4078f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x407939
call fcn.0040ee35
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x407939
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40797c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x407965
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x407965
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x407979
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b921
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40b95a
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040b8bc
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00402e10
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x40d468
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40d4ab
call fcn.0040ee35
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40d4ab
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40d4c6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040d01f
test ebx, ebx
mov esi, eax
je 0x40d4c4
test edi, edi
je 0x40d4c4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4126c1
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 0x4126ef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41270d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041262b
jmp 0x41270d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41270d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041262b
test edi, edi
mov eax, edi
jne 0x4126f7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4529b0]
test ecx, ecx
je 0x4127d0
jmp 0x4126c0
ret 8

Function at 0x4217a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44f634]
jne 0x4217b2
repz ret
jmp fcn.0042783c
Function at 0x434670
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00427285
xor ebx, ebx
cmp dword [0x45371c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x434745
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4346b0
xor eax, eax
jmp 0x434809
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x444748
push edi
call esi
cmp eax, ebx
je 0x4346a9
push eax
call fcn.00427222
mov dword [esp], 0x444738
push edi
mov dword [0x45371c], eax
call esi
push eax
call fcn.00427222
mov dword [esp], 0x444724
push edi
mov dword [0x453720], eax
call esi
push eax
call fcn.00427222
mov dword [0x453724], eax
lea eax, [ebp - 8]
push eax
call fcn.0042307a
test eax, eax
pop ecx
pop ecx
je 0x434713
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00429161
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x434745
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00427222
cmp eax, ebx
pop ecx
mov dword [0x45372c], eax
je 0x434745
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00427222
pop ecx
mov dword [0x453728], eax
mov eax, dword [0x453728]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4347be
cmp dword [0x45372c], esi
je 0x4347be
push eax
call fcn.0042728e
pop ecx
call eax
cmp eax, ebx
je 0x43478b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x45372c]
call fcn.0042728e
pop ecx
call eax
test eax, eax
je 0x43478b
test byte [ebp - 0x18], 1
jne 0x4347be
lea eax, [ebp - 0xc]
push eax
call fcn.004230b1
test eax, eax
pop ecx
je 0x4347a6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00429161
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4347b5
or dword [ebp + 0x10], 0x200000
jmp 0x4347ef
or dword [ebp + 0x10], 0x40000
jmp 0x4347ef
mov eax, dword [0x453720]
cmp eax, esi
je 0x4347ef
push eax
call fcn.0042728e
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4347ef
mov eax, dword [0x453724]
cmp eax, esi
je 0x4347ef
push dword [ebp - 4]
push eax
call fcn.0042728e
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x45371c]
call fcn.0042728e
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x437d36
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44f634]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00437ccb
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00423490
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x437d85
cmp dword [ebp - 0x1c], 5
jb 0x437d9d
jmp 0x437d99
cmp dword [ebp - 0x10], 1
jne 0x437d9d
cmp dword [ebp - 0x1c], 4
ja 0x437d99
jne 0x437d9d
cmp dword [ebp - 0x18], 0
jbe 0x437d9d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x445044
call fcn.00437bbc
test eax, eax
jge 0x437dbe
mov byte [0x450e38], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004217a8
add ebp, 0x78
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x402678
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402710
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4026f0
xor eax, eax
push ebp
push 0x4026e9
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 0x40272c
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 0x4026f0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x40374c
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 0xf003f
push 0
push 0x403908
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4037ad
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403924
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40381f
xor eax, eax
push ebp
push 0x403818
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.004035a4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403801
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x403944
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40381f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x403900
cmp byte [ebp - 0xd], 0
jne 0x403861
cmp byte [ebp - 0x12], 0
je 0x403900
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40387a
dec ebx
cmp byte [ebx], 0x2e
je 0x403889
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403879
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x403900
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4038b6
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403900
cmp byte [ebp - 0xd], 0
je 0x403900
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403900
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x404974
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd84
xor edx, edx
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x270], edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004031a0
lea eax, [ebp - 0x164]
mov edx, dword [0x404330]
call fcn.004032e4
xor eax, eax
push ebp
push 0x404b83
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x404b24
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x168]
mov ecx, 0x404b98
mov edx, dword [ebp - 4]
call fcn.00403038
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x164]
mov edx, 0x66
call fcn.00404868
jmp 0x404af5
lea eax, [ebp - 0x270]
push eax
mov eax, dword [ebp - 0x158]
call fcn.00402fec
mov edx, eax
sub edx, 3
mov ecx, 4
mov eax, dword [ebp - 0x158]
call fcn.004031bc
mov eax, dword [ebp - 0x270]
lea edx, [ebp - 0x26c]
call fcn.004048b8
mov edx, dword [ebp - 0x26c]
lea eax, [ebp - 0x268]
mov ecx, 0xff
call fcn.00402fc8
lea edx, [ebp - 0x268]
lea eax, [ebp - 9]
mov cl, 4
call fcn.004025f8
cmp word [0x40754e], 0xe
jne 0x404aba
lea eax, [ebp - 0x274]
lea edx, [ebp - 9]
call fcn.00402fa4
mov eax, dword [ebp - 0x274]
mov edx, 0x404ba4
call fcn.004031fc
test eax, eax
je 0x404aea
lea eax, [ebp - 0x278]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 4]
call fcn.00403038
mov eax, dword [ebp - 0x278]
call fcn.004031b0
push eax
call sub.kernel32.dll_DeleteFileA
jmp 0x404aea
lea edx, [ebp - 9]
mov eax, 0x404bbc
call fcn.004025b8
test eax, eax
je 0x404aea
lea eax, [ebp - 0x27c]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 4]
call fcn.00403038
mov eax, dword [ebp - 0x27c]
call fcn.00404454
lea eax, [ebp - 0x164]
call fcn.00404844
test al, al
jne 0x404b0b
mov eax, dword [ebp - 0x15c]
and eax, 0x10
cmp eax, 0x10
jne 0x404a09
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404b2b
lea eax, [ebp - 0x164]
call fcn.004047c4
ret
Function at 0x404bc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
xor edx, edx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004031a0
lea eax, [ebp - 0x15c]
mov edx, dword [0x404330]
call fcn.004032e4
xor eax, eax
push ebp
push 0x404da2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00402fec
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x404c2d
lea eax, [ebp - 4]
mov edx, 0x404db8
call fcn.00402ff4
xor edx, edx
push ebp
push 0x404d5c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x160]
mov ecx, 0x404dc4
mov edx, dword [ebp - 4]
call fcn.00403038
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x15c]
mov edx, 0x13
call fcn.00404868
test al, al
jne 0x404d43
mov ebx, dword [ebp - 0x154]
mov eax, ebx
and eax, 0x10
cmp eax, 0x10
je 0x404c8f
cmp ebx, 0x11
je 0x404c8f
cmp ebx, 0x13
je 0x404c8f
cmp ebx, 0x12
jne 0x404d30
mov eax, dword [ebp - 0x150]
call fcn.004048f4
test al, al
jne 0x404d30
lea edx, [ebp - 0x164]
mov eax, dword [ebp - 0x150]
call fcn.004048b8
mov edx, dword [ebp - 0x164]
mov eax, 0x404dd0
call fcn.004031fc
test eax, eax
jne 0x404d30
lea eax, [ebp - 0x168]
mov ecx, dword [ebp - 0x150]
mov edx, dword [ebp - 4]
call fcn.00403038
mov eax, dword [ebp - 0x168]
call fcn.00404974
push 0
mov eax, dword [0x407538]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x404d07
mov eax, dword [0x4074e4]
call fcn.004031b0
push eax
call sub.kernel32.dll_DeleteFileA
push 0x13a
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x16c]
mov ecx, dword [ebp - 0x150]
mov edx, dword [ebp - 4]
call fcn.00403038
mov eax, dword [ebp - 0x16c]
call fcn.00404bc0
lea eax, [ebp - 0x15c]
call fcn.00404844
test al, al
je 0x404c6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404d63
lea eax, [ebp - 0x15c]
call fcn.004047c4
ret