joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416a70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea esi, [ebx + 0x13]
push esi
lea edi, [ebx + 8]
push edi
push str.SELECT_account_FROM_TRADE_X_WHERE_account_s_and_name_s
push 0x43dde8
call fcn.00414500
add esp, 0x10
test al, al
je 0x416b5d
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x416b5d
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp byte [ebx + 0x7aa], 0
jne 0x416b0b
push esi
push edi
push str.DELETE_FROM_TRADE_X_WHERE_account_s_and_name_s
push 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x5cf8f0
push 0
lea eax, [ebx + 0x29]
mov dword [0x5cf8f0], 0x780
push eax
push 0
push 0x780
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
movzx eax, byte [ebx + 0x7a9]
push esi
push edi
push eax
lea eax, [ebx + 0x1e]
push eax
push str.UPDATE_TRADE_X_SET_Items__targetname_s__state_d_WHERE_account_s_and_name_s
push 0x43dde8
call fcn.00414500
add esp, 0x18
jmp 0x416ae8
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
movzx eax, byte [ebx + 0x7a9]
push eax
lea eax, [ebx + 0x13]
push eax
lea eax, [ebx + 8]
push eax
push str.INSERT_INTO_TRADE_X__account_name__state__date__VALUES___s___s___d__getdate___
push 0x43dde8
call fcn.00414500
add esp, 0x14
push dword [0x43ddf4]
call edi
push 2
push dword [0x43ddf4]
call esi
lea eax, [ebx + 0x13]
push eax
lea eax, [ebx + 8]
push eax
push 0x780
push 0x780
push str.UPDATE_TRADE_X_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_account_s_AND_name_s
push 0x43dde8
call fcn.00414500
add esp, 0x18
push dword [0x43ddf4]
call edi
push 2
push dword [0x43ddf4]
call esi
push 0x5cf8f0
push 0
lea eax, [ebx + 0x29]
mov dword [0x5cf8f0], 0x780
push eax
push 0
push 0x780
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [ebx + 0x13]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 0x1e]
push eax
push str.UPDATE_TRADE_X_SET_Items__targetname_s_WHERE_account_s_and_name_s
push 0x43dde8
call fcn.00414500
add esp, 0x14
push dword [0x43ddf4]
call edi
push 2
push dword [0x43ddf4]
call esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x416c50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x43d040]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00418dd0
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x104]
call fcn.00416e60
add esp, 0x10
lea eax, [ebp - 0x104]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4180a7
Capabilities:
Parse pe header

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

