joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a1a02
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 0x100a1a9f
push ebx
push esi
call fcn.100a19cb
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.1009d07f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100a1a4c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a1a9e
push edi
push eax
call fcn.1009ac7f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100a1a6c
call fcn.1009a550
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a1a9d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1009d07f
add esp, 0x20
test eax, eax
jne 0x100a1a8b
push edi
call fcn.1009a550
jmp 0x100a1a93
push ebx
call fcn.1009a550
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 0x100a1aa2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100a1ab3
pop esi
ret
push ebx
push edi
push esi
call fcn.100a19cb
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1009ac7f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100a1adb
push ebx
push esi
push edi
call fcn.1008bd50
add esp, 0xc
push 0
call fcn.1009a550
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100a2235
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a1d50

Function at 0x100aa1a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100aa1cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100aa1cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x5a5e693a
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1fab1265
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402e38
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 0x402e75
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 0x402e95
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004050b8
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4030dc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404e48
test esi, esi
jne 0x403113
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404f38
jmp 0x403134
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402f78
mov dword [esp], eax
test esi, esi
je 0x403134
cmp dword [ebx], 0
je 0x403134
dec esi
jmp 0x40311b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403770
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x56d008], 0x8088405
inc edx
mov dword [ebx + 0x56d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403d9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x56d024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403e34
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403e14
xor eax, eax
push ebp
push 0x403e0d
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 0x403e50
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 0x403e14
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x56d024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x56d024], ax
mov esp, ebp
pop ebp
ret
Function at 0x4073a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40740e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004050b8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004037f8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4073f8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407415
lea eax, [ebp - 0x10]
call fcn.00404e48
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405324
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40c845
test al, 0x10
jne 0x40c849
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x410774
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 0x4107ad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404f38
jmp 0x4107b6
mov eax, ebx
mov edx, esi
call fcn.00404e9c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x411810
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4118e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404ee0
lea eax, [ebp - 8]
call fcn.00405374
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405324
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4118d0
mov eax, ebx
call fcn.00402bd4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4118c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405324
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4118b3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4118f8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4118b3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4118d0
mov eax, dword [ebp - 0x10]
call fcn.00402c04
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4118ed
lea eax, [ebp - 8]
call fcn.00404e48
ret
Function at 0x411f5c
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 0x411fc0
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.004050b8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040c2d4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411fc7
lea eax, [ebp - 0xc]
call fcn.00404e48
ret

Function at 0x4127b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x579144]
cmp dword [eax], 0
je 0x4127ee
push 0xa
push 0x412844
mov eax, dword [0x579144]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x579144]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
jmp 0x41283a
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x5797b0]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x41283a
mov ebx, dword [esp + 4]
push 0xa
push 0x412844
mov esi, dword [ebx + 4]
push esi
call sub.kernel32.dll_FindResourceA
push eax
push esi
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x41283a
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x412805
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x429bd8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x57a8e0
cmp dword [edi], 0
jne 0x429c54
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x57a8dc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x56d704
mov ecx, 2
call fcn.00402f38
mov edx, 0x429bb0
lea eax, [esi + 5]
call fcn.00429bd0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00429bd0
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 0x429c29
mov dword [0x57a8dc], 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 0x42d160
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x42d260
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404e48
push 0x400
lea eax, [ebp - 0x404]
push eax
mov eax, edi
call fcn.00405324
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x42d1be
lea edx, [ebp - 0x404]
mov eax, esi
mov ecx, ebx
call fcn.00404f38
jmp 0x42d1de
mov edx, ebx
dec edx
mov eax, esi
call fcn.004054b0
push ebx
mov eax, dword [esi]
call fcn.00405324
push eax
mov eax, edi
call fcn.00405324
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
test ebx, ebx
jne 0x42d24a
lea edx, [ebp - 4]
mov eax, edi
call fcn.0040bc2c
mov eax, dword [ebp - 4]
mov edx, 0x42d278
call fcn.00405270
jne 0x42d210
call fcn.0040f084
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, esi
call fcn.0040fd48
jmp 0x42d24a
mov eax, dword [ebp - 4]
mov edx, 0x42d288
call fcn.00405270
jne 0x42d234
call fcn.0040f0b0
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, esi
call fcn.0040fd60
jmp 0x42d24a
mov eax, dword [ebp - 4]
mov edx, 0x42d298
call fcn.00405270
jne 0x42d24a
mov eax, esi
call fcn.0040cfe4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d267
lea eax, [ebp - 4]
call fcn.00404e48
ret

