joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov ebp, ecx
je 0x4043e0
mov edx, dword [ebp + 0x2064]
lea ecx, [ebp + 0x2064]
push eax
call dword [edx + 0x1c]
mov al, byte [ebp + 0x2060]
test al, al
jne 0x404563
mov ecx, dword [ebp + 0x207c]
cmp ecx, esi
je 0x404404
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp + 0x207c], esi
mov edx, dword [ebp + 0x2064]
lea ebx, [ebp + 0x2064]
mov ecx, ebx
call dword [edx + 0x24]
cmp eax, esi
mov dword [ebp + 0x207c], eax
jne 0x404428
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
lea eax, [ebp + 0x3c]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov eax, dword [ebp + 0x2078]
cmp eax, esi
je 0x4044ff
mov edx, dword [ebp + 0x207c]
cmp dword [edx + 8], 0x2000
jg 0x4044ff
mov dword [ebp + 0x205c], esi
mov eax, dword [ebp + 0x207c]
mov ecx, dword [eax + 8]
mov esi, dword [eax + 4]
mov eax, dword [ebp + 0x205c]
mov edx, ecx
shr ecx, 2
lea edi, [eax + ebp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x207c]
mov edx, dword [ebp + 0x205c]
mov eax, dword [ecx + 8]
add edx, eax
test ecx, ecx
mov dword [ebp + 0x205c], edx
je 0x4044a7
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [ebp + 0x207c], 0
mov eax, dword [ebp + 0x2078]
test eax, eax
je 0x4044d7
mov eax, dword [ebp + 0x2068]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp + 0x205c]
add edx, ecx
cmp edx, 0x2000
jg 0x4044ec
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
test eax, eax
mov dword [ebp + 0x207c], eax
jne 0x404462
mov edx, dword [ebp + 0x205c]
lea eax, [ebp + 0x54]
lea ecx, [ebp + 0x5c]
mov dword [ebp + 0x58], ecx
mov dword [eax], edx
jmp 0x404513
mov ecx, dword [ebp + 0x207c]
mov eax, dword [ecx + 4]
mov dword [ebp + 0x58], eax
mov ecx, dword [ecx + 8]
lea eax, [ebp + 0x54]
mov dword [eax], ecx
lea ecx, [ebp + 0x3c]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0
push edx
push 1
push eax
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x404555
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x404555
mov edi, dword [ebp]
call esi
push eax
mov ecx, ebp
call dword [edi + 4]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
mov eax, dword [ebp + 0x38]
mov byte [ebp + 0x2060], 1
inc eax
mov dword [ebp + 0x38], eax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
Function at 0x404570
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x40a4]
test al, al
jne 0x404617
lea eax, [esi + 0x2080]
xor ecx, ecx
mov edx, eax
mov edi, 0x2000
push 0
push eax
mov dword [edx], ecx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov ecx, dword [esi + 0x40a0]
sub edi, ecx
lea edx, [ecx + esi + 0x20a0]
lea ecx, [esp + 0x18]
mov dword [esi + 0x209c], edx
lea edx, [esi + 0x2098]
push ecx
push 1
mov dword [edx], edi
push edx
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x404609
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x3e5
je 0x404609
push ebx
mov ebx, dword [esi]
call edi
push eax
mov ecx, esi
call dword [ebx + 4]
pop ebx
pop edi
xor al, al
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x38]
mov byte [esi + 0x40a4], 1
inc eax
mov dword [esi + 0x38], eax
pop edi
mov al, 1
pop esi
add esp, 8
ret

Function at 0x404b30
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x418f96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x34
call fcn.0040e8b3
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x20], edi
je 0x404b9b
mov dword [esi], 0x41a41c
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
lea ebp, [esi + 0x18]
mov byte [esp + 0x20], 1
mov ecx, ebp
call fcn.0040d320
mov dword [esi], 0x41a400
mov dword [ebp], 0x41a3fc
jmp 0x404b9d
xor esi, esi
mov dword [ebx + 0x1b0], esi
push 0x34
mov dword [esp + 0x24], 0xffffffff
mov dword [esi + 0xc], 0x40a0e0
mov dword [esi + 0x10], edi
call fcn.0040e8b3
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, edi
mov dword [esp + 0x20], 2
je 0x404c04
mov dword [esi], 0x41a41c
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
lea ebp, [esi + 0x18]
mov byte [esp + 0x20], 3
mov ecx, ebp
call fcn.0040d320
mov dword [esi], 0x41a400
mov dword [ebp], 0x41a3fc
jmp 0x404c06
xor esi, esi
push edi
mov dword [ebx + 0x1b4], esi
push edi
mov dword [esi + 0xc], 0x40a0e0
mov dword [esi + 0x10], edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
call esi
push edi
push edi
push edi
push edi
mov dword [ebx + 0x1a4], eax
call esi
mov dword [ebx + 0x1a8], eax
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push 0x4050f0
push edi
push edi
call fcn.0040f095
mov ecx, dword [esp + 0x30]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebx + 0x1ac], eax
pop edi
pop esi
pop ebp
pop ebx
setne al
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x404d70
Capabilities:
Create thread
Get system information on windows

