joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ccd
Capabilities:
Accept command line arguments

Disassembly:
push 0x38
mov eax, 0x42a9df
call fcn.00406c7c
mov edi, ecx
mov dword [ebp - 0x40], edi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x38]
push ecx
xor ebx, ebx
mov dword [ebp - 0x44], eax
push eax
mov dword [ebp - 0x38], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], ebx
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
call fcn.0040409a
mov ecx, dword [edi]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ecx + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov esi, ebx
mov dword [edi + 4], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 1
cmp dword [ebp - 0x38], ebx
jle 0x403d7f
mov edi, ebx
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x28]
push dword [eax + ebx*4]
call fcn.0040270e
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
cmp edi, esi
je 0x403d5b
mov ecx, esi
call fcn.00402530
push 0x18
pop eax
add esi, eax
mov dword [ebp - 0x30], esi
jmp 0x403d6a
push esi
lea ecx, [ebp - 0x34]
call fcn.00402a92
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00402733
inc ebx
cmp ebx, dword [ebp - 0x38]
jl 0x403d30
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push eax
push ecx
mov ecx, edi
call fcn.004037f2
cmp dword [edi + 4], 0
jbe 0x403da1
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x403da1
push eax
lea ecx, [edi + 8]
call fcn.004026e7
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x403dda
mov esi, edi
cmp esi, dword [ebp - 0x30]
je 0x403dc3
push 0x18
pop edi
mov ecx, esi
call fcn.00402733
add esi, edi
cmp esi, dword [ebp - 0x30]
jne 0x403db2
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
sub eax, edi
push 0x18
pop ecx
cdq
idiv ecx
imul eax, eax, 0x18
push eax
push edi
call fcn.00402030
pop ecx
pop ecx
call fcn.00406c37
ret 4

Function at 0x404f9e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x44206c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push 0x43ac70
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405015
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x405015
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406284
leave
ret

Function at 0x407e4f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x402444
Capabilities:
Resolve function by parsing pe exports

Disassembly:
dec ecx
add dword [eax + esi*8 - 0x15], esi
mov esi, 0x54ff006a
and al, 4
mov dword [esp + 0x14], 0
jmp 0x40243b
movsx edx, byte [edi]
add edi, edx
test ebx, ebx
mov ebp, dword [esp + 0x28]
and al, 0x28
je 0x4024de
mov eax, dword [ebx + 0x3c]
mov eax, dword [ebx + eax + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + eax + 0x18]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4024de
mov eax, dword [esp + 8]
add eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov esi, dword [ebx + ecx + 0x20]
add esi, ebx
mov dword [esp + 8], esi
movzx ecx, byte [edi + 1]
mov byte [esp + 0xc], cl
add eax, edx
lea esi, [ebp + eax + 2]
lea ebp, [ebx + 1]
xor edx, edx
jmp 0x4024a7
inc edx
cmp edx, dword [esp + 0x18]
mov ebx, dword [esp + 4]
je 0x4024de
mov eax, ebx
mov ecx, dword [esp + 8]
mov ebx, dword [ecx + edx*4]
movzx ecx, byte [esp + 0xc]
cmp byte [eax + ebx], cl
jne 0x40249c
add ebx, ebp
xor ecx, ecx
movzx eax, byte [esp + 0xc]
nop
nop
nop
nop
nop
nop
nop
nop
nop
test al, al
je 0x4024ee
movzx eax, byte [ebx + ecx]
cmp al, byte [esi + ecx]
lea ecx, [ecx + 1]
je 0x4024cc
jmp 0x40249c
push 0
call dword [esp + 4]
mov dword [esp + 4], 0
jmp 0x40250d
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + ecx + 0x1c]
add eax, esi
mov ecx, dword [esi + ecx + 0x24]
add ecx, esi
movzx ecx, word [ecx + edx*2]
add esi, dword [eax + ecx*4]
mov dword [esp + 4], esi
movsx eax, byte [edi]
lea esi, [edi + eax]
lea eax, [edi + eax + 1]
push eax
call dword [esp + 0x18]
mov ebx, eax
test eax, eax
jne 0x402528
push 0
call dword [esp + 4]
movsx eax, byte [esi]
lea ebp, [esi + eax]
add ebp, dword [0x4ef125]
mov ecx, dword [esi + eax + 4]
mov dword [esp + 8], ecx
mov edi, dword [esi + eax + 8]
mov eax, dword [ebx + 0x3c]
mov esi, dword [ebx + eax + 0x2c]
add esi, ebx
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push dword [0x4ef0d9]
push edi
push esi
mov ebx, dword [esp + 0x14]
and al, 0x14
call ebx
mov ecx, esi
mov dword [esp + 0xc], ebp
mov edx, ebp
push edi
call fcn.004020ac
add esp, 4
lea eax, [esp + 0x1c]
sbb al, 0x50
push dword [esp + 0x20]
mov dword [esp + 8], edi
push edi
push esi
call ebx
mov eax, dword [0x4ef10d]
cmp byte [eax], 0
je 0x4025bd
xor ecx, ecx
mov edi, dword [esp + 0x24]
nop
nop
nop
nop
nop
nop
xor eax, eax
mov edi, dword [esp + 0x24]

