joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a2c8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
mov dword [ebp - 4], 0x80004005
push dword [ebp + 8]
call fcn.0040a184
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40a3b5
mov ecx, dword [ebp - 0x10]
xor esi, esi
xor ebx, ebx
push esi
neg ecx
sbb ecx, ecx
push esi
and ecx, 0xfffffffe
push esi
add ecx, 4
push ecx
push esi
push eax
call fcn.0040cf59
mov edi, eax
cmp edi, esi
mov dword [ebp - 8], edi
je 0x40a366
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, esi
je 0x40a366
push 0x24
call fcn.0040730c
cmp eax, esi
pop ecx
je 0x40a346
push dword [ebp + 8]
mov ecx, eax
push ebx
push edi
push dword [ebp - 0xc]
call fcn.0040a3e4
mov edi, eax
jmp 0x40a348
xor edi, edi
cmp edi, esi
je 0x40a366
cmp dword [edi + 0x18], esi
je 0x40a3ad
mov ecx, edi
call fcn.0040a53e
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x40a3ad
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
jmp 0x40a3bd
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x4000000
push 0x3031756a
call fcn.0040c831
add esp, 0x10
cmp ebx, esi
je 0x40a396
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40a3a6
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
jmp 0x40a3bd
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x40a3bd
call fcn.0040a3c7
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40a53e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
push 0
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xc
mov ebx, 0x80004005
sbb esi, esi
mov dword [ebp - 4], eax
and esi, ebx
jl 0x40a5af
mov ecx, edi
call fcn.0040a5da
mov esi, eax
test esi, esi
jl 0x40a5af
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx + 8]
mov eax, edx
imul eax, eax, 0x44
add eax, 0xc
cmp dword [ebp - 4], eax
jb 0x40a597
test edx, edx
jbe 0x40a594
add ecx, 0x44
add eax, dword [ecx]
add ecx, 0x44
dec edx
jne 0x40a58c
cmp dword [ebp - 4], eax
sbb esi, esi
and esi, ebx
jl 0x40a5af
call fcn.00409e4c
test eax, eax
je 0x40a5d3
mov ecx, edi
jmp 0x42cea6
add edi, 0x18
lea ecx, [ebp - 0x10]
push edi
call fcn.0040cf6d
lea eax, [ebp - 0x10]
push eax
push 1
push 0x4000000
push 0x3031756e
call fcn.0040c831
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001660
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1001900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp dword [eax], 0x40
jne 0x100016b7
test dword [eax + 4], 0x4000
je 0x100016b7
cmp word [eax + 0x2a], 0
je 0x100016e6
push dword [ecx + 0x214]
push dword [eax + 0x28]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1000172a
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005082
mov esp, ebp
pop ebp
ret 8
cmp word [eax + 0xe], 0
je 0x100016e6
push dword [ecx + 0x210]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1000172a
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005082
mov esp, ebp
pop ebp
ret 8
cmp word [eax + 0xc], 0
jne 0x100016d1
push 0x3c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.100077d0
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
lea eax, [ebp - 0x40]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0x1001a458
mov dword [ebp - 0x24], 1
push eax
mov dword [ebp - 0x34], str.OpenContainingFolderMenu_wxsStub
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10005082
mov esp, ebp
pop ebp
ret 8

Function at 0x10002200
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10002215
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002220
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100027c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10010da3
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1001900c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x424]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.100077d0
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x10002881
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x430], eax
test edi, edi
jne 0x10002881
call fcn.10001bc0
mov esi, eax
jmp 0x1000296e
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100028a4
call fcn.10001bc0
jmp 0x10002961
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x100028c2
call fcn.10001bc0
jmp 0x10002961
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x100028e3
mov esi, 0x8007000e
jmp 0x10002963
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.10004c20
jmp 0x1000290d
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x10002924
mov esi, 0x8007000e
jmp 0x10002963
push esi
push dword [ebp - 0x424]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x10002944
call fcn.10001bc0
jmp 0x10002961
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.10003600
mov esi, eax
test edi, edi
je 0x1000296e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x10002990
lea ecx, [ebp - 0x424]
call fcn.10004d60
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10005082
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10004ad0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1001900c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 2
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
movq qword [ebp - 0x10], xmm0
lea ecx, [ebp - 0x10]
push 0x80000002
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.10002130
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x10004b5d
push 0x28
push str.WinXShell_Extension
push 1
push 0
push str.B1FD8E8F_DC08_41BC_AF14_AAC87FE3073B
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10004b5d
test esi, esi
je 0x10004b46
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 8
call fcn.10004920
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005082
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10004b68
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 0x80070005
xor ecx, ebp
pop esi
call fcn.10005082
mov esp, ebp
pop ebp
ret

