joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420ff8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x421105
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402b50
mov eax, dword [ebp - 0x18]
call fcn.00404ba0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x4210ea
mov eax, dword [ebp - 4]
call fcn.004026f8
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4210e3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00402b50
mov eax, dword [ebp - 0x1c]
call fcn.00404ba0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4210ca
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x421118
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 8]
shr edx, 0x10
mov word [ebx], dx
mov dx, word [eax + 8]
and dx, 0xffff
mov word [esi], dx
mov edx, dword [eax + 0xc]
shr edx, 0x10
mov word [edi], dx
mov ax, word [eax + 0xc]
and ax, 0xffff
mov edx, dword [ebp + 8]
mov word [edx], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4210ea
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00402718
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42110c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004046e8
ret
Function at 0x4216ac
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x42174a
xor edx, edx
mov dl, byte [esi + ebx]
shr edx, 2
mov dl, byte [edx + 0x4896fc]
mov byte [ebp + edi], dl
mov dl, byte [esi + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
xor ecx, ecx
mov cl, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
mov dl, byte [edx + 0x4896fc]
push edx
pop edx
mov byte [ebp + edi + 1], dl
mov dl, byte [esi + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
xor ecx, ecx
mov cl, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
mov dl, byte [edx + 0x4896fc]
push edx
pop edx
mov byte [ebp + edi + 2], dl
mov dl, byte [esi + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x4896fc]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x4216cb
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x421760
dec edx
je 0x421795
jmp 0x4217e6
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x4896fc]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [eax + 0x4896fc]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x4217e6
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x4896fc]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
xor edx, edx
mov dl, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [eax + 0x4896fc]
mov byte [ebp + edi + 1], al
mov al, byte [esi + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [eax + 0x4896fc]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x421848
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x421867
add edx, 3
sar edx, 2
test edx, edx
jle 0x421974
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
xor ecx, ecx
mov cl, byte [edi + esi]
cmp ecx, 0x3d
jg 0x42189d
je 0x4218dd
sub ecx, 0x2b
je 0x4218d3
sub ecx, 4
je 0x4218d8
dec ecx
sub ecx, 0xa
jb 0x4218c6
jmp 0x4218e0
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x4218af
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x4218b9
jmp 0x4218e0
mov cl, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x4218e0
mov cl, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x4218e0
mov cl, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x4218e0
mov byte [eax], 0x3e
jmp 0x4218e0
mov byte [eax], 0x3f
jmp 0x4218e0
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x42187f
mov al, byte [esp + 4]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
mov dl, byte [esp + 6]
cmp dl, 0xff
je 0x421931
cmp byte [esp + 7], 0xff
jne 0x421931
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x421969
cmp dl, 0xff
je 0x421969
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x421876
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x4225f8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x422618
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x422606
pop edi
pop esi
pop ebx
ret
Function at 0x42ebb4
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 0x42ecb4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004046c4
push 0x400
lea eax, [ebp - 0x404]
push eax
mov eax, edi
call fcn.00404ba0
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x42ec12
lea edx, [ebp - 0x404]
mov eax, esi
mov ecx, ebx
call fcn.004047b4
jmp 0x42ec32
mov edx, ebx
dec edx
mov eax, esi
call fcn.00404d2c
push ebx
mov eax, dword [esi]
call fcn.00404ba0
push eax
mov eax, edi
call fcn.00404ba0
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
test ebx, ebx
jne 0x42ec9e
lea edx, [ebp - 4]
mov eax, edi
call fcn.00408638
mov eax, dword [ebp - 4]
mov edx, 0x42eccc
call fcn.00404aec
jne 0x42ec64
call fcn.0040ae4c
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, esi
call fcn.0040bb10
jmp 0x42ec9e
mov eax, dword [ebp - 4]
mov edx, 0x42ecdc
call fcn.00404aec
jne 0x42ec88
call fcn.0040ae78
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, esi
call fcn.0040bb28
jmp 0x42ec9e
mov eax, dword [ebp - 4]
mov edx, 0x42ecec
call fcn.00404aec
jne 0x42ec9e
mov eax, esi
call fcn.004096f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ecbb
lea eax, [ebp - 4]
call fcn.004046c4
ret

Function at 0x42ef1c
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.00404934
add esp, 0x100
pop ebx
ret

Function at 0x42efd0
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.00404b90
xor eax, eax
push ebp
push 0x42f0cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, ebx
call fcn.00404718
lea edx, [ebp - 0x80c]
mov eax, dword [ebp - 4]
call fcn.004091b0
cmp dword [ebp - 0x80c], 0
jne 0x42f054
lea eax, [ebp - 0x810]
call fcn.0042efb0
push dword [ebp - 0x810]
push 0x42f0e4
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404a60
lea eax, [ebp - 4]
xor ecx, ecx
xor edx, edx
call fcn.004302a8
test al, al
je 0x42f0a6
mov eax, dword [ebp - 4]
call fcn.00404ba0
push eax
push 0x800
lea eax, [ebp - 0x808]
push eax
mov eax, ebx
call fcn.00404ba0
push eax
mov eax, dword [ebp - 8]
call fcn.00404ba0
push eax
mov eax, edi
call fcn.00404ba0
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x808]
mov eax, esi
call fcn.004047b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f0d3
lea eax, [ebp - 0x810]
mov edx, 2
call fcn.004046e8
lea eax, [ebp - 4]
call fcn.004046c4
ret
Function at 0x42fd4c
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.00404b90
mov eax, dword [ebp - 8]
call fcn.00404b90
xor eax, eax
push ebp
push 0x42fe50
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004046c4
cmp dword [ebp - 4], 0
je 0x42fda4
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x42fda4
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00404c40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00404ba0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42fe35
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404ba0
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x42fe25
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00404d2c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.00404ba0
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.004049a0
mov ecx, eax
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.00404c00
jmp 0x42fe2c
mov eax, ebx
call fcn.004046c4
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 0x42fe57
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046e8
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ba0
push eax
call 0x406cdc
cmp eax, 0xffffffff
je 0x4300e9
test al, 0x10
jne 0x4300ed
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x430ac4
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.00404b90
xor eax, eax
push ebp
push 0x430bae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004049a0
dec eax
jle 0x430b2d
mov edx, dword [ebp - 4]
mov eax, 0x430bc4
call fcn.00404ce4
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004049a0
dec eax
cmp ebx, eax
jne 0x430b2d
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.004049a0
mov ecx, eax
sub ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404c00
mov eax, dword [ebp - 4]
call fcn.004049a0
mov ebx, eax
test ebx, ebx
jle 0x430b64
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
call fcn.00404bf8
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 0x430b42
mov eax, dword [ebp - 4]
call fcn.004049a0
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 0x430b98
lea eax, [ebp - 4]
call fcn.00404bf8
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 0x430bb5
lea eax, [ebp - 4]
call fcn.004046c4
ret

Function at 0x431154
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.00404d2c
cmp dword [ebp - 4], 0
jle 0x431191
mov eax, ebx
call fcn.00404bf8
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.004049a0
mov esi, eax
test esi, esi
jle 0x4311c5
mov dword [ebp - 4], 1
mov eax, ebx
call fcn.00404bf8
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 0x4311a5
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x432adc
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.00404934
mov eax, dword [esi]
call fcn.004049a0
mov ebx, eax
test ebx, ebx
jbe 0x432b4e
mov dword [edi], 1
mov eax, dword [esi]
mov edx, dword [edi]
mov al, byte [eax + edx - 1]
and eax, 0xff
bt dword [0x48b150], eax
jae 0x432b49
mov eax, esi
call fcn.00404bf8
mov edx, dword [edi]
mov byte [eax + edx - 1], 0x5f
inc dword [edi]
dec ebx
jne 0x432b25
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4355b8
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4355f7
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x4355f7
cmp dword [eax + 0x3c], 0
je 0x4355f7
mov esi, dword [eax + 0x3c]
add esi, ebx
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4355f5
cmp dword [esi], 0x4550
je 0x4355f7
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x437e74
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.00405bdc
test eax, eax
je 0x437ece
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 0x43808c
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.00402a24
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 0x43874c
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 [0x492aa4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x438798
inc ebx
xor esi, esi
mov edx, esi
mov eax, dword [0x492aa4]
call fcn.004183ac
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax]
jne 0x438794
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
jmp 0x43887e
inc esi
dec ebx
jne 0x43876c
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.00438284
test al, al
jne 0x4387b8
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 0x4387a6
mov edx, ebx
mov eax, dword [esp + 8]
call fcn.004384a4
mov edi, eax
add edi, 5
mov eax, edi
call fcn.004026f8
mov esi, eax
mov eax, 0x14
call fcn.004026f8
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.004026f8
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.00402a24
mov edx, dword [esp + 0x18]
mov eax, dword [0x492aa4]
call fcn.00418270
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.00402a24
mov ecx, ebx
mov edx, dword [esp + 8]
mov eax, esi
call fcn.00438570
mov edx, dword [esp + 8]
add edx, ebx
lea eax, [ebx + esi]
call fcn.004380cc
mov edx, dword [esp]
mov eax, dword [esp + 8]
call fcn.004380cc
mov dword [esp + 4], esi
mov eax, dword [esp + 4]
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x438b0c
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.0042f740
test al, al
je 0x438b60
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x438b60
cmp dword [eax + 0x3c], 0
je 0x438b60
mov eax, dword [eax + 0x3c]
add eax, ebx
mov dword [ebp - 4], eax
mov edx, 0xf8
mov eax, dword [ebp - 4]
call fcn.0042f740
test al, al
je 0x438b5b
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x438b60
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ebp
ret
Function at 0x4391a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x43923a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x439248]
mov dword [ebp - 7], eax
mov ax, word [0x43924c]
mov word [ebp - 3], ax
mov al, byte [0x43924e]
mov byte [ebp - 1], al
push 6
lea eax, [ebp - 7]
push eax
push 0x1004
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x2c]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404934
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408ab0
push 2
lea edx, [ebp - 0x27]
push edx
push eax
call sub.gdi32.dll_TranslateCharsetInfo
mov ebx, dword [ebp - 0x27]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439241
lea eax, [ebp - 0x2c]
call fcn.004046c4
ret

Function at 0x439ca4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x439d77
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004046c4
or ecx, 0xffffffff
xor edx, edx
mov eax, esi
call fcn.00439bbc
mov ebx, eax
test ebx, ebx
jbe 0x439d59
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404d2c
mov eax, dword [ebp - 8]
call fcn.004049a0
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00439bbc
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404d2c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004049a8
mov eax, dword [ebp - 4]
lea eax, [esi + 0x2c]
mov edx, dword [ebp - 8]
call fcn.004049a8
lea eax, [esi + 0x30]
mov edx, dword [ebp - 8]
call fcn.004049a8
call sub.kernel32.dll_GetTickCount
mov edi, eax
or ecx, 0xffffffff
xor edx, edx
mov eax, esi
call fcn.00439bbc
mov ebx, eax
push 1
call sub.kernel32.dll_Sleep
test ebx, ebx
ja 0x439d59
call sub.kernel32.dll_GetTickCount
sub eax, edi
cmp eax, 0x3e8
jbe 0x439d32
test ebx, ebx
jne 0x439ccd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439d7e
lea eax, [ebp - 8]
call fcn.004046c4
ret

Function at 0x439d88
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov edi, eax
mov edx, ebx
mov eax, esi
call fcn.00439ca4
cmp dword [ebx], 0
jne 0x439dab
push 1
call sub.kernel32.dll_Sleep
cmp dword [ebx], 0
jne 0x439dbc
call sub.kernel32.dll_GetTickCount
sub eax, edi
cmp eax, dword [esi + 0x20]
jb 0x439d96
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, dword [eax]
mov esi, ebx
xor esi, ecx
and esi, 0xff
shr ebx, 8
mov esi, dword [edx + esi*4]
xor esi, ebx
mov dword [eax], esi
and esi, 0xff
add dword [eax + 4], esi
imul ebx, dword [eax + 4], 0x8088405
inc ebx
mov dword [eax + 4], ebx
shr ebx, 0x18
mov esi, dword [eax + 8]
xor ebx, esi
and ebx, 0xff
shr esi, 8
mov edx, dword [edx + ebx*4]
xor edx, esi
mov dword [eax + 8], edx
mov eax, ecx
pop esi
pop ebx
ret
Function at 0x43b3b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
cmp dword [ebp - 0xc], 0xc
jge 0x43b3d9
xor eax, eax
jmp 0x43b50a
inc dword [0x48b38c]
mov edx, dword [0x48b38c]
cmp edx, 1
jne 0x43b3fe
push 0
call fcn.0043ad34
pop ecx
xor eax, 0xbb40e64e
push eax
call fcn.0043ad4c
pop ecx
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0043b37c
xor ebx, ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.0043ad40
sar eax, 7
and eax, 0xff
mov dword [ebp - 0x14], eax
mov edx, edi
mov eax, esi
call fcn.0043b310
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
mov edx, edi
mov eax, esi
call fcn.0043b330
mov dl, byte [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
xor dl, byte [ebp - 0x14]
mov byte [ecx], dl
inc ebx
inc dword [ebp - 0x24]
cmp ebx, 0xa
jl 0x43b412
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0043b37c
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x20]
mov edx, eax
xor ebx, ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov edx, edi
mov eax, esi
call fcn.0043b310
mov dword [ebp - 0x10], eax
mov eax, esi
mov ecx, dword [ebp - 0x28]
mov edx, edi
movzx ecx, byte [ecx]
call fcn.0043b330
mov al, byte [ebp - 0x10]
mov edx, dword [ebp - 0x28]
xor al, byte [edx]
mov ecx, dword [ebp - 0x2c]
mov byte [ecx], al
inc ebx
inc dword [ebp - 0x2c]
inc dword [ebp - 0x28]
cmp ebx, 0xa
jl 0x43b46a
mov edx, edi
mov eax, esi
call fcn.0043b310
mov dword [ebp - 0x10], eax
mov eax, esi
mov ecx, dword [ebp + 8]
mov edx, edi
shr ecx, 0x10
and ecx, 0xff
call fcn.0043b330
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
shr eax, 0x10
mov cl, byte [ebp - 0x10]
and al, 0xff
xor cl, al
mov eax, esi
mov byte [edx + ebx], cl
mov edx, edi
inc ebx
call fcn.0043b310
mov dword [ebp - 0x10], eax
mov eax, esi
mov ecx, dword [ebp + 8]
mov edx, edi
shr ecx, 0x18
and ecx, 0xff
call fcn.0043b330
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
shr eax, 0x18
mov cl, byte [ebp - 0x10]
and al, 0xff
xor cl, al
mov byte [edx + ebx], cl
inc ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc