joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100102b6
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0x214
mov eax, 0x1002769c
call fcn.10015b1e
mov ebx, dword [ebp + 8]
cmp dword [ebx + 8], 0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x220], edi
je 0x100102e1
mov eax, reloc.OLEAUT32.dll_VariantCopyInd
jmp 0x10010485
lea ecx, [ebx - 0xc]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, dword [ebx + 0x14]
test esi, esi
jne 0x100102fa
mov eax, 0x80004005
jmp 0x10010485
mov eax, dword [ebp + 0x10]
mov edx, eax
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
and edx, ecx
cmp edx, ecx
sete cl
mov byte [esi + 0x31], cl
mov edx, eax
mov ecx, reloc.OLEAUT32.dll_SysReAllocStringLen
and edx, ecx
cmp edx, ecx
mov edx, dword [ebx + 0x14]
sete cl
mov byte [edx + 0x32], cl
mov ecx, reloc.OLEAUT32.dll_VariantClear
and eax, ecx
cmp eax, ecx
mov ecx, dword [ebx + 0x14]
sete al
mov byte [ecx + 0x33], al
mov ecx, dword [ebx + 0x14]
push edi
add ecx, 0x28
call fcn.1001f43f
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x18]
xor esi, esi
cmp eax, esi
jne 0x10010424
mov dword [ebp - 0x21c], esi
push str.Excel.Application
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], esi
call fcn.1001f43f
test al, al
je 0x10010462
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.10015d40
push 0x5c
push edi
call fcn.1001f43f
add esp, 0x14
cmp eax, esi
jne 0x100103ab
push 0x2f
push edi
call fcn.1001f43f
pop ecx
pop ecx
cmp eax, esi
je 0x100103d3
add eax, 2
push 0x2e
push eax
call fcn.1001f43f
push 0x104
mov edi, eax
lea esi, [ebp - 0x218]
call fcn.1001f43f
mov edi, dword [ebp - 0x220]
add esp, 0xc
xor esi, esi
cmp word [ebp - 0x218], si
je 0x10010451
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.kernel32.dll_CopyFileW]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.1001f43f
pop ecx
pop ecx
mov ecx, dword [ebx + 0x14]
add ecx, 0x24
test eax, eax
jne 0x10010443
lea eax, [ebp - 0x218]
push eax
call fcn.1001f43f
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
jmp 0x10010449
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x21c], eax
cmp eax, esi
jne 0x10010358
push 0x8007000e
call fcn.1001f43f
push edi
call fcn.1001f43f
mov eax, dword [ebx + 0x14]
add eax, 0x24
jmp 0x1001046e
push dword [ebp - 0x21c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x100102f0
mov ecx, dword [ebx + 0x14]
push edi
add ecx, 0x24
call fcn.1001f43f
push eax
lea ecx, [ebx + 0x10]
call fcn.1001f43f
push dword [ebp - 0x21c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
call fcn.10015ba1
ret 0xc
Function at 0x1001212a
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x10027950
call fcn.10015b1e
mov ebx, dword [ebp + 8]
xor edi, edi
cmp ebx, edi
jne 0x10012149
xor eax, eax
jmp 0x1001221e
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, edi
je 0x1001221c
lea eax, [ebp - 0x23c]
push eax
push esi
mov dword [ebp - 0x23c], 0x22c
call sub.kernel32.dll_Process32FirstW
jmp 0x100121f2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.100120e9
and dword [ebp - 4], 0
push ebx
lea ecx, [ebp - 0x244]
call fcn.100120e9
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.10011f97
lea ecx, [ebp - 0x244]
call fcn.10011f97
push dword [ebp - 0x240]
lea ecx, [ebp - 0x244]
call fcn.1001f43f
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
test eax, eax
je 0x100121fc
call fcn.10011b75
mov ecx, dword [ebp - 0x240]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10011b75
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10012174
jmp 0x10012215
mov edi, dword [ebp - 0x234]
call fcn.10011b75
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.10011b75
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10015ba1
ret

Function at 0x10013c76
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10039078], 0
push esi
push edi
jne 0x10013bec
call fcn.10013b58
test eax, eax
je 0x10013c31
mov eax, dword [0x10039078]
cmp eax, 1
jne 0x10013c0d
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x10013c31
jmp 0x10013c73
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x10013c73
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10013c35
xor eax, eax
jmp 0x10013c73
mov eax, dword [esi]
push dword [0x10039078]
call edi
mov edi, eax
test edi, edi
je 0x10013c57
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x10013c73
lea edi, [esi + 0xff0]
push esi
push dword [0x10039078]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x10013c5d
mov eax, esi
pop edi
pop esi
ret
jmp 0x10013bd8

Function at 0x100155f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10037a70]
jne 0x10015600
repz ret
jmp fcn.10017fba
Function at 0x1001f43f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1001f44e
pop dword [ebp - 0x3c]
mov eax, 0x1001f44e
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3ec8e
push 0
mov eax, 0x6a0e1e86
add eax, 0xa5f4725a
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x48a6
mov edi, eax
mov edx, 0x8dbc6b93
add edx, 0x8247b66d
add edx, dword [ebp - 0x3c]
mov esi, 0x74ac42fb
add esi, 0x41645d4e
add dword [ebp - 0x20], 0x1c51bd2c
mov ebx, dword [edx]
mov dword [ebp - 0x1c], 0x72a15613
add ebx, esi
xor dword [ebp - 8], 0xf19e8cca
mov dword [edi], ebx
xor dword [ebp - 0x38], edx
add edi, 4
add edx, 0x3a1107fb
sub edx, 0x3a1107f7
loop 0x1001f4a2
add eax, 0x1156b
xor ebx, ebx
add ebx, eax
add eax, 0x8117e726
add eax, 0x7ee818df
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x41f89a
Capabilities:
Parse pe header

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

