joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4082f0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48533b
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x499100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov edi, dword [ebp + 0xc]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x408521
mov ecx, esi
mov dword [ebp - 0x220], 0
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x230], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408362
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.00401a80
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 1
push eax
push 0
push 0
push 0x48c25c
mov dword [ebp - 0x234], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x4083f3
push 0xc
push str.____appdata
lea ecx, [ebp - 0x230]
call fcn.0040fd20
mov eax, dword [ebp - 0x234]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4083c5
sub edx, esi
lea ecx, [ebp - 0x230]
sar edx, 1
push edx
push eax
call fcn.0040fd20
push 1
push 0x4889c8
lea ecx, [ebp - 0x230]
call fcn.0040fd20
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x218]
mov dword [ebp - 0x264], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x230]
movlpd qword [ebp - 0x250], xmm0
cmovae eax, dword [ebp - 0x230]
push 0xffffffffffffffff
movlpd qword [ebp - 0x248], xmm0
movlpd qword [ebp - 0x240], xmm0
mov dword [ebp - 0x274], 0x3c
mov dword [ebp - 0x270], 0x40
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], str.runas
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x258], 1
mov dword [ebp - 0x254], 0
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4084d0
push 0xffffffffffffffff
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4084c4
cmp dword [ebp - 0x238], 1
jne 0x4084c4
mov esi, 1
jmp 0x4084d2
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x4084e3
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x40851f
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408515
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40853c
push ecx
push edx
call fcn.0046a9b7
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ae1f
mov esp, ebp
pop ebp
ret
call fcn.0046e58f
int3
Function at 0x412570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x499100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x49be48]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x100], eax
mov eax, dword fs:[0x2c]
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx + 0x14]
lea edi, [ecx + 8]
test al, 1
jne 0x4125df
or eax, 1
mov dword [edi], 0
push 0x4867f0
mov dword [ecx + 0x14], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.0046af6d
add esp, 4
lea eax, [ebp - 0xf4]
push 0x14
push eax
call fcn.0041efa0
add esp, 8
test eax, eax
je 0x412605
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ae1f
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
push ebx
mov ebx, dword [edi + 4]
mov ecx, ebx
sub ecx, edx
push esi
cmp ecx, 0x100000
jbe 0x412620
lea eax, [edx + 0x100000]
jmp 0x412659
jae 0x41265c
mov eax, dword [edi + 8]
sub eax, edx
cmp eax, 0x100000
jae 0x412643
lea eax, [ebp - 0xf9]
mov ecx, edi
push eax
push 0x100000
call fcn.00410e80
jmp 0x41265c
mov esi, 0x100000
sub esi, ecx
push esi
push 0
push ebx
call fcn.0046cc10
add esp, 0xc
lea eax, [esi + ebx]
mov dword [edi + 4], eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp - 0xf8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4126ef
mov ecx, dword [edi]
lea edx, [ebp - 0xf8]
mov eax, dword [edi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
sub eax, ecx
push 0
push edx
push eax
push ecx
push esi
mov dword [ebp - 0xf8], 0
call ebx
test eax, eax
je 0x4126ef
nop word [eax + eax]
mov eax, dword [ebp - 0xf8]
test eax, eax
je 0x412714
push eax
push dword [edi]
lea eax, [ebp - 0xf4]
push eax
call fcn.0041f520
add esp, 0xc
test eax, eax
jne 0x4126ef
mov ecx, dword [edi]
lea edx, [ebp - 0xf8]
push 0
mov dword [ebp - 0xf8], eax
mov eax, dword [edi + 4]
push edx
sub eax, ecx
push eax
push ecx
push esi
call ebx
test eax, eax
jne 0x4126b0
xor bl, bl
test esi, esi
je 0x412701
cmp esi, 0xffffffff
je 0x412701
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.0046ae1f
mov esp, ebp
pop ebp
ret
push 0x14
push dword [ebp - 0x100]
lea eax, [ebp - 0xf4]
push eax
call fcn.0041ec60
add esp, 0xc
test eax, eax
jne 0x4126ef
mov bl, 1
jmp 0x4126f1
Function at 0x4145c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485f89
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x499100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
push 0x14
call fcn.0046a987
mov edx, eax
add esp, 4
mov dword [ebp - 0x18], edx
test edx, edx
je 0x41462a
xorps xmm0, xmm0
movq qword [edx], xmm0
mov dword [edx + 8], 0
mov dword [edx + 4], 1
mov dword [edx + 8], 1
mov dword [edx], vtable.std::_Ref_count_obj2_class_json11::JsonNull_.0
mov dword [edx + 0xc], vtable.json11::JsonNull.0
jmp 0x41462c
xor edx, edx
lea eax, [edx + 0xc]
mov dword [edi + 4], 0
mov dword [edi], eax
mov dword [edi + 4], edx
lea eax, [ebp - 0xd]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 0xd], 1
push eax
call fcn.00413e60
mov dword [edi + 8], 0
add esp, 8
mov dword [edi + 0xc], 0
mov ecx, dword [eax]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 0xc], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test esi, esi
je 0x4146a8
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4146a8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x4146a8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00413e60
mov dword [edi + 0x10], 0
add esp, 8
mov dword [edi + 0x14], 0
mov ecx, dword [eax]
mov dword [edi + 0x10], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 0x14], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x41470a
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x41470a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x41470a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xorps xmm0, xmm0
movups xmmword [edi + 0x18], xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
lea esi, [edi + 0x3c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], esi
push 0x30
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0046a987
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x428670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
and edi, 0x1f
mov dword [ebp + 0x14], edi
cmp edi, 8
jb 0x4287a6
mov eax, edi
shr eax, 3
cmp dword [ebp + 0x18], 1
jne 0x428728
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
nop word [eax + eax]
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [eax + 4]
push dword [eax]
call fcn.0046b2f0
add dword [ebp - 4], 8
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.0046b2f0
mov ecx, eax
xor edx, esi
xor ecx, ebx
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.0046b2f0
mov ebx, eax
mov esi, edx
mov eax, dword [ebp - 4]
add ebx, 0xc2b2ae63
adc esi, 0x85ebca77
sub edi, 8
sub dword [ebp + 0x14], 1
jne 0x4286b0
mov dword [ebp + 0x14], edi
jmp 0x4287ac
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [eax + 4]
push dword [eax]
call fcn.0046b2f0
add dword [ebp - 4], 8
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.0046b2f0
mov ecx, eax
xor edx, esi
xor ecx, ebx
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.0046b2f0
mov ebx, eax
mov esi, edx
mov eax, dword [ebp - 4]
add ebx, 0xc2b2ae63
adc esi, 0x85ebca77
sub edi, 8
sub dword [ebp + 0x14], 1
jne 0x428731
mov dword [ebp + 0x14], edi
jmp 0x4287ac
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, eax
cmp edi, 4
jb 0x428803
add eax, 4
mov dword [ebp - 4], eax
mov eax, 0x9e3779b1
mul dword [ecx]
push 0xc2b2ae3d
mov edi, eax
mov eax, 0x85ebca87
mul dword [ecx]
push 0x27d4eb4f
add edi, edx
xor eax, ebx
xor edi, esi
mov ecx, eax
shld ecx, edi, 0x17
shld edi, eax, 0x17
push edi
push ecx
call fcn.0046b2f0
mov edi, dword [ebp + 0x14]
mov ebx, eax
mov eax, dword [ebp - 4]
add ebx, 0x9e3779f9
mov esi, edx
adc esi, 0x165667b1
sub edi, 4
test edi, edi
je 0x42884a
movzx eax, byte [eax]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.0046b2f0
inc dword [ebp - 4]
xor ebx, eax
xor esi, edx
mov eax, ebx
push 0x9e3779b1
shld eax, esi, 0xb
push 0x85ebca87
shld esi, ebx, 0xb
push esi
push eax
call fcn.0046b2f0
mov ebx, eax
mov eax, dword [ebp - 4]
mov esi, edx
sub edi, 1
jne 0x428807
push 0xc2b2ae3d
xor ecx, ecx
mov edi, esi
push 0x27d4eb4f
xor ecx, esi
shr edi, 1
push ecx
xor edi, ebx
push edi
call fcn.0046b2f0
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.0046b2f0
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b9c8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46ba07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46ba07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46ba07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x46ba07
cmp dword [ecx + 0x74], 0xe
jbe 0x46ba07
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x47d518
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x490074
push 0x49006c
push str.FlsAlloc
push 0x1e
call fcn.0047d455
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47d54c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4872bc]
call esi
jmp 0x47d552
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x47d596
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x490084
push 0x49007c
push str.FlsGetValue
push 0x20
call fcn.0047d455
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47d5cd
push dword [ebp + 8]
mov ecx, esi
call dword [0x4872bc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x47dd8e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x499100]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x47ddd9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0047df2d
test al, al
jne 0x47ddd3
sub edx, 2
cmp edx, edi
jne 0x47ddb9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x47ddfb
lea eax, [edi + 2]
cmp edx, eax
je 0x47ddfb
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0047dcda
add esp, 0x10
jmp 0x47def5
push esi
lea ecx, [ebp - 0x255]
call fcn.0047df2d
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47de3e
push dword [ebp - 0x25c]
jmp 0x47ddeb
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x47de7b
cmp word [ebp - 0x226], 0
je 0x47de9c
cmp word [ebp - 0x226], ax
jne 0x47de7b
cmp word [ebp - 0x224], 0
je 0x47de9c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0047dcda
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x47dee8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x47de55
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x47ded0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x47def5
push 0x47db0a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00482b30
add esp, 0x10
jmp 0x47dec5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ae1f
leave
ret
Function at 0x4847c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4847ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4847ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402a78
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404588
test esi, esi
jne 0x402aae
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404678
jmp 0x402acc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040298c
mov edi, eax
test esi, esi
je 0x402acc
cmp dword [ebx], 0
je 0x402acc
dec esi
jmp 0x402ab5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40366c
Capabilities:
Query or enumerate registry value

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

