joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10143d8c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x101f9b0c], 0
push esi
jne 0x10143cfa
call fcn.10143c18
test eax, eax
je 0x10143d3d
mov eax, dword [0x101f9b0c]
cmp eax, 1
jne 0x10143d1b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10143d3d
pop esi
ret
push eax
call dword [0x101f9b14]
test eax, eax
jne 0x10143d85
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10143d41
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x101f9b0c]
call dword [0x101f9b14]
mov edi, eax
test edi, edi
je 0x10143d68
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10143d84
lea edi, [esi + 0xff0]
push esi
push dword [0x101f9b0c]
call dword [0x101f9b10]
add esi, 0x10
cmp esi, edi
jb 0x10143d6e
mov eax, esi
pop edi
pop esi
ret
jmp 0x10143ce7

Function at 0x10145d71
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101f6410]
jne 0x10145d7b
repz ret
jmp fcn.10153d2c
Function at 0x1014c899
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x1014c8c6
call fcn.1014d0d2
mov dword [eax], esi
call fcn.1014d0bf
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10145fc8
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x1014c8a2
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1014c8f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1014d0e5
pop ecx
call fcn.1014d0bf
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x1014c91c
test al, 1
je 0x1014c91c
test byte [esp + 0xc], 2
je 0x1014c91c
call fcn.1014d0d2
mov dword [eax], 5
call fcn.1014d0bf
mov dword [eax], 0xd
jmp 0x1014c8ec
xor eax, eax
pop esi
ret