Function at 0x40335c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405be4
test esi, esi
jne 0x403394
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405d20
jmp 0x4033b2
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032a0
mov edi, eax
test esi, esi
je 0x4033b2
cmp dword [ebx], 0
je 0x4033b2
dec esi
jmp 0x40339b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x403ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4eb020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b78
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403b58
xor eax, eax
push ebp
push 0x403b51
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 0x403bb0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b58
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4eb020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4eb020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404a4c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4f6aec
cmp dword [ebp + 0xc], 2
jl 0x404a60
mov ebx, 0x4f6b1c
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x404a98
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x401264
mov dword [0x4f4014], eax
mov eax, 0x40126c
mov dword [0x4f4018], eax
mov eax, ebx
call fcn.00404938
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x404acd
cmp al, 3
jge 0x404acd
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x404ade
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x404ae9
call dword [ecx + eax*4]
cmp dword [0x4f4038], 0
jne 0x404aff
mov byte [0x4f4040], 1
fnstcw word [0x4eb020]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00404d7c
call fcn.004049e4
ret 4

Function at 0x404cec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f4054], 0
je 0x404d4d
cmp word [0x4f4330], 0xd7b2
jne 0x404d15
cmp dword [0x4f4338], 0
jbe 0x404d15
mov eax, 0x4f432c
call dword [0x4f4348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x404d78
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4eb02c], 0
jne 0x404d69
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404f18
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4eb030], 0
je 0x404f3e
mov edx, esi
mov eax, ebx
call dword [0x4eb030]
jmp 0x404f4d
mov eax, 8
call fcn.00402fe8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4f4055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404ee0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4083ac
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x409f60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4f6b64
push 0xa
push 0x409ff4
mov eax, dword [0x4f6b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x409f84
call fcn.00415d2c
push ebx
mov eax, dword [0x4f6b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x409f9b
call fcn.00415d2c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x409fad
call fcn.00415d2c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4f6b68], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4f6b6c], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4f6b70], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4f6b74], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4f6b78], ecx
add edx, dword [eax + 0x14]
mov dword [0x4f6b7c], edx
pop esi
pop ebx
ret

Function at 0x40b98c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40ba35
test eax, edx
je 0x40ba38
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40b9b5
push edx
mov edx, eax
mov eax, esp
call fcn.00405de8
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40b9cb
push eax
lea eax, [esp + 8]
call fcn.00405de8
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40b9da
movzx eax, word [eax]
sub eax, ecx
jmp 0x40ba01
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40ba1b
add ecx, 4
js 0x40b9f2
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40ba18
push eax
mov eax, ecx
mov edx, 2
call fcn.00404fb8
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40b9ff
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40ba01
xor eax, eax
ret
test eax, eax
je 0x40ba48
test edx, edx
jne 0x40b99c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40ca9c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405c70
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40caba
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40cadb
cmp ebx, 3
je 0x40cadb
cmp ebx, 0x7b
je 0x40cadb
mov eax, esi
call fcn.0040ca5c
test al, al
jne 0x40cadf
xor eax, eax
jmp 0x40cae1
mov al, 1
pop esi
pop ebx
ret

Function at 0x40cae4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405c70
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40cafd
test al, 0x10
jne 0x40cb01
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40cc1c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405c70
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret

Function at 0x40cc30
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.00405c70
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40cc52
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x412e34
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x412e6d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405d20
jmp 0x412e76
mov eax, ebx
mov edx, esi
call fcn.00405be4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412e80
Capabilities:
Get geographical location

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

Function at 0x413778
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41389d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041358c
mov esi, eax
mov eax, dword [0x4f30ac]
cmp byte [eax], 0
je 0x413845
mov eax, dword [0x4f2bd4]
call fcn.004034ac
call fcn.00403150
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x413754]
call fcn.004075d8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4138b8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x413881
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4f2b34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f6b50]
call fcn.004076cc
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4138a4
lea eax, [ebp - 4]
mov edx, dword [0x413754]
call fcn.004075e4
ret
Function at 0x4144c8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41459e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405c38
lea eax, [ebp - 4]
call fcn.0040663c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405c70
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x414588
mov eax, ebx
call fcn.00402fe8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x414581
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 - 4]
call fcn.00405c70
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41456b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4145b0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41456b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414588
mov eax, dword [ebp - 0x10]
call fcn.00403004
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4145a5
lea eax, [ebp - 4]
call fcn.00405bd4
ret