Disassembly:
sub esp, 0x28
lea eax, [esp + 4]
push ebx
push esi
push edi
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x404d92
mov ecx, dword [esp + 0x24]
lea ebx, [ecx + ecx]
lea edx, [ebx*4]
mov dword [esi + 0x198], ebx
push edx
call fcn.0040e8b3
add esp, 4
mov dword [esi + 0x19c], eax
test eax, eax
jne 0x404dbd
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x28
ret 4
xor edi, edi
test ebx, ebx
jle 0x404df6
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x405100
push 0
push 0
call fcn.0040f095
mov ecx, dword [esi + 0x19c]
add esp, 0x18
mov dword [ecx + edi*4], eax
mov edx, dword [esi + 0x19c]
cmp dword [edx + edi*4], 0xffffffff
je 0x404db2
inc edi
cmp edi, ebx
jl 0x404dc3
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x28
ret 4

Function at 0x404ed0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
mov esi, ecx
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x1b8], eax
call edi
mov dword [esi + 0x1bc], eax
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x405110
push 0
push 0
call fcn.0040f095
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x1c0], eax
pop edi
pop esi
setne al
pop ecx
ret

Function at 0x404fe0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
mov esi, ecx
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x1f8], eax
call edi
mov dword [esi + 0x1fc], eax
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x405120
push 0
push 0
call fcn.0040f095
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x200], eax
pop edi
pop esi
setne al
pop ecx
ret
Function at 0x409c60
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
push 0x60
call fcn.0040e8b3
mov ebx, eax
mov ecx, 0x18
xor eax, eax
mov edi, ebx
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
call fcn.00403070
mov ebp, dword [esp + 0x34]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 0x1d]
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0x36]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebx + 0x19]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x28], esi
mov esi, edi
mov edi, dword [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x80]
cmp eax, ecx
ja 0x409d13
mov eax, ecx
mov ecx, dword [ebp + 0x98]
sub eax, edx
mov esi, eax
mov eax, dword [ebp + 0x90]
cmp eax, ecx
ja 0x409d29
mov eax, ecx
mov ecx, dword [ebp + 0x84]
mov edi, dword [ebp + 0x88]
add ecx, edi
sub eax, edx
mov dword [ebx + 0x54], ecx
mov ecx, dword [ebp + 0x9c]
mov dword [ebx + 0x5c], ecx
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x50], esi
mov eax, dword [ebp + 0x84]
test eax, eax
mov byte [ebp + 0xac], 5
jle 0x409d63
mov byte [ebp + 0xac], 2
mov eax, dword [ebp + 0x88]
test eax, eax
jle 0x409d74
mov byte [ebp + 0xac], 7
mov eax, dword [ebx + 0x5c]
test eax, eax
jle 0x409d82
mov byte [ebp + 0xac], 4
mov eax, dword [ebx + 0x58]
test eax, eax
jle 0x409d90
mov byte [ebp + 0xac], 3
mov eax, dword [ebx + 0x50]
test eax, eax
jle 0x409d9e
mov byte [ebp + 0xac], 1
mov dl, byte [ebp + 0xac]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [ebx + 0x4d], dl
mov eax, dword [ebp + 0x64]
mov dword [ebx + 0x40], eax
call esi
mov dword [ebx + 0x44], eax
call esi
mov ecx, dword [ebx + 0x44]
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x48], eax
mov byte [ebx + 0x4c], 0
mov dword [ebp + 0xa8], ecx
mov eax, dword [edx + 0x3d4]
lea ecx, [edx + 0x3d4]
push ebx
call dword [eax + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x40bb40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov esi, esp
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, esp
call fcn.0040f68f
test eax, eax
sete al
pop edi
pop esi
pop ebx
add esp, 0x44
cmp ebp, esp
call fcn.0040f68f
mov esp, ebp
pop ebp
ret 8
Function at 0x40bba0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, esp
call fcn.0040f68f
mov esi, esp
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, esp
call fcn.0040f68f
test eax, eax
sete al
pop edi
pop esi
pop ebx
add esp, 0x44
cmp ebp, esp
call fcn.0040f68f
mov esp, ebp
pop ebp
ret 8

Function at 0x40bc10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x4c]
mov ecx, 0x13
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov esi, esp
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, esp
call fcn.0040f68f
test eax, eax
sete al
pop edi
pop esi
pop ebx
add esp, 0x4c
cmp ebp, esp
call fcn.0040f68f
mov esp, ebp
pop ebp
ret 8