Function at 0x1015430c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x101f6c88]
je 0x10154327
inc edi
cmp edi, 0x17
jb 0x10154318
cmp edi, 0x17
jae 0x101544a7
push ebp
push 3
call fcn.1016f744
cmp eax, 1
pop ecx
je 0x10154473
push 3
call fcn.1016f744
test eax, eax
pop ecx
jne 0x1015435b
cmp dword [0x101f9bc8], 1
je 0x10154473
cmp ebx, 0xfc
je 0x101544a6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x101f9f50
push ebp
call fcn.1014bf8a
add esp, 0xc
test eax, eax
je 0x10154391
push esi
push esi
push esi
push esi
push esi
call fcn.10145e94
add esp, 0x14
push 0x104
mov esi, 0x101f9f69
push esi
push 0
mov byte [0x101fa06d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x101543d5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1014bf8a
add esp, 0xc
test eax, eax
je 0x101543d5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10145e94
add esp, 0x14
push esi
call fcn.1014d290
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1015441a
push esi
call fcn.1014d290
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x101fa264
push 0x101c4024
sub ecx, eax
push ecx
push eax
call fcn.10163a6f
add esp, 0x14
test eax, eax
je 0x1015441a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10145e94
add esp, 0x14
jmp 0x1015441c
xor esi, esi
push 0x101c4020
push ebx
push ebp
call fcn.1016b77e
add esp, 0xc
test eax, eax
je 0x1015443c
push esi
push esi
push esi
push esi
push esi
call fcn.10145e94
add esp, 0x14
push dword [edi*8 + 0x101f6c8c]
push ebx
push ebp
call fcn.1016b77e
add esp, 0xc
test eax, eax
je 0x1015445e
push esi
push esi
push esi
push esi
push esi
call fcn.10145e94
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1016f587
add esp, 0xc
jmp 0x101544a6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x101544a6
cmp ebp, 0xffffffff
je 0x101544a6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x101f6c8c]
push dword [esi]
call fcn.1014d290
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1016f587
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.101520d0
xor ebx, ebx
cmp dword [0x101fa65c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1016f65d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1016f73d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1016f73d
push eax
call fcn.10152062
mov dword [esp], 0x101c6a90
push edi
mov dword [0x101fa65c], eax
call esi
push eax
call fcn.10152062
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101fa660], eax
call esi
push eax
call fcn.10152062
mov dword [0x101fa664], eax
lea eax, [ebp - 0xc]
push eax
call fcn.101568d1
test eax, eax
pop ecx
pop ecx
je 0x1016f62b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10145e94
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1016f65d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10152062
cmp eax, ebx
pop ecx
mov dword [0x101fa66c], eax
je 0x1016f65d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10152062
pop ecx
mov dword [0x101fa668], eax
mov eax, dword [0x101fa668]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1016f6e2
cmp dword [0x101fa66c], ecx
je 0x1016f6e2
push eax
call fcn.101520d9
push dword [0x101fa66c]
mov esi, eax
call fcn.101520d9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1016f6e2
cmp edi, ebx
je 0x1016f6e2
call esi
cmp eax, ebx
je 0x1016f6af
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1016f6af
test byte [ebp - 0x18], 1
jne 0x1016f6e2
lea eax, [ebp - 0x10]
push eax
call fcn.10156980
test eax, eax
pop ecx
je 0x1016f6ca
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10145e94
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1016f6d9
or dword [ebp + 0x10], 0x200000
jmp 0x1016f71d
or dword [ebp + 0x10], 0x40000
jmp 0x1016f71d
mov eax, dword [0x101fa660]
cmp eax, dword [ebp - 8]
je 0x1016f71d
push eax
call fcn.101520d9
cmp eax, ebx
pop ecx
je 0x1016f71d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1016f71d
mov eax, dword [0x101fa664]
cmp eax, dword [ebp - 8]
je 0x1016f71d
push eax
call fcn.101520d9
cmp eax, ebx
pop ecx
je 0x1016f71d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101fa65c]
call fcn.101520d9
cmp eax, ebx
pop ecx
je 0x1016f73d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1016f73f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402750
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x446d50
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x45c970]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x28], 0
call fcn.00410d21
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402797
push 0x80004005
call fcn.004018a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
push eax
call fcn.004018d0
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
push 0xd
push str.602zhanol.exe
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 2
call fcn.00404ff0
call fcn.0040a980
mov esi, dword [esp + 0x10]
test eax, eax
je 0x40289e
push 0x44e6c0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00404990
add esp, 0xc
mov byte [esp + 0x28], 3
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.00402920
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402834
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x44e6c0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00404990
mov eax, dword [eax]
add esp, 0xc
push 1
push 0
push 0
push eax
push str.taskbarpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402881
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 6
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x44e6c0
call fcn.00405a90
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00404610
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4028bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402908
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 8
Function at 0x402920
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x446d10
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x45c970]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x10]
push eax
push 0x44daf4
push 1
push ebx
push 0x44db04
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x402990
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
push esi
lea ecx, [esp + 0x10]
call fcn.00405a90
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0xc]
push 0x5c
push eax
call fcn.0042f6ad
add esp, 8
or esi, 0xffffffff
cmp eax, ebx
jne 0x4029c5
mov eax, esi
jmp 0x4029cb
sub eax, dword [esp + 0xc]
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00404830
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.004017b0
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402a0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0x44eb54
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x44db34
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jge 0x402a84
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x402a6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, ebx
jl 0x402a47
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x402ada
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 4
Function at 0x402b00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x446ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x45c970]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
push eax
call fcn.004018d0
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
push 0xd
push str.602zhanol.exe
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 1
call fcn.00404ff0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x44e6c0
call fcn.00405a90
mov byte [esp + 0x34], 2
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.004018d0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov edi, ebx
mov byte [esp + 0x38], 1
call fcn.00402cf0
push str.unists.exe
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00404990
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call fcn.004017b0
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402be5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00410d21
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402bff
push 0x80004005
call fcn.004018a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x44e6a0
lea ecx, [esp + 0x18]
push 0x44e710
push ecx
mov byte [esp + 0x38], 4
call fcn.00401500
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x24], esp
mov ebp, esp
push esi
call fcn.004018d0
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x38], 5
mov ebp, dword [esp + 0x1c]
add ebp, 0xfffffff0
mov dword [esp + 0x2c], esp
mov edi, esp
push ebp
call fcn.004018d0
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov edi, ebx
mov byte [esp + 0x38], 4
call fcn.00402cf0
mov byte [esp + 0x2c], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x402c91
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x2c], 0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402cb0
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402cd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 4
Function at 0x4078d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4078d7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4079b4
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x450590]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x450590]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x450590]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x450590]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x450590]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x450590]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x450590]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x450590]
inc ecx
sub edx, 8
sub esi, 1
jne 0x4078f0
pop edi
test edx, edx
je 0x4079db
jmp 0x4079c0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x450590]
inc ecx
sub edx, 1
jne 0x4079c0
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x450590]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], 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
shr ecx, 8
xor ecx, dword [eax*4 + 0x450590]
mov dword [edx + 8], ecx
ret

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

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x450590]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x450590]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x4081e0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x408212
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408208
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x408225
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.004363c0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x40b780
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x40b85b
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x40b7b4
cmp dword [esi + 0x40], edi
jae 0x40b7b4
push eax
call fcn.004109a5
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x40b7cb
lea eax, [edi + edi]
push eax
call fcn.0041099a
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.004363c0
add esp, 0xc
cmp edi, ebp
jbe 0x40b857
lea ecx, [ecx]
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x44edb0]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x44edb0]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x40b7e0
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x40b894
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x40b87c
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.004363c0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40b8b5
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x40d450
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4465ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x45c970]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov dword [esi], vtable.CHttpClient.0
xor ebx, ebx
mov eax, vtable.CBuffer_unsigned_char_.0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x4c], 0xf
mov dword [esi + 0x48], ebx
mov byte [esi + 0x38], bl
push 0x14
mov byte [esp + 0x1c], 2
call fcn.0041096b
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x18], 3
cmp eax, ebx
je 0x40d4dd
push ebx
push ebx
push ebx
push ebx
push 1
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__.NET_CLR_2.0.50727_
mov ecx, eax
call fcn.00411850
jmp 0x40d4df
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x40dd90
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ecx
push esi
push 0x170
mov dword [esp + 8], 0x170
call fcn.0041096b
mov esi, eax
add esp, 4
test esi, esi
je 0x40de54
push 0x170
push 0
push esi
call fcn.00431cb0
add esp, 0xc
lea eax, [esp + 4]
push eax
push esi
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x40dde5
push esi
call fcn.004109a5
add esp, 4
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
push esi
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
jne 0x40de4b
mov eax, esi
mov ecx, 6
cmp dword [eax + 0x34], ecx
je 0x40de1b
mov eax, dword [eax + 8]
test eax, eax
jne 0x40de01
push esi
call fcn.004109a5
add esp, 4
pop esi
pop ecx
ret 4
movzx edx, byte [eax + 0x31]
movzx ecx, byte [eax + 0x30]
push edx
movzx edx, byte [eax + 0x2f]
push ecx
movzx ecx, byte [eax + 0x2e]
push edx
movzx edx, byte [eax + 0x2d]
movzx eax, byte [eax + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push 0x451510
push ecx
call fcn.00401500
add esp, 0x20
push esi
call fcn.004109a5
add esp, 4
pop esi
pop ecx
ret 4