Function at 0x42d4c8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
mov eax, pe_nt_image_headers32
push eax
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004050b8
add esp, 0x100
pop ebx
ret

Function at 0x42d57c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x810], ebx
mov dword [ebp - 0x80c], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00405314
xor eax, eax
push ebp
push 0x42d678
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, ebx
call fcn.00404e9c
lea edx, [ebp - 0x80c]
mov eax, dword [ebp - 4]
call fcn.0040ca80
cmp dword [ebp - 0x80c], 0
jne 0x42d600
lea eax, [ebp - 0x810]
call fcn.0042d55c
push dword [ebp - 0x810]
push 0x42d690
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004051e4
lea eax, [ebp - 4]
xor ecx, ecx
xor edx, edx
call fcn.0042e854
test al, al
je 0x42d652
mov eax, dword [ebp - 4]
call fcn.00405324
push eax
push 0x800
lea eax, [ebp - 0x808]
push eax
mov eax, ebx
call fcn.00405324
push eax
mov eax, dword [ebp - 8]
call fcn.00405324
push eax
mov eax, edi
call fcn.00405324
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x808]
mov eax, esi
call fcn.00404f38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d67f
lea eax, [ebp - 0x810]
mov edx, 2
call fcn.00404e6c
lea eax, [ebp - 4]
call fcn.00404e48
ret
Function at 0x42e2f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00405314
mov eax, dword [ebp - 8]
call fcn.00405314
xor eax, eax
push ebp
push 0x42e3fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404e48
cmp dword [ebp - 4], 0
je 0x42e350
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x42e350
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004053c4
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00405324
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42e3e1
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405324
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x42e3d1
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.004054b0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.00405324
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
push ebx
mov eax, dword [ebx]
call fcn.00405124
mov ecx, eax
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.00405384
jmp 0x42e3d8
mov eax, ebx
call fcn.00404e48
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e403
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e6c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405324
push eax
call 0x4079ec
cmp eax, 0xffffffff
je 0x42e695
test al, 0x10
jne 0x42e699
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x42f070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405314
xor eax, eax
push ebp
push 0x42f15a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405124
dec eax
jle 0x42f0d9
mov edx, dword [ebp - 4]
mov eax, 0x42f170
call fcn.00405468
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405124
dec eax
cmp ebx, eax
jne 0x42f0d9
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.00405124
mov ecx, eax
sub ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405384
mov eax, dword [ebp - 4]
call fcn.00405124
mov ebx, eax
test ebx, ebx
jle 0x42f110
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
call fcn.0040537c
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov cl, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 8]
dec ebx
jne 0x42f0ee
mov eax, dword [ebp - 4]
call fcn.00405124
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
mov ecx, 4
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 8], 0
jle 0x42f144
lea eax, [ebp - 4]
call fcn.0040537c
mov edx, eax
mov ecx, dword [ebp - 8]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f161
lea eax, [ebp - 4]
call fcn.00404e48
ret

Function at 0x42f700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edx, [ebp - 4]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004054b0
cmp dword [ebp - 4], 0
jle 0x42f73d
mov eax, ebx
call fcn.0040537c
mov edx, eax
mov ecx, dword [ebp - 4]
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx]
call fcn.00405124
mov esi, eax
test esi, esi
jle 0x42f771
mov dword [ebp - 4], 1
mov eax, ebx
call fcn.0040537c
mov edx, dword [ebp - 4]
mov ecx, dword [ebx]
mov edi, dword [ebp - 4]
mov cl, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 4]
dec esi
jne 0x42f751
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x431088
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 4]
mov dword [edi], 0x10
push edi
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, esi
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.004050b8
mov eax, dword [esi]
call fcn.00405124
mov ebx, eax
test ebx, ebx
jbe 0x4310fa
mov dword [edi], 1
mov eax, dword [esi]
mov edx, dword [edi]
mov al, byte [eax + edx - 1]
and eax, 0xff
bt dword [0x56e068], eax
jae 0x4310f5
mov eax, esi
call fcn.0040537c
mov edx, dword [edi]
mov byte [eax + edx - 1], 0x5f
inc dword [edi]
dec ebx
jne 0x4310d1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433c18
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x433c69
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x433c69
cmp dword [eax + 0x3c], 0
je 0x433c69
mov eax, dword [eax + 0x3c]
add eax, ebx
mov dword [ebp - 4], eax
push 0xf8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x433c64
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x433c69
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ebp
ret

