joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a7a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea esi, [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebp
mov edi, 1
call fcn.0041a0e0
test al, al
jne 0x41a7d8
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call ebx
dec edi
jne 0x41a7c6
pop edi
pop esi
pop ebp
mov eax, 0x186ae
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x20]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
mov ebx, eax
test ebx, ebx
jge 0x41a810
call fcn.0041a0c0
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, eax
push esi
call ebx
dec edi
jne 0x41a801
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 0xc
jne 0x41a82a
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call ebx
dec edi
jne 0x41a818
pop edi
pop esi
pop ebp
mov eax, 0x186b2
pop ebx
ret 0xc
mov al, byte [0x451608]
test al, al
je 0x41a868
push 0x4515e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x451620]
mov eax, ebx
cdq
add ecx, eax
push 0x4515e8
mov dword [0x451620], ecx
mov ecx, dword [0x451624]
adc ecx, edx
mov dword [0x451624], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call fcn.00428b01
mov dword [ebp + 0x54], eax
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x41a87f
mov dword [eax], ebx
cmp ebx, dword [esp + 0x18]
je 0x41a8a2
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x41a8a2
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec edi
jne 0x41a88c
pop edi
pop esi
pop ebp
mov eax, 0x186a1
pop ebx
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec edi
jne 0x41a8a2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc

Function at 0x41a8c0
Capabilities:
Connect socket

Disassembly:
push 0xffffffffffffffff
push 0x43f6a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, 1
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 0x24]
mov dword [esp + 0x2c], 0
test eax, eax
je 0x41a92a
mov edx, dword [esi + 0x20]
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push 0x10
mov dword [esp + 0x20], eax
push ecx
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x41a931
mov ecx, esi
call fcn.0041aa10
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call esi
dec ebx
jne 0x41a937
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x41a950
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
call fcn.0041a0e0
test al, al
je 0x41a9f8
mov eax, dword [esi + 0x20]
push edi
push 1
push eax
call dword [sym.imp.WSOCK32.dll_shutdown]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.WSOCK32.dll_closesocket]
push ecx
call edi
xor ebx, ebx
test eax, eax
je 0x41a9ba
call fcn.0041a0c0
cmp eax, 0x186a1
jne 0x41a9ba
mov eax, dword [esi + 0x20]
lea edx, [esp + 0xc]
push 4
push edx
push 0x80
push 0xffff
push eax
mov word [esp + 0x20], 1
mov word [esp + 0x22], bx
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov ecx, dword [esi + 0x20]
push ecx
call edi
mov dword [esi + 0x20], 0xffffffff
mov al, byte [0x451608]
cmp al, bl
pop edi
je 0x41a9fa
push 0x4515e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x451610]
push 0x4515e8
dec ecx
mov dword [0x451610], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esi + 0x51], bl
mov byte [esi + 0x52], bl
pop esi
pop ebx
pop ecx
ret
xor ebx, ebx
mov byte [esi + 0x51], bl
mov byte [esi + 0x52], bl
pop esi
pop ebx
pop ecx
ret

