joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45124c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4513f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4513d8
mov dl, 1
mov eax, dword [0x4122b0]
call fcn.00403828
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404684
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4513c7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044420c
test al, al
je 0x4513ba
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x451408
lea eax, [ebp - 0x254]
call fcn.004092a4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4513ba
xor eax, eax
push ebp
push 0x4513b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x451440
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45139c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048f4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45139c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4513ba
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4512bd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00416018
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4513fe
lea eax, [ebp - 0x260]
call fcn.00404684
ret

Function at 0x451d70
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x51857c]
cmp byte [eax + 0xad], 0
jne 0x451de1
cmp dword [0x518594], 0
jne 0x451da2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451d2c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x518594], eax
cmp dword [0x518590], 0
jne 0x451dbd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x518590], eax
cmp dword [0x518598], 0
jne 0x451de1
push esp
push 0
push 0
push 0x451cd0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x518598], eax
pop edx
ret
Function at 0x451fb4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x451fcb
add esp, 0xfffffff0
call fcn.00403b7c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a250
mov eax, dword [0x5141a8]
cmp word [eax + 2], 0
jne 0x451ff3
mov eax, dword [0x5141a8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453a64
mov eax, dword [0x514250]
cmp word [eax + 2], 0
jne 0x45200d
mov eax, dword [0x514250]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453c70
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411e8c]
call fcn.00403828
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411e8c]
call fcn.00403828
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411e8c]
call fcn.00403828
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e894]
call fcn.004261e4
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4521c4
mov eax, dword [0x5140d4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004265b8
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x454330
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5140d4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ca48
test eax, eax
je 0x452114
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c5c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ca7c
test eax, eax
je 0x452128
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004048f4
mov byte [ebx + 0xd4], 0
push ebx
push 0x4535c4
call fcn.0041b3cc
mov dword [ebx + 0xc8], eax
mov eax, dword [0x513fc4]
cmp byte [eax], 0
jne 0x452179
mov eax, ebx
call fcn.00452308
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045450c
mov eax, ebx
call fcn.0045506c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4521b9
call fcn.00403bd4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452588
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x51857c]
cmp dword [eax + 0x30], 0
je 0x452632
cmp dword [ebx + 0x94], 0
jne 0x45262c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452518
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45262c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4525f2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45262c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004142c0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452601
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45334c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x453381
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404774
jmp 0x45338e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046d8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4546f0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45475e
mov eax, esi
call fcn.0043ef80
test al, al
je 0x45475e
mov eax, dword [ebx + 0x84]
call fcn.0043ec84
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45475e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x454752
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ec84
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00437170
jmp 0x45475e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045452c
pop esi
pop ebx
ret
Function at 0x457f94
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x457fc2
mov eax, ebx
call fcn.00458a48
cmp dword [ebx + 0x40], 0
je 0x457fbb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x458033
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x458025
cmp dword [ebx + 8], 0
je 0x457fe4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x457ff6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x458025
cmp dword [ebx + 8], 0
je 0x457fd7
cmp eax, 3
je 0x458009
dec eax
jne 0x457fd7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x457fd7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x457fd7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x458051
cmp dword [ebx + 0x14], 0xcc
je 0x458051
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045805c
pop ebx
ret
Function at 0x9dccd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9dcd1c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9dcce2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9dcd80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9dcdd2
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9dcdd8
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9f52c5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f4f85

Function at 0x9fa0bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f9f3e