Function at 0x423553
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432828
push 0x432820
push str.FlsAlloc
push 0x1f
call fcn.00423412
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423587
push dword [ebp + 8]
mov ecx, esi
call dword [0x430268]
call esi
jmp 0x42358d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4235d1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432838
push 0x432830
push str.FlsGetValue
push 0x21
call fcn.00423412
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423608
push dword [ebp + 8]
mov ecx, esi
call dword [0x430268]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x423610
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432840
push 0x432838
push str.FlsSetValue
push 0x22
call fcn.00423412
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42364a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x430268]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x426fee
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 0x42708b
push ebx
push esi
call fcn.00426fb7
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.00426f4b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x427038
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42708a
push edi
push eax
call fcn.004237af
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x427058
call fcn.00423775
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x427089
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00426f4b
add esp, 0x20
test eax, eax
jne 0x427077
push edi
call fcn.00423775
jmp 0x42707f
push ebx
call fcn.00423775
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 0x42708e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42709f
pop esi
ret
push ebx
push edi
push esi
call fcn.00426fb7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004237af
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4270c7
push ebx
push esi
push edi
call fcn.0041a3a0
add esp, 0xc
push 0
call fcn.00423775
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x427497
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004270dc
Function at 0x42e700
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x56061906
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x51cd5fce
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x1017c8f
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1017dce
cmp byte [esi + 3], 2
jne 0x1017dce
xor eax, eax
mov ax, word [esi + 6]
push edi
mov edi, dword [0x10011c0]
push eax
call edi
movzx ecx, word [esi]
mov word [esi + 6], ax
movzx eax, ax
lea eax, [eax*4 + 8]
cmp eax, ecx
jne 0x1017dcd
test byte [esi + 4], 0xf0
jne 0x1017dcd
xor eax, eax
mov ax, word [esi + 0xa]
push eax
call edi
mov word [esi + 0xa], ax
movzx eax, byte [esi + 8]
dec eax
dec eax
je 0x1017d69
sub eax, 3
je 0x1017d22
dec eax
jne 0x1017dcd
test byte [esi + 0xd], 0x80
jne 0x1017dcd
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
push dword [esi + 0x10]
mov word [esi + 0xe], ax
call dword [0x10011c4]
mov dword [esi + 0x10], eax
jmp 0x1017dcd
test byte [esi + 0xd], 0x80
jne 0x1017dcd
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
push dword [esi + 0x1c]
mov edi, dword [0x10011c4]
mov word [esi + 0xe], ax
mov eax, dword [esi + 0x14]
bswap eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
bswap eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
bswap eax
mov dword [esi + 0x18], eax
call edi
push dword [esi + 0x20]
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
jmp 0x1017dcd
test byte [esi + 0xd], 0x80
jne 0x1017dcd
test byte [esi + 0x25], 0x80
jne 0x1017dcd
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
mov word [esi + 0xe], ax
xor eax, eax
mov ax, word [esi + 0x26]
push eax
call edi
push dword [esi + 0x1c]
mov edi, dword [0x10011c4]
mov word [esi + 0x26], ax
mov eax, dword [esi + 0x14]
bswap eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
bswap eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
bswap eax
mov dword [esi + 0x18], eax
call edi
push dword [esi + 0x20]
mov dword [esi + 0x1c], eax
call edi
push dword [esi + 0x2c]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x28]
bswap eax
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x2c], eax
pop edi
pop esi
ret 4
Function at 0x1017dd2
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1017f13
cmp byte [esi + 3], 2
jne 0x1017f13
movzx edx, word [esi]
xor eax, eax
mov ax, word [esi + 6]
movzx ecx, ax
lea ecx, [ecx*4 + 8]
cmp ecx, edx
jne 0x1017f13
push edi
mov edi, dword [0x10011c8]
push eax
call edi
test byte [esi + 4], 0xf0
mov word [esi + 6], ax
jne 0x1017f12
xor eax, eax
mov ax, word [esi + 0xa]
push eax
call edi
mov word [esi + 0xa], ax
movzx eax, byte [esi + 8]
dec eax
dec eax
je 0x1017eac
sub eax, 3
je 0x1017e65
dec eax
jne 0x1017f12
test byte [esi + 0xd], 0x80
jne 0x1017f12
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
push dword [esi + 0x10]
mov word [esi + 0xe], ax
call dword [0x10011cc]
mov dword [esi + 0x10], eax
jmp 0x1017f12
test byte [esi + 0xd], 0x80
jne 0x1017f12
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
push dword [esi + 0x1c]
mov edi, dword [0x10011cc]
mov word [esi + 0xe], ax
mov eax, dword [esi + 0x14]
bswap eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
bswap eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
bswap eax
mov dword [esi + 0x18], eax
call edi
push dword [esi + 0x20]
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
jmp 0x1017f12
test byte [esi + 0xd], 0x80
jne 0x1017f12
test byte [esi + 0x25], 0x80
jne 0x1017f12
xor eax, eax
mov ax, word [esi + 0xe]
push ebx
push eax
call edi
push dword [esi + 0x1c]
mov ebx, dword [0x10011cc]
mov word [esi + 0xe], ax
mov eax, dword [esi + 0x14]
bswap eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
bswap eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
bswap eax
mov dword [esi + 0x18], eax
call ebx
push dword [esi + 0x20]
mov dword [esi + 0x1c], eax
call ebx
mov dword [esi + 0x20], eax
xor eax, eax
mov ax, word [esi + 0x26]
push eax
call edi
push dword [esi + 0x2c]
mov word [esi + 0x26], ax
mov eax, dword [esi + 0x28]
bswap eax
mov dword [esi + 0x28], eax
call ebx
mov dword [esi + 0x2c], eax
pop ebx
pop edi
pop esi
ret 4
Function at 0x1017f17
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1017fe4
cmp byte [esi + 3], 2
jne 0x1017fe4
movzx edx, word [esi]
xor eax, eax
mov ax, word [esi + 6]
movzx ecx, ax
lea ecx, [ecx*4 + 8]
cmp ecx, edx
jne 0x1017fe4
push edi
mov edi, dword [0x10011c8]
push eax
call edi
test byte [esi + 4], 0xf0
mov word [esi + 6], ax
jne 0x1017fe3
xor eax, eax
mov ax, word [esi + 0xa]
push eax
call edi
mov word [esi + 0xa], ax
mov al, byte [esi + 8]
test al, al
jbe 0x1017fe3
cmp al, 2
jbe 0x1017fa2
cmp al, 5
je 0x1017fa2
cmp al, 6
jne 0x1017fe3
test byte [esi + 0xd], 0x80
jne 0x1017fe3
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
push dword [esi + 0x10]
mov word [esi + 0xe], ax
call dword [0x10011cc]
mov dword [esi + 0x10], eax
jmp 0x1017fe3
test byte [esi + 0xd], 0x80
jne 0x1017fe3
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
push dword [esi + 0x1c]
mov edi, dword [0x10011cc]
mov word [esi + 0xe], ax
mov eax, dword [esi + 0x14]
bswap eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
bswap eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
bswap eax
mov dword [esi + 0x18], eax
call edi
push dword [esi + 0x20]
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
pop edi
pop esi
ret 4