Function at 0x40bc70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x4c]
mov ecx, 0x13
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov esi, esp
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, esp
call fcn.0040f68f
test eax, eax
sete al
pop edi
pop esi
pop ebx
add esp, 0x4c
cmp ebp, esp
call fcn.0040f68f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40bfd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x314
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp esi, esp
call fcn.0040f68f
mov ecx, dword [ebp - 4]
add ecx, 0x10c
test ecx, ecx
je 0x40c0f4
mov esi, esp
push 0
mov edx, dword [ebp - 4]
add edx, 0x10c
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp esi, esp
call fcn.0040f68f
mov eax, dword [ebp - 4]
add eax, 0x10c
push eax
call fcn.0040f7a0
add esp, 4
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + eax + 0x10b]
cmp edx, 0x5c
jne 0x40c0a3
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 0x31a]
push ecx
mov edx, dword [ebp - 4]
xor eax, eax
mov ax, word [edx + 0x316]
push eax
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 0x314]
push edx
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x10c
push ecx
push str._s_s_04d_02d_02d.log
mov edx, dword [ebp - 4]
add edx, 0x210
push edx
call fcn.0040e96f
add esp, 0x1c
jmp 0x40c0f2
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 0x31a]
push ecx
mov edx, dword [ebp - 4]
xor eax, eax
mov ax, word [edx + 0x316]
push eax
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 0x314]
push edx
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x10c
push ecx
push 0x41a770
mov edx, dword [ebp - 4]
add edx, 0x210
push edx
call fcn.0040e96f
add esp, 0x1c
jmp 0x40c139
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 0x31a]
push ecx
mov edx, dword [ebp - 4]
xor eax, eax
mov ax, word [edx + 0x316]
push eax
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 0x314]
push edx
mov eax, dword [ebp - 4]
add eax, 8
push eax
push str._s_04d_02d_02d.log
mov ecx, dword [ebp - 4]
add ecx, 0x210
push ecx
call fcn.0040e96f
add esp, 0x18
mov esi, esp
push 0x41a758
mov edx, dword [ebp - 4]
add edx, 0x210
push edx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
call dword [edx + 4]
cmp esi, esp
call fcn.0040f68f
pop edi
pop esi
pop ebx
add esp, 0x44
cmp ebp, esp
call fcn.0040f68f
mov esp, ebp
pop ebp
ret

Function at 0x40dba0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x448]
mov ecx, 0x112
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x41a804
mov ecx, dword [ebp - 4]
add ecx, 4
mov esi, esp
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp esi, esp
call fcn.0040f68f
test eax, eax
je 0x40dc0c
push str.CNetBase::CNetBase___WSAStartup
lea ecx, [ebp - 0x408]
call fcn.0040e300
push 0x41b9b0
lea edx, [ebp - 0x408]
push edx
call fcn.0040f8bd
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
add esp, 0x448
cmp ebp, esp
call fcn.0040f68f
mov esp, ebp
pop ebp
ret
Function at 0x414aa1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4202a8
cmp edx, dword [eax]
je 0x414ac3
add eax, 8
inc ecx
cmp eax, 0x420338
jl 0x414ab4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4202a8]
jne 0x414bf1
mov eax, dword [0x420bdc]
cmp eax, 1
je 0x414bcb
test eax, eax
jne 0x414af4
cmp dword [0x41da94], 1
je 0x414bcb
cmp edx, 0xfc
je 0x414bf1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414b2b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040f6b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040f7a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x414b6e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f7a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41ad58
push edi
call fcn.00417280
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040f6b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040f6c0
lea eax, [ebp - 0xa0]
push 0x41ad38
push eax
call fcn.0040f6c0
push dword [esi + 0x4202ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f6c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004171f3
add esp, 0x2c
pop edi
jmp 0x414bf1
lea eax, [ebp + 8]
lea esi, [esi + 0x4202ac]
push 0
push eax
push dword [esi]
call fcn.0040f7a0
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 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x772c7953
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, str.VSJ
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x53e62256
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5df008], 0x8088405
inc edx
mov dword [ebx + 0x5df008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd18
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd31
add dl, dl
jne 0x41cd54
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cda5
xor eax, eax
add dl, dl
jne 0x41cd61
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce42
add dl, dl
jne 0x41cd70
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd7b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd86
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd91
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cd9b
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd40
mov eax, 1
add dl, dl
jne 0x41cdb3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdbe
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdaa
sub eax, ebx
mov ebx, 1
jne 0x41cdf1
mov ecx, 1
add dl, dl
jne 0x41cdd7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cde2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdce
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd40
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce08
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce13
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdff
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd40
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ce63
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cd40
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e558
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5c7a17
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e609
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e5f2
test esi, esi
jbe 0x41e609
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e5e4
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e609
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e5c1
jmp 0x41e609
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e609
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c7a1e
ret