Function at 0x10004b80
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1001900c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 2
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
movq qword [ebp - 0x10], xmm0
lea ecx, [ebp - 0x10]
push 0x80000002
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.10002130
test eax, eax
jne 0x10004be3
mov esi, dword [ebp - 0x10]
push str.B1FD8E8F_DC08_41BC_AF14_AAC87FE3073B
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x10004bf1
push esi
jmp 0x10004beb
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10004bf1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 8
call fcn.10004980
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10005082
mov esp, ebp
pop ebp
ret
Function at 0x1000a762
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea esi, [edi + edi*8 - 1]
dec dword [ecx + 0x5d880c4d]
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
int3
jg 0x1000a72b
inc ebp
int 0x7f
jg 0x1000a72b
inc ebp
int 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.1000a43b
push edx
mov dh, 0x4a
sti
lea eax, [ebp - 0x40]
push eax
call fcn.1000a44b
push eax
push esi
push dword [ebp + 8]
call fcn.1000a400
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.1000a43b
fild word [esi + 0x25]
mov bh, 0x8d
inc ebp
call 0x60e90531
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.1000a44b
push eax
push esi
push dword [ebp + 8]
call fcn.1000a400
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.1000a44b
push eax
push esi
push dword [ebp + 8]
call fcn.1000a400
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67

Function at 0x1000a86c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1000a44b
push eax
push esi
push dword [ebp + 8]
call fcn.1000a400
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1000a43b
call 0x98acb239
popfd
jl 0x1000a8c0
invalid
invalid
Function at 0x1000bdc5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 0x14]
call fcn.1000a400
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0
push 1
pop eax
test eax, eax
je 0x1000c4e1
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x1000bfb6
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
mov byte [ebp - 0x76b], 0x97
mov byte [ebp - 0x76a], 0x9e
mov byte [ebp - 0x769], 0x88
mov byte [ebp - 0x768], 0xa7
mov byte [ebp - 0x767], 0xb8
mov byte [ebp - 0x766], 0x94
mov byte [ebp - 0x765], 0x96
mov byte [ebp - 0x764], 0x96
mov byte [ebp - 0x763], 0x94
mov byte [ebp - 0x762], 0x95
mov byte [ebp - 0x761], 0xdb
Function at 0x6601b100
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x6601b2c4
pushal
mov esi, 0x65fff015
lea edi, [esi - 0x3e015]
push edi
or ebp, 0xffffffff
jmp 0x6601b12a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6601b131
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6601b120
mov eax, 1
add ebx, ebx
jne 0x6601b143
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6601b138
jne 0x6601b154
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6601b138
xor ecx, ecx
sub eax, 3
jb 0x6601b168
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6601b1da
mov ebp, eax
add ebx, ebx
jne 0x6601b173
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x6601b180
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x6601b1a4
inc ecx
add ebx, ebx
jne 0x6601b190
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6601b185
jne 0x6601b1a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6601b185
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6601b1c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6601b1b5
jmp 0x6601b126
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6601b1c4
add edi, ecx
jmp 0x6601b126
pop esi
mov edi, esi
mov ecx, 0x1c0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6601b1e2
cmp byte [edi], 0
jne 0x6601b1e2
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 0x6601b1e7
lea edi, [esi + 0x59000]
mov eax, dword [edi]
or eax, eax
je 0x6601b256
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5b090]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5b11c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6601b214
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5b120]
or eax, eax
je 0x6601b250
mov dword [ebx], eax
add ebx, 4
jmp 0x6601b231
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6601b287
cmp al, 0xef
ja 0x6601b27a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6601b25c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6601b269
mov ebp, dword [esi + 0x5b124]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x6601b2bb
sub esp, 0xffffff80
jmp 0x65fc8420
Function at 0x40345c
Capabilities:
Query or enumerate registry value

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

Function at 0x4041d8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46a048], 0
je 0x404239
cmp word [0x46a21c], 0xd7b2
jne 0x404201
cmp dword [0x46a224], 0
jbe 0x404201
mov eax, 0x46a218
call dword [0x46a234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x464074
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 0x404260
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x464030], 0
jne 0x404255
push 0
push 0x46406c
push 0x464074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405f80
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 0x405fe6
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.004045cc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f1c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405fd0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fed
lea eax, [ebp - 0x10]
call fcn.0040435c
ret

Function at 0x40b1c0
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 0x40b1f9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040444c
jmp 0x40b202
mov eax, ebx
mov edx, esi
call fcn.004043b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b8c4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b72c
mov eax, dword [0x469bd8]
cmp byte [eax], 0
je 0x40b940
mov eax, dword [0x4699dc]
call fcn.00402d88
call fcn.00402bcc
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.00408974
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 0x40b988
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b976
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x469988]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46a664]
call fcn.004053ec
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 0x40c1e4
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 0x40c2ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004043f4
lea eax, [ebp - 8]
call fcn.0040486c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040481c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c2a4
mov eax, ebx
call fcn.00402a40
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c29d
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.0040481c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c287
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c2cc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c287
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 0x40c2a4
mov eax, dword [ebp - 0x10]
call fcn.00402a70
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2c1
lea eax, [ebp - 8]
call fcn.0040435c
ret

Function at 0x40c794
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 0x40c7f8
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.004045cc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004084f0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7ff
lea eax, [ebp - 0xc]
call fcn.0040435c
ret

Function at 0x41aa38
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46a884
cmp dword [edi], 0
jne 0x41aab4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46a880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4643f4
mov ecx, 2
call fcn.00402c60
mov edx, 0x41aa10
lea eax, [esi + 5]
call fcn.0041aa30
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041aa30
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41aa89
mov dword [0x46a880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41bcf0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41bcf6
ret
Function at 0x41e1ec
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41e23d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e224
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e214
jmp 0x41e23d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41e225
pop ebx
mov esp, ebp
pop ebp
ret