Function at 0x1017fe8
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10180ad
cmp byte [esi + 3], 2
jne 0x10180ad
xor eax, eax
mov ax, word [esi + 6]
push edi
mov edi, dword [0x10011c0]
push eax
call edi
movzx ecx, word [esi]
mov word [esi + 6], ax
movzx eax, ax
lea eax, [eax*4 + 8]
cmp eax, ecx
jne 0x10180ac
test byte [esi + 4], 0xf0
jne 0x10180ac
xor eax, eax
mov ax, word [esi + 0xa]
push eax
call edi
mov word [esi + 0xa], ax
movzx eax, byte [esi + 8]
dec eax
je 0x101806b
sub eax, 4
je 0x101806b
dec eax
jne 0x10180ac
test byte [esi + 0xd], 0x80
jne 0x10180ac
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
push dword [esi + 0x10]
mov word [esi + 0xe], ax
call dword [0x10011c4]
mov dword [esi + 0x10], eax
jmp 0x10180ac
test byte [esi + 0xd], 0x80
jne 0x10180ac
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
push dword [esi + 0x1c]
mov edi, dword [0x10011c4]
mov word [esi + 0xe], ax
mov eax, dword [esi + 0x14]
bswap eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
bswap eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
bswap eax
mov dword [esi + 0x18], eax
call edi
push dword [esi + 0x20]
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
pop edi
pop esi
ret 4

Function at 0xdbdc50
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdbdc5a
pushal
call 0xdbdc60
pop ebp
sub ebp, 0x10
sub ebp, 0x9bdc50
jmp 0xdbdc76
mov eax, 0x9bdc50
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c9
mov edx, 0xa7163644
xor byte [eax], dl
inc eax
dec ecx
jne 0xdbdc8d
jmp 0xdbdca0
iretd
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, 0x41889c
test eax, eax
cmovne ecx, eax
lea eax, [ebp + 0xc]
push eax
push 0
push ecx
lea eax, [ebp - 0x404]
push 0x3fd
push eax
call fcn.00401510
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00406040
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x401067
cmp eax, 0x3fd
ja 0x401067
je 0x401067
lea eax, [ebp + eax - 0x404]
jmp 0x40106e
lea eax, [ebp - 7]
mov byte [ebp - 7], 0
mov word [eax], 0xa
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401516
mov esp, ebp
pop ebp
ret

Function at 0x401d40
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401d7f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401d7f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401d7f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401d7f
cmp dword [ecx + 0x74], 0xe
jbe 0x401d7f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40a878
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 0x40a915
push ebx
push esi
call fcn.0040a841
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.0040a7d5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40a8c2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a914
push edi
push eax
call fcn.00407795
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40a8e2
call fcn.0040775b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a913
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040a7d5
add esp, 0x20
test eax, eax
jne 0x40a901
push edi
call fcn.0040775b
jmp 0x40a909
push ebx
call fcn.0040775b
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 0x40b5d1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4151a0
push 0x415198
push str.FlsAlloc
push 0x1f
call fcn.0040b4ed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b605
push dword [ebp + 8]
mov ecx, esi
call dword [0x413148]
call esi
jmp 0x40b60b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40b64f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4151b0
push 0x4151a8
push str.FlsGetValue
push 0x21
call fcn.0040b4ed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b686
push dword [ebp + 8]
mov ecx, esi
call dword [0x413148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40b68e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4151b8
push 0x4151b0
push str.FlsSetValue
push 0x22
call fcn.0040b4ed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b6c8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x413148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x412440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41246d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41246d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403774
Capabilities:
Query or enumerate registry value

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

Function at 0x4044f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c0048], 0
je 0x404555
cmp word [0x4c021c], 0xd7b2
jne 0x40451d
cmp dword [0x4c0224], 0
jbe 0x40451d
mov eax, 0x4c0218
call dword [0x4c0234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a9080
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 0x40457c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a901c], 0
jne 0x404571
push 0
push 0x4a90a0
push 0x4a9080
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4046a8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040272c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4c0049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404670
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40b5a0
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 0x40b5d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047e4
jmp 0x40b5e2
mov eax, ebx
mov edx, esi
call fcn.00404748
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ca6c
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 0x40cad0
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.0040495c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408b88
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cad7
lea eax, [ebp - 0xc]
call fcn.004046f4
ret

Function at 0x423548
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c0a24
cmp dword [edi], 0
jne 0x4235c4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4c0a20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a9604
mov ecx, 2
call fcn.00402928
mov edx, 0x423520
lea eax, [esi + 5]
call fcn.00423540
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00423540
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 0x423599
mov dword [0x4c0a20], 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 0x424ab0
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 0x424ab6
ret
Function at 0x426f4c
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 0x426f9d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x426f84
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x426f74
jmp 0x426f9d
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 0x426f85
pop ebx
mov esp, ebp
pop ebp
ret