Function at 0x4043ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d304c], 0
je 0x40444d
cmp word [0x4d3220], 0xd7b2
jne 0x404415
cmp dword [0x4d3228], 0
jbe 0x404415
mov eax, 0x4d321c
call dword [0x4d3238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d0054
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 0x404474
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d001c], 0
jne 0x404469
push 0
push 0x4d0074
push 0x4d0054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40b960
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 0x40b999
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404678
jmp 0x40b9a2
mov eax, ebx
mov edx, esi
call fcn.004045dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c054
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40becc
mov eax, dword [0x4d26a8]
cmp byte [eax], 0
je 0x40c0bc
mov eax, dword [0x4d2494]
call fcn.00402eac
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004090d4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40c104
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c0f2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4d2440]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4d3718]
call fcn.00405d30
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 0x40ced4
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 0x40cf38
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.004047f0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408d08
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf3f
lea eax, [ebp - 0xc]
call fcn.00404588
ret
Function at 0x41fae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4d3a24
cmp dword [edi], 0
jne 0x41fb5c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4d3a20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d0590
mov ecx, 2
call fcn.0040294c
mov edx, 0x41fab8
lea eax, [esi + 5]
call fcn.0041fad8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fad8
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 0x41fb31
mov dword [0x4d3a20], 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 0x421188
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 0x42118e
ret

Function at 0x423b7c
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 0x423bcd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423bb4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423ba4
jmp 0x423bcd
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 0x423bb5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436788
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x436887
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004478f0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x210], 0
je 0x436871
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x220]
cmp eax, 0x1f4
jb 0x4367e5
mov eax, dword [ebp - 4]
add eax, 0x21c
call fcn.00404588
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x220], eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 8
je 0x43681b
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.00404768
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, 0x21c
call fcn.00404848
jmp 0x43683d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x21c]
call fcn.00404840
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x21c
mov ecx, 1
call fcn.00404ad8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x21c]
call fcn.00404840
test eax, eax
jle 0x436858
push ebp
call fcn.004366a0
pop ecx
jmp 0x436871
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 4]
mov si, 0xffeb
call fcn.004039f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43688e
lea eax, [ebp - 0xc]
call fcn.00404588
ret

Function at 0x43a898
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404a28
xor eax, eax
push ebp
push 0x43a9c6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x43a999
xor eax, eax
push ebp
push 0x43a992
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404840
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x43a967
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x43a956
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404840
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404a38
mov edx, ebx
pop ecx
call fcn.0040294c
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a95d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4d23cc]
mov dl, 1
mov eax, dword [0x407b48]
call fcn.0040c1d0
call fcn.00403fc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a9cd
lea eax, [ebp - 4]
call fcn.00404588
ret