Function at 0x41cea0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43fac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x13]
lea esi, [edi + 0x18]
xor ebx, ebx
push 0x18
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], esi
mov byte [esi], al
mov byte [esi + 1], cl
mov byte [esi + 0xc], 1
call fcn.00439d85
mov dword [eax + 4], ebx
mov byte [eax + 0x14], 1
mov byte [eax + 0x15], bl
mov dword [esi + 8], eax
mov byte [eax + 0x15], 1
mov eax, dword [esi + 8]
push 0x18
mov dword [eax], ebx
mov edx, dword [esi + 8]
mov dword [edx + 8], ebx
mov ebp, dword [esi + 8]
call fcn.00439d85
mov dword [eax + 4], ebp
mov byte [eax + 0x14], bl
mov byte [eax + 0x15], bl
mov dword [esi + 4], eax
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esi + 0x10], ebx
mov al, byte [esp + 0x1b]
mov cl, byte [esp + 0x1b]
push 0x18
mov byte [esp + 0x30], 1
mov byte [esi + 0x14], al
mov byte [esi + 0x15], cl
mov byte [esi + 0x20], 1
call fcn.00439d85
mov dword [eax + 4], ebx
mov byte [eax + 0x14], 1
mov byte [eax + 0x15], bl
mov dword [esi + 0x1c], eax
mov byte [eax + 0x15], 1
mov edx, dword [esi + 0x1c]
push 0x18
mov dword [edx], ebx
mov eax, dword [esi + 0x1c]
mov dword [eax + 8], ebx
mov ebp, dword [esi + 0x1c]
call fcn.00439d85
mov dword [eax + 4], ebp
mov byte [eax + 0x14], bl
mov byte [eax + 0x15], bl
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x2c]
mov dword [eax], eax
mov eax, dword [esi + 0x18]
add esp, 0x10
mov dword [eax + 8], eax
mov dword [esi + 0x24], ebx
mov eax, edi
mov byte [esi + 0x28], 1
mov byte [esi + 0x29], bl
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x426470
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x440489
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov al, byte [esp + 3]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0xc], esi
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x10]
mov dword [esp + 0x28], ebx
call fcn.00425370
mov cl, byte [esp + 0xb]
mov dword [esi + 0xbc], ebx
mov byte [esi + 0xb8], cl
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
lea edx, [esp + 0x10]
push 0x14
push edx
mov byte [esp + 0x30], 2
call fcn.004266c0
add esp, 8
push eax
mov ecx, esi
mov byte [esp + 0x2c], 3
call fcn.00426530
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x42651c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x426513
dec al
mov byte [ecx], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push ecx
call fcn.00439dae
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4266c0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4404c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov al, byte [esp + 0x44]
push ebx
push ebp
xor ebx, ebx
push esi
push ebx
push 8
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x38], al
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00426820
mov eax, dword [0x451bfc]
lea ecx, [esp + 0xc]
inc eax
lea edx, [esp + 0x10]
mov dword [0x451bfc], eax
mov ebp, eax
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
mov dword [esp + 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
sub eax, ecx
cmp eax, ecx
mov dword [esp + 0xc], eax
jae 0x426741
mov eax, ecx
imul eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
mov dx, word [esp + 0x22]
push eax
mov word [esp + 0x28], dx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov eax, ebp
xor esi, edi
mov edi, dword [esp + 0x30]
push 1
cdq
xor edi, ebx
add esi, eax
push 8
lea ecx, [esp + 0x3c]
adc edi, edx
call fcn.00417b10
test al, al
je 0x4267af
mov ecx, dword [esp + 0x38]
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov edx, dword [esp + 0x38]
mov dword [esp + 0x3c], 8
mov byte [edx + 8], bl
mov esi, dword [esp + 0x54]
mov al, byte [esp + 0x34]
lea edx, [esp + 0x34]
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [0x441f20]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.00423560
mov ecx, dword [esp + 0x38]
pop edi
cmp ecx, ebx
je 0x426809
mov al, byte [ecx - 1]
cmp al, bl
je 0x4267ff
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
dec ecx
push ecx
call fcn.00439dae
add esp, 4
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x42d59d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44e858
cmp edx, dword [eax]
je 0x42d5bf
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x42d5b0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44e858]
jne 0x42d6ed
mov eax, dword [0x4540d8]
cmp eax, 1
je 0x42d6c7
test eax, eax
jne 0x42d5f0
cmp dword [0x44dd34], 1
je 0x42d6c7
cmp edx, 0xfc
je 0x42d6ed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42d627
lea eax, [ebp - 0x1a4]
push 0x4448b0
push eax
call fcn.0042c490
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042e2f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42d66a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042e2f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4448ac
push edi
call fcn.00427c90
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x444890
push eax
call fcn.0042c490
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042c4a0
lea eax, [ebp - 0xa0]
push 0x44c22c
push eax
call fcn.0042c4a0
push dword [esi + 0x44e85c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042c4a0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x444868
push eax
call fcn.004303fb
add esp, 0x2c
pop edi
jmp 0x42d6ed
lea eax, [ebp + 8]
lea esi, [esi + 0x44e85c]
push 0
push eax
push dword [esi]
call fcn.0042e2f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x434f30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00427c30
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x434ffb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x434ffb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x434fae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x434fb9
or bh, 8
and edi, 0x8000000
je 0x434fd4
mov eax, dword [0x45587c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x434ffb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4353d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4353fb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x43541f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x43543a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x437a44
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x437a7c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0043a0e8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043a0c0
jmp 0x437a88
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x438f98
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x438fda
call fcn.0043ceff
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x438fda
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x438fd1
xor eax, eax
jmp 0x438fe2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00438fe8
pop edi
pop esi
pop ebx
ret 4

Function at 0x43d527
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43d555
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43d573
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043d48d
jmp 0x43d573
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43d573
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0043d48d
test edi, edi
mov eax, edi
jne 0x43d55d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402f90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x402f9b
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x403093
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x417f00]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x417f00]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x417f00]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x417f00]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x417f00]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x417f00]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x417f00]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x417f00]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x402fb6
test edi, edi
je 0x4030b2
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x417f00]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x403097
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

Function at 0x4030c0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [esp + 8]
push esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x417f00]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov esi, dword [eax*4 + 0x417f00]
shr ecx, 8
xor ecx, esi
mov dword [edx + 8], ecx
pop esi
ret

Function at 0x403120
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, dword [esi + 8]
mov eax, edx
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov al, byte [esp + 0xc]
shr ecx, 8
xor al, cl
xor ecx, ecx
push edi
mov edi, dword [esi]
mov cl, al
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x417f00]
shr edi, 8
xor ecx, edi
mov edi, dword [esi + 4]
mov dword [esi], ecx
and ecx, 0xff
add ecx, edi
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
mov edi, dword [ecx*4 + 0x417f00]
shr edx, 8
xor edx, edi
pop edi
mov dword [esi + 8], edx
pop esi
ret
Function at 0x4035b0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
mov cl, byte [ebx]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x4035f1
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4035e6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0x10]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
lea esi, [edx + eax]
cmp esi, ecx
push edi
jbe 0x403604
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
xor edx, edx
div ebp
pop ebp
mov dword [ebx + 0x1c], ecx
pop ebx
ret

Function at 0x404750
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x41d438]
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [esp + 0x220], eax
push edi
je 0x404787
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404787
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [ebp + 0xc]
mov cl, byte [ebx]
test cl, cl
je 0x404855
mov eax, ebx
mov edx, ebx
cmp cl, 0x2f
je 0x4047a2
cmp cl, 0x5c
jne 0x4047a4
mov eax, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x404798
cmp eax, ebx
je 0x4047ea
sub eax, ebx
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov esi, ebx
lea edi, [esp + 0x118]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov byte [esp + eax + 0x118], 0
lea eax, [esp + 0x118]
push eax
push ecx
call fcn.00404750
mov esi, dword [ebp + 8]
add esp, 8
test esi, esi
mov byte [esp + 0x10], 0
je 0x40480a
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x404800
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404800
mov eax, ebx
mov edx, ebx
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404810
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404820
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x10]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404855
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x224]
call fcn.00413841
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret