joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6022e1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x710688]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x602327
cmp word [ebx], dx
jne 0x602327
or byte [eax + edi + 0x28], 4
jmp 0x60232c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x60248f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x60246f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x60236d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x6023a3
cmp eax, edx
jae 0x6023b1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x602348
jmp 0x60248f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x60246a
cmp dword [ebp - 0x18], 0
je 0x60246a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x710688]
test byte [eax + edi + 0x28], 0x48
je 0x602440
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x602404
mov word [esi], cx
jmp 0x60243b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x710688]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x710688]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x710688]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x60248f
pop eax
cmp word [ebp - 4], ax
jne 0x602450
cmp esi, ebx
jne 0x602450
mov word [esi], ax
jmp 0x60248c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00601f44
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x60248f
push 0xd
pop eax
jmp 0x60244b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x710688]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x602489
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x60248f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x60455b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x659d3c
push 0x659d34
push str.FlsAlloc
push 0x1f
call fcn.00604386
mov esi, eax
add esp, 0x10
test esi, esi
je 0x60458f
push dword [ebp + 8]
mov ecx, esi
call dword [0x63c810]
call esi
jmp 0x604595
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x6045d9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x659d4c
push 0x659d44
push str.FlsGetValue
push 0x21
call fcn.00604386
mov esi, eax
add esp, 0x10
test esi, esi
je 0x604610
push dword [ebp + 8]
mov ecx, esi
call dword [0x63c810]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x604618
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x659d54
push 0x659d4c
push str.FlsSetValue
push 0x22
call fcn.00604386
mov esi, eax
add esp, 0x10
test esi, esi
je 0x604652
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x63c810]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x60cb4f
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 0x60cbec
push ebx
push esi
call fcn.0060cb18
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.00608d17
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x60cb99
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x60cbeb
push edi
push eax
call fcn.00602e88
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x60cbb9
call fcn.00601ac0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x60cbea
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00608d17
add esp, 0x20
test eax, eax
jne 0x60cbd8
push edi
call fcn.00601ac0
jmp 0x60cbe0
push ebx
call fcn.00601ac0
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 0x60cbef
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x60cc00
pop esi
ret
push ebx
push edi
push esi
call fcn.0060cb18
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00602e88
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x60cc28
push ebx
push esi
push edi
call fcn.005e01a0
add esp, 0xc
push 0
call fcn.00601ac0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x60d382
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0060ce9d

Function at 0x60f56d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00600245
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x60f5dc
cmp esi, dword [ebp - 4]
je 0x60f5d7
cmp dword [ebp + 0xc], 0
je 0x60f5d7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x60f5b4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0060f0bf
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x60f5de
xor eax, eax
inc eax
jmp 0x60f5de
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x60f643
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6bd4d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00600245
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00600245
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x60f6ba
cmp word [ecx], dx
je 0x60f6ba
mov eax, dword [0x662894]
push edi
dec eax
push eax
push 0x662780
call fcn.0060f5e2
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x60f72d
cmp word [eax], dx
je 0x60f72d
mov eax, dword [edi]
test eax, eax
je 0x60f6de
cmp word [eax], dx
je 0x60f6de
lea eax, [ebp - 0x10]
push eax
call fcn.0060efc5
jmp 0x60f6e7
lea eax, [ebp - 0x10]
push eax
call fcn.0060f060
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x60f757
mov eax, dword [0x66277c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x662470
call fcn.0060f5e2
add esp, 0xc
test al, al
je 0x60f757
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x60f722
cmp word [eax], di
je 0x60f722
lea eax, [ebp - 0x10]
push eax
call fcn.0060efc5
pop ecx
jmp 0x60f759
lea eax, [ebp - 0x10]
push eax
call fcn.0060f060
jmp 0x60f71f
mov eax, dword [edi]
test eax, eax
je 0x60f744
cmp word [eax], dx
je 0x60f744
lea eax, [ebp - 0x10]
push eax
call fcn.0060ef7a
pop ecx
jmp 0x60f757
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x60f822
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0060f467
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x60f822
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x60f822
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x60f822
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x60f7af
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00604758
test ebx, ebx
je 0x60f81d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00604758
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x60f822
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x60f822
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00612766
add esp, 0x10
xor eax, eax
inc eax
jmp 0x60f824
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005a489b
leave
ret
Function at 0x612c7b
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00612bf7
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x612dea
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x612dea
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x612d9f
jg 0x612cd7
test eax, eax
je 0x612d95
push 1
push 0x1000
call fcn.00603f7a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x612cfa
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x612d8c
push 0x8000
push ebx
call fcn.005fd59e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x612d23
jg 0x612d1e
cmp ecx, 0x1000
jb 0x612d23
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0060134c
add esp, 0x10
cmp eax, 0xffffffff
je 0x612d68
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x612d1e
jl 0x612d4f
test ecx, ecx
jne 0x612d10
push dword [ebp - 0xc]
push ebx
call fcn.005fd59e
push esi
call fcn.00601ac0
add esp, 0xc
xor ebx, ebx
jmp 0x612df8
cmp byte [edi + 0x24], 0
je 0x612d7f
cmp dword [edi + 0x20], 5
jne 0x612d7f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x612d8a
mov ebx, dword [edi + 0x18]
jmp 0x612d8c
xor ebx, ebx
push esi
call fcn.00601ac0
pop ecx
jmp 0x612df8
test ecx, ecx
jg 0x612d61
jl 0x612d9f
test eax, eax
jae 0x612d61
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00601f44
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x612dbf
cmp byte [edi + 0x1c], 0
je 0x612d61
jmp 0x612df0
push ebx
call fcn.00609c44
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x612d61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x612df8
cmp byte [edi + 0x1c], 0
je 0x612df5
mov ebx, dword [edi + 0x18]
jmp 0x612df8
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00601f44
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x61acc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6395a2
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6bd4d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.0050b910
mov dword [edi], vtable.CSkyObject.0
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea esi, [edi + 0x134]
mov byte [ebp - 4], 1
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005a48da
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x1bc], 0
mov dword [edi + 0x1c0], 0
mov dword [edi + 0x1c4], 0
mov dword [edi + 0x1c8], 0x3f800000
mov dword [edi + 0x1cc], 0x3f800000
mov dword [edi + 0x1d0], 0x3f800000
mov dword [edi + 0x1d8], 0
mov dword [edi + 0x1e8], 0
mov dword [edi + 0x1ec], 0xf
mov byte [edi + 0x1d8], 0
lea ecx, [edi + 0x1f4]
mov byte [ebp - 4], 3
call fcn.00519730
mov dword [edi + 0x174], 0
mov dword [edi + 0x170], 0
mov dword [edi + 0x16c], 0
mov dword [edi + 0x168], 0
mov dword [edi + 0x160], 0
mov dword [edi + 0x15c], 0
mov dword [edi + 0x158], 0
mov dword [edi + 0x154], 0
mov dword [edi + 0x14c], 0
mov dword [edi + 0x148], 0
mov dword [edi + 0x144], 0
mov dword [edi + 0x140], 0
mov dword [edi + 0x178], 0x3f800000
mov dword [edi + 0x164], 0x3f800000
mov dword [edi + 0x150], 0x3f800000
mov dword [edi + 0x13c], 0x3f800000
mov dword [edi + 0x1b4], 0
mov dword [edi + 0x1b0], 0
mov dword [edi + 0x1ac], 0
mov dword [edi + 0x1a8], 0
mov dword [edi + 0x1a0], 0
mov dword [edi + 0x19c], 0
mov dword [edi + 0x198], 0
mov dword [edi + 0x194], 0
mov dword [edi + 0x18c], 0
mov dword [edi + 0x188], 0
mov dword [edi + 0x184], 0
mov dword [edi + 0x180], 0
mov dword [edi + 0x1b8], 0x3f800000
mov dword [edi + 0x1a4], 0x3f800000
mov dword [edi + 0x190], 0x3f800000
mov dword [edi + 0x17c], 0x3f800000
mov byte [ebp - 4], 4
mov dword [edi + 0xf8], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xec], 0
mov dword [edi + 0xe4], 0
mov dword [edi + 0xe0], 0
mov dword [edi + 0xdc], 0
mov dword [edi + 0xd8], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xfc], 0x3f800000
mov dword [edi + 0xe8], 0x3f800000
mov dword [edi + 0xd4], 0x3f800000
mov dword [edi + 0xc0], 0x3f800000
mov ecx, dword [0x74c5c0]
call fcn.004f4a10
mov dword [edi + 0x130], eax
mov eax, edi
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
mov word [edi + 0x1f0], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x623240
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov dword [esp], 0
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, dword [esi + 0x18]
test eax, eax
je 0x623250
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
xor ebx, ebx
add eax, 4
je 0x623259
mov ebx, dword [eax]
lea ecx, [eax + 4]
xor eax, eax
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x62326c
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
xor edx, edx
add ecx, 4
je 0x623275
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
push edi
mov edi, dword [ebp]
add edi, ebx
mov dword [esp + 0x14], ecx
mov ebx, dword [ebp + 4]
add ebp, 8
add ebx, edx
test ecx, ecx
je 0x6232e2
nop
lea edx, [edi*2 + 1]
imul edx, edi
lea eax, [ebx*2 + 1]
imul eax, ebx
rol edx, 5
rol eax, 5
mov esi, edx
xor esi, dword [esp + 0x10]
movzx ecx, al
and ecx, 0x1f
mov dword [esp + 0x10], edi
rol esi, cl
mov edi, eax
xor edi, dword [esp + 0x1c]
mov eax, ebx
mov ebx, dword [ebp]
movzx ecx, dl
add ebx, esi
and ecx, 0x1f
mov dword [esp + 0x1c], eax
rol edi, cl
add edi, dword [ebp + 4]
add ebp, 8
sub dword [esp + 0x14], 1
jne 0x623290
add eax, dword [ebp + 4]
mov ecx, dword [ebp]
add ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x623300
mov eax, dword [eax]
xor ecx, eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test edx, edx
je 0x62330a
mov dword [edx], ecx
lea esi, [edx + 4]
test eax, eax
lea edx, [eax + 4]
cmove edx, eax
test edx, edx
je 0x62331b
xor edi, dword [edx]
test esi, esi
je 0x623321
mov dword [esi], edi
add esi, 4
lea ecx, [edx + 4]
test edx, edx
pop edi
cmove ecx, edx
mov edx, dword [esp + 0x18]
test ecx, ecx
je 0x623337
xor edx, dword [ecx]
test esi, esi
je 0x62333d
mov dword [esi], edx
add esi, 4
lea eax, [ecx + 4]
test ecx, ecx
cmove eax, ecx
test eax, eax
je 0x623350
mov eax, dword [eax]
xor ebx, eax
test esi, esi
je 0x623356
mov dword [esi], ebx
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x433003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x403203
pop dword [ebp - 0x38]
mov eax, 0x30fa2a28
sub eax, 0x30b9f825
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xb0a427a7
sub dword [ebp - 0x48], 0x6251e25c
mov dword [ebp - 0x44], 0x59db937d
sub dword [ebp - 0x44], 0x27a84738
mov dword [ebp - 0x40], 0xfea2ceb5
add dword [ebp - 0x40], 0x4da97579
mov dword [ebp - 0x3c], 0x80cd9844
sub dword [ebp - 0x3c], 0x80cd9844
lea eax, [ebp - 0x48]
push eax
mov eax, 0xa379d361
sub eax, 0xa33952d5
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xda6cd44a
sub dword [ebp - 0x48], 0x65fa6af4
mov dword [ebp - 0x44], 0xdf42fb01
sub dword [ebp - 0x44], 0x9dd6998c
mov dword [ebp - 0x40], 0xa5365513
sub dword [ebp - 0x40], 0x41c6e8a7
mov dword [ebp - 0x3c], 0xc3657439
sub dword [ebp - 0x3c], 0xc3657439
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xa65e538f
sub eax, 0xa61dd2bb
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x397c1
push 0
call eax
mov ecx, 0x48bd355c
sub ecx, 0x48bce1cc
xor ebx, ebx
add ebx, eax
mov edi, 0x551d1de0
add edi, 0xab23f220
add edi, dword [ebp - 0x38]
mov edx, 0xd60993b6
mov esi, dword [edi]
sub dword [ebp - 0x24], esi
xor esi, edx
xor dword [ebp - 0x24], edx
mov dword [ebx], esi
mov dword [ebp - 0x2c], 0xe9b30f97
add ebx, 0x5e3994a3
sub ebx, 0x5e39949f
add edi, 4
loop 0x403321
add eax, 0x2baf0ac3
add eax, 0xd4523650
mov ebx, eax
add eax, 0xa4c787df
sub eax, 0xa4c787da
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x403e59
pop dword [ebp - 0x40]
mov eax, 0x351c8578
add eax, 0xcb23b8e1
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x704aae75
sub dword [ebp - 0x50], 0x21f8692a
mov dword [ebp - 0x4c], 0xbc2558c5
sub dword [ebp - 0x4c], 0x89f20c80
mov dword [ebp - 0x48], 0x1481828e
add dword [ebp - 0x48], 0x37cac1a0
mov dword [ebp - 0x44], 0xdefe52ee
sub dword [ebp - 0x44], 0xdefe52ee
lea eax, [ebp - 0x50]
push eax
mov eax, 0x2de8b645
sub eax, 0x2da835b9
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xb963e4cf
sub dword [ebp - 0x50], 0x44f17b79
mov dword [ebp - 0x4c], 0xda445d57
add dword [ebp - 0x4c], 0x6728041e
mov dword [ebp - 0x48], 0x4e5afbd7
sub dword [ebp - 0x48], 0xeaeb8f6b
mov dword [ebp - 0x44], 0x76cd9f25
add dword [ebp - 0x44], 0x893260db
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xccf6435c
add eax, 0x334a3d78
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x39bfd
push 0
call eax
mov ecx, 0x6eb491a2
add ecx, 0x914bc260
mov edx, eax
mov edi, 0x34394fae
add edi, 0xcc07c052
add edi, dword [ebp - 0x40]
mov esi, 0xd7ff0d2
add esi, 0x4d9486c3
add dword [ebp - 0x10], 0xa769841a
mov ebx, dword [edi]
sub dword [ebp - 0x20], eax
add ebx, esi
sub dword [ebp - 0x34], 0x975bc2af
mov dword [edx], ebx
xor dword [ebp - 0x38], 0xc2c93304
add edx, 4
add edi, 0xe7aab5ff
add edi, 0x18554a05
loop 0x403f7b
add eax, 0x142db
mov ebx, eax
add eax, 0x3a959d76
sub eax, 0x3a959d71
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4031e0
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403a5c
Capabilities:
Query or enumerate registry value

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

Function at 0x404998
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4cd044], 0
je 0x4049f9
cmp word [0x4cd218], 0xd7b2
jne 0x4049c1
cmp dword [0x4cd220], 0
jbe 0x4049c1
mov eax, 0x4cd214
call dword [0x4cd230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x404a20
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c9030], 0
jne 0x404a15
push 0
push 0x4c9764
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404b70
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 [0x4c9034], 0
je 0x404b96
mov edx, esi
mov eax, ebx
call dword [0x4c9034]
jmp 0x404ba5
mov eax, 8
call fcn.00402ec4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4cd045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404b38
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