Function at 0x42588f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4eba98
push 0x4eba90
push str.FlsAlloc
push 0x1f
call fcn.0042574e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4258c3
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e144]
call esi
jmp 0x4258c9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42590d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ebaa8
push 0x4ebaa0
push str.FlsGetValue
push 0x21
call fcn.0042574e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x425944
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42594c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ebab0
push 0x4ebaa8
push str.FlsSetValue
push 0x22
call fcn.0042574e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x425986
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42e144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42713e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4271db
push ebx
push esi
call fcn.00427107
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042709b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x427188
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4271da
push edi
push eax
call fcn.00425b51
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4271a8
call fcn.00425b9f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4271d9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042709b
add esp, 0x20
test eax, eax
jne 0x4271c7
push edi
call fcn.00425b9f
jmp 0x4271cf
push ebx
call fcn.00425b9f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42d420
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42d44d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42d44d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x34cf3445
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x77c749ef
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x426628
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4266c5
push ebx
push esi
call fcn.004265f1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00426585
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x426672
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4266c4
push edi
push eax
call fcn.00424f8b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x426692
call fcn.00424fd9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4266c3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00426585
add esp, 0x20
test eax, eax
jne 0x4266b1
push edi
call fcn.00424fd9
jmp 0x4266b9
push ebx
call fcn.00424fd9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4278d5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430d30
push 0x430d28
push str.FlsAlloc
push 0x1f
call fcn.00427794
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427909
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e148]
call esi
jmp 0x42790f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x427953
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430d40
push 0x430d38
push str.FlsGetValue
push 0x21
call fcn.00427794
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42798a
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x427992
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430d48
push 0x430d40
push str.FlsSetValue
push 0x22
call fcn.00427794
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4279cc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42e148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x402970
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029ad
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4029cd
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404a28
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402bd0
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.004047c0
test esi, esi
jne 0x402c06
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.004048b0
jmp 0x402c24
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402ae4
mov edi, eax
test esi, esi
je 0x402c24
cmp dword [ebx], 0
je 0x402c24
dec esi
jmp 0x402c0d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4038a4
Capabilities:
Query or enumerate registry value

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

Function at 0x404624
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49104c], 0
je 0x404685
cmp word [0x491220], 0xd7b2
jne 0x40464d
cmp dword [0x491228], 0
jbe 0x40464d
mov eax, 0x49121c
call dword [0x491238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48e074
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 0x4046ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48e01c], 0
jne 0x4046a1
push 0
push 0x48e094
push 0x48e074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c70
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409079
test al, 0x10
jne 0x40907d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4091c0
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c70
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x4091d4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404c70
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4091f6
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40adc4
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 0x40adfd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048b0
jmp 0x40ae06
mov eax, ebx
mov edx, esi
call fcn.00404814
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b4b8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b330
mov eax, dword [0x4904ac]
cmp byte [eax], 0
je 0x40b525
mov eax, dword [0x4902ac]
call fcn.00403014
call fcn.004028c4
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409628
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 0x40b56c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b55b
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49025c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x491718]
call fcn.00405f70
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 0x40c264
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 0x40c2c8
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.00404a28
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408e34
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2cf
lea eax, [ebp - 0xc]
call fcn.004047c0
ret

Function at 0x422818
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x491a24
cmp dword [edi], 0
jne 0x422894
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x491a20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48e608
mov ecx, 2
call fcn.00402aa4
mov edx, 0x4227f0
lea eax, [esi + 5]
call fcn.00422810
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422810
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 0x422869
mov dword [0x491a20], 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 0x423e00
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 0x423e06
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea ebx, [ebp - 4]
xor eax, eax
push ebp
push 0x438160
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.00447bc4
mov eax, dword [ebx]
cmp byte [eax + 0x210], 0
je 0x438145
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebx]
sub eax, dword [edx + 0x220]
cmp eax, 0x1f4
jb 0x438003
mov eax, dword [ebx]
add eax, 0x21c
call fcn.004047c0
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebx]
mov dword [edx + 0x220], eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 8
je 0x4380d4
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [0x4905cc]
and eax, 0xff
bt dword [edx], eax
jae 0x438096
push 1
push 0x102
push 0x102
mov eax, dword [ebx]
call fcn.00448c3c
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x438114
mov eax, dword [ebx]
push dword [eax + 0x21c]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.004049a0
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.004049a0
push dword [ebp - 0x2c]
mov eax, dword [ebx]
add eax, 0x21c
mov edx, 3
call fcn.00404b38
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x438114
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.004049a0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
add eax, 0x21c
call fcn.00404a80
jmp 0x438114
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00404a78
mov edx, eax
mov eax, dword [ebx]
add eax, 0x21c
mov ecx, 1
call fcn.00404d10
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00404a78
mov edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.0040be5c
cmp al, 2
je 0x4380b4
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00404a78
mov edx, eax
mov eax, dword [ebx]
add eax, 0x21c
mov ecx, 1
call fcn.00404d10
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00404a78
test eax, eax
jle 0x43812e
push ebp
call fcn.00437eb8
pop ecx
jmp 0x438145
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebx]
mov si, 0xffeb
call fcn.00403c30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438167
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004047e4
ret