Function at 0x415ba4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405364
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x415b4e
mov eax, edi
add eax, eax
call fcn.00402fe8
mov esi, eax
jmp 0x415b50
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x415b89
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x415b73
mov eax, esp
cmp esi, eax
je 0x415b96
mov eax, esi
call fcn.00403004
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x415bd0
cmp bl, 0
je 0x415bcc
cmp bl, 0x41
jl 0x415bc7
cmp bl, 0x5a
jg 0x415bc7
or bl, 0x20
xor al, bl
inc esi
jmp 0x415bab
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x415b10

Function at 0x42a1f0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00429ef4
dec esi
jne 0x42a212
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42b3bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4f8e98
cmp dword [edi], 0
jne 0x42b438
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4f8e94]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ebcf4
mov ecx, 2
call fcn.004031a0
mov edx, 0x42b394
lea eax, [esi + 5]
call fcn.0042b3b4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042b3b4
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 0x42b40d
mov dword [0x4f8e94], 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 0x42ecbc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x42ecd5
add esp, 0xfffffff0
call fcn.00404148
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405bcc
xor eax, eax
push ebp
push 0x42ee59
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x24], eax
mov byte [ebx + 0x21], 0
mov byte [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0xffffffff
lea eax, [ebx + 0x18]
xor edx, edx
call fcn.00405be4
mov byte [ebx + 0x22], 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.0042cc14
lea eax, [ebx + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
call fcn.00403d10
mov dl, 1
mov eax, dword [0x42dbdc]
call fcn.00425404
mov esi, eax
mov dword [ebx + 0x14], esi
lea eax, [ebx + 0xc]
sub eax, 4
mov dword [eax], esi
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 4]
call fcn.00405be4
cmp dword [ebx + 0x10], 0
je 0x42ee28
mov edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.0042e9c8
mov eax, dword [ebx + 0x10]
call fcn.0040ca9c
test al, al
jne 0x42ee1e
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x10]
call fcn.0040cff4
mov eax, dword [ebp - 4]
test eax, eax
je 0x42eda0
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x42eda0
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405180
test eax, eax
je 0x42eda9
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x42edb5
mov eax, dword [ebp - 4]
call fcn.0042eafc
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov eax, dword [ebx + 0x10]
call fcn.00405c70
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x42ee1e
cmp dword [ebp + 8], 0
je 0x42ee18
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
call fcn.00407410
test eax, eax
jle 0x42ee18
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00407410
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebx + 0x24], 0
je 0x42ee28
mov byte [ebx + 0x21], 1
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], 0x42ec20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ee60
lea eax, [ebp - 8]
mov edx, dword [0x40a16c]
call fcn.004075e4
lea eax, [ebp - 4]
call fcn.00405bd4
ret
Function at 0x42fd90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405c70
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x42fde8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4f3368]
mov dl, 1
mov eax, dword [0x42f6e8]
call fcn.004139b4
call fcn.004046ec
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042f870
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43009c
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00430c54
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x430b50
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x40
jle 0x430b95
lea eax, [ebp - 0x60]
call fcn.0043009c
mov edx, ebx
lea eax, [ebp - 0x60]
mov ecx, dword [ebp + 0xc]
call fcn.004300c4
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.00430198
mov dword [ebp + 0xc], 0x10
mov esi, dword [ebp + 8]
jmp 0x430b97
mov esi, ebx
xor ecx, ecx
lea eax, [ebp - 0xa0]
lea edx, [ebp - 0xe0]
lea ebx, [ecx + 1]
cmp ebx, dword [ebp + 0xc]
jg 0x430bc0
movzx ebx, byte [esi]
xor bl, 0x36
mov byte [eax], bl
movzx ebx, byte [esi]
xor bl, 0x5c
mov byte [edx], bl
inc esi
jmp 0x430bc6
mov byte [eax], 0x36
mov byte [edx], 0x5c
inc ecx
inc edx
inc eax
cmp ecx, 0x40
jne 0x430ba5
lea eax, [ebp - 0x60]
call fcn.0043009c
lea edx, [ebp - 0xa0]
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.004300c4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 8]
call fcn.00430a38
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.00430198
lea eax, [ebp - 0x60]
call fcn.0043009c
lea edx, [ebp - 0xe0]
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.004300c4
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x60]
mov ecx, 0x10
call fcn.004300c4
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.00430198
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8