Function at 0x9ff670
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x9ff69d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x9ff69d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x431000
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40673a
pop dword [ebp - 0x48]
mov eax, 0x2f83fd20
add eax, 0xd0bc6a1a
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x13a0218a
sub dword [ebp - 0x58], 0xc54ddc3f
mov dword [ebp - 0x54], 0xb88c4679
add dword [ebp - 0x54], 0x79a705cc
mov dword [ebp - 0x50], 0xa73541a4
sub dword [ebp - 0x50], 0x5ae8fd76
mov dword [ebp - 0x4c], 0xf57dcc91
add dword [ebp - 0x4c], 0xa82336f
lea eax, [ebp - 0x58]
push eax
mov eax, 0x33349b86
sub eax, 0x32f41a82
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x27b28ba3
add dword [ebp - 0x58], 0x4cbfddb3
mov dword [ebp - 0x54], 0x4bca8d75
add dword [ebp - 0x54], 0xf5a1d400
mov dword [ebp - 0x50], 0xcf9049f9
add dword [ebp - 0x50], 0x93df2273
mov dword [ebp - 0x4c], 0xa526dd61
add dword [ebp - 0x4c], 0x5ad9229f
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xa19ac926
add eax, 0x5ea5b7da
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x358d1
push 0
call eax
mov ecx, 0xe6be83dd
sub ecx, 0xe6be43b9
mov edx, eax
mov edi, 0x741d5697
sub edi, 0x73d67297
add edi, dword [ebp - 0x48]
mov esi, 0xc4c5ed3e
add dword [ebp - 0x38], 0xe73606bc
mov ebx, dword [edi]
sub dword [ebp - 0x40], 0x4fe465b9
xor ebx, esi
mov dword [edx], ebx
sub dword [ebp - 0x38], eax
add edx, 4
add edi, 0xb15cead0
add edi, 0x4ea31534
loop 0x406856
add eax, 0xb90d7a35
add eax, 0x46f3792e
mov ebx, eax
add eax, 0xe6a3700b
add eax, 0x195c8ffa
mov ecx, 0xe5edf9d6
sub ecx, 0xe5adf9d6
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x515060
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbe000]
push edi
jmp 0x51507a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x515081
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x515070
mov eax, 1
add ebx, ebx
jne 0x515093
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5150a4
jne 0x5150c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5150c3
dec eax
add ebx, ebx
jne 0x5150b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x515088
add ebx, ebx
jne 0x5150bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x515115
xor ecx, ecx
sub eax, 3
jb 0x5150db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51514a
sar eax, 1
mov ebp, eax
jmp 0x5150e6
add ebx, ebx
jne 0x5150e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5150b4
inc ecx
add ebx, ebx
jne 0x5150f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5150b4
add ebx, ebx
jne 0x515101
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5150f6
jne 0x515112
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5150f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x515134
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x515126
jmp 0x515076
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x515134
add edi, ecx
jmp 0x515076
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x515152
cmp byte [edi], 0x11
jne 0x515152
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 0x515157
lea edi, [esi + 0x10e000]
mov eax, dword [edi]
or eax, eax
je 0x5151cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x150d4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x150ec8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x515184
mov ecx, edi
jns 0x5151b3
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 + 0x150ecc]
or eax, eax
je 0x5151c9
mov dword [ebx], eax
add ebx, 4
jmp 0x5151a1
call dword [esi + 0x150edc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x515200
cmp al, 0xef
ja 0x5151f3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5151d5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5151e2
mov ebp, dword [esi + 0x150ed0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x515234
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x402c40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x402c81.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x402c81.2
jmp dword [eax*4 + 0x402d0c]
mov word [esp + 0x48], di
jmp 0x402cba
mov word [esp + 0x48], 2
jmp 0x402cba
mov word [esp + 0x48], 3
jmp 0x402cba
mov word [esp + 0x48], 4
jmp 0x402cba
mov word [esp + 0x48], 7
jmp 0x402cba
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x402d04
cmp dword [esp + 0x70], edi
je 0x402cf0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x6ce50949
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x1b113b27
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x401443
pop dword [ebp - 0x50]
mov eax, 0x24d9f26b
sub eax, 0x2499de28
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xadb5e3fc
add dword [ebp - 0x60], 0xa09c614f
mov dword [ebp - 0x5c], 0xfa98b853
sub dword [ebp - 0x5c], 0xc8656c0e
mov dword [ebp - 0x58], 0x77e7ca1a
sub dword [ebp - 0x58], 0x2b9b85ec
mov dword [ebp - 0x54], 0xe7a878e
add dword [ebp - 0x54], 0xf1857872
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x61f1dd43
sub dword [ebp - 0x60], 0xed7f73ed
mov dword [ebp - 0x5c], 0xbb3a7971
sub dword [ebp - 0x5c], 0x79ce17fc
mov dword [ebp - 0x58], 0x808b504e
sub dword [ebp - 0x58], 0x1d1be3e2
mov dword [ebp - 0x54], 0x9515e45a
add dword [ebp - 0x54], 0x6aea1ba6
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x1a1d3162
sub eax, 0x19dcb062
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3618a
push 0
call eax
mov ecx, 0x3f39
mov ebx, eax
mov edx, 0x9a5dbde2
sub edx, 0x9a16d9e2
add edx, dword [ebp - 0x50]
mov edi, 0xe455554c
add edi, 0x28809dec
xor dword [ebp - 0x18], ecx
mov esi, dword [edx]
sub dword [ebp - 0x28], edi
xor esi, edi
xor dword [ebp - 0x24], 0xd0343cdf
mov dword [ebx], esi
sub dword [ebp - 0x2c], 0xf8744adb
add ebx, 0x94cd23fb
sub ebx, 0x94cd23f7
add edx, 4
loop 0x40155a
add eax, 0xefb7
xor ebx, ebx
add ebx, eax
add eax, 0x6c6f2378
add eax, 0x9390dc8d
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x4078d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404d7c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4078ee
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40790f
cmp ebx, 3
je 0x40790f
cmp ebx, 0x7b
je 0x40790f
mov eax, esi
call fcn.00407890
test al, al
jne 0x407913
xor eax, eax
jmp 0x407915
mov al, 1
pop esi
pop ebx
ret

Function at 0x4088b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4088ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00404e2c
jmp 0x4088f6
mov eax, ebx
mov edx, esi
call fcn.00404cf0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408900
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x408922
movzx eax, word [esp]
jmp 0x408924
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4090ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4091d1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00408ec0
mov esi, eax
mov eax, dword [0x40db0c]
cmp byte [eax], 0
je 0x409179
mov eax, dword [0x40da54]
call fcn.00403270
call fcn.00402f40
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x409088]
call fcn.00405940
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4091ec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4091b5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x40da34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x410b48]
call fcn.004059f8
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091d8
lea eax, [ebp - 4]
mov edx, dword [0x409088]
call fcn.0040594c
ret