Function at 0x436594
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, ecx
shl edx, 2
add edx, eax
mov dword [esp], edx
mov eax, dword [esp]
call fcn.00406740
test eax, eax
je 0x4365ee
lea eax, [esp + 4]
push eax
push 0x40
push 4
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esp]
mov dword [eax], ebx
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
push eax
push 4
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualProtect
push 4
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop ecx
pop edx
pop ebx
ret

Function at 0x4367ac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
push esp
push 0x40
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
mov edx, ebx
mov eax, edi
mov ecx, esi
call fcn.00402f38
push esp
mov eax, dword [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x436e6c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp], edx
mov ebp, eax
lea edi, [esp + 0x14]
mov eax, dword [0x57a914]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x436eb8
inc ebx
xor esi, esi
mov edx, esi
mov eax, dword [0x57a914]
call fcn.00421ce4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax]
jne 0x436eb4
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
jmp 0x436f9e
inc esi
dec ebx
jne 0x436e8c
mov dword [esp + 8], ebp
mov eax, dword [esp + 8]
mov dword [esp + 0xc], eax
xor ebx, ebx
mov edx, edi
mov eax, dword [esp + 0xc]
call fcn.004369a4
test al, al
jne 0x436ed8
mov byte [edi], 1
xor eax, eax
mov al, byte [edi]
add ebx, eax
xor eax, eax
mov al, byte [edi]
add dword [esp + 0xc], eax
cmp ebx, 5
jb 0x436ec6
mov edx, ebx
mov eax, dword [esp + 8]
call fcn.00436bc4
mov edi, eax
add edi, 5
mov eax, edi
call fcn.00402bd4
mov esi, eax
mov eax, 0x14
call fcn.00402bd4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [eax], ebp
mov eax, dword [esp + 0x18]
mov dword [eax + 4], esi
mov eax, dword [esp + 0x18]
mov dword [eax + 8], edi
mov eax, dword [esp + 0x18]
mov dword [eax + 0x10], ebx
mov eax, ebx
call fcn.00402bd4
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], ebp
mov edx, ebp
mov eax, dword [esp + 8]
mov ecx, ebx
call fcn.00402f38
mov edx, dword [esp + 0x18]
mov eax, dword [0x57a914]
call fcn.00421b88
lea eax, [esp + 0x10]
push eax
push 0x40
push edi
push esi
call sub.kernel32.dll_VirtualProtect
mov edx, esi
mov eax, dword [esp + 8]
mov ecx, ebx
call fcn.00402f38
mov ecx, ebx
mov edx, dword [esp + 8]
mov eax, esi
call fcn.00436c90
mov edx, dword [esp + 8]
add edx, ebx
lea eax, [ebx + esi]
call fcn.004367ec
mov edx, dword [esp]
mov eax, dword [esp + 8]
call fcn.004367ec
mov dword [esp + 4], esi
mov eax, dword [esp + 4]
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43722c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
mov edx, 0x40
mov eax, ebx
call fcn.0042dcec
test al, al
je 0x437280
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x437280
cmp dword [eax + 0x3c], 0
je 0x437280
mov eax, dword [eax + 0x3c]
add eax, ebx
mov dword [ebp - 4], eax
mov edx, 0xf8
mov eax, dword [ebp - 4]
call fcn.0042dcec
test al, al
je 0x43727b
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x437280
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ebp
ret