joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40537e
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push esi
or esi, 0x4d66
or esi, 0x1669d
pop esi
push ebx
push esi
add esp, 4
call fcn.004052e3
add byte [ebp + 0x4e], al
dec ecx
cmp al, 0x3d
dec eax
add esp, 4
and ebx, 0xd9d3
jmp 0x4052f5
pop ebx
mov eax, dword [ebp - 0xc18]
mov cx, word [eax]
mov word [ebp - 0xf7e], cx
mov edx, dword [ebp - 0xc18]
add edx, 2
mov dword [ebp - 0xc18], edx
mov ax, word [ebp - 0xf7e]
mov word [ebp - 0x1f8], ax
mov ecx, dword [ebp - 0xc1c]
mov dx, word [ecx]
mov word [ebp - 0xf80], dx
mov eax, dword [ebp - 0xc1c]
add eax, 2
mov dword [ebp - 0xc1c], eax
mov cx, word [ebp - 0xf80]
mov word [ebp - 0x100], cx
push ebx
push eax
add esp, 4
jmp 0x40535c
and ebx, 0x20e5
sub ebx, 0xeec4
pop ebx
push ecx
push edi
add esp, 4
call 0x40537e
add byte [0x413f3a35], dh
dec edx
xor al, 0x35
inc esi
dec edx
add esp, 4
pop ecx
movzx edx, word [ebp - 0x100]
test edx, edx
jne 0x4053a5
movzx eax, word [ebp - 0x1f8]
movzx ecx, word [ebp - 0x100]
sub eax, ecx
mov dword [ebp - 0x1498], eax
jmp 0x405408
movzx edx, word [ebp - 0x1f8]
movzx eax, word [ebp - 0x100]
cmp edx, eax
je 0x4052c4
movzx ecx, word [ebp - 0x1f8]
xor ecx, 0x20
movzx edx, word [ebp - 0x100]
cmp ecx, edx
je 0x4052c4
movzx eax, word [ebp - 0x1f8]
movzx ecx, word [ebp - 0x100]
cmp eax, ecx
jge 0x4053f2
mov dword [ebp - 0x14d8], 0xffffffff
jmp 0x4053fc
mov dword [ebp - 0x14d8], 1
mov edx, dword [ebp - 0x14d8]
mov dword [ebp - 0x1498], edx
cmp dword [ebp - 0x1498], 0
jne 0x405451
push ebx
jmp 0x40541b
call 0x405428
add byte [edx + 0x3c], al
xor eax, 0x473f4745
add esp, 4
pop ebx
push edi
xor edi, 0x10064
add edi, 0x8130
jmp 0x405442
pop edi
mov eax, dword [ebp - 0x4d4]
mov dword [ebp - 0x2e0], eax
jmp 0x4054b9
push ebx
call 0x405460
add byte [eax + 0x38], al
dec edi
aas
cmp al, 0x48
cmp al, 0x83
les eax, [ecx + eax*4]
retf
Function at 0x405428
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push esi
or esi, 0x4d66
or esi, 0x1669d
pop esi
push ebx
push esi
add esp, 4
call fcn.004052e3
add byte [ebp + 0x4e], al
dec ecx
cmp al, 0x3d
dec eax
add esp, 4
and ebx, 0xd9d3
jmp 0x4052f5
pop ebx
mov eax, dword [ebp - 0xc18]
mov cx, word [eax]
mov word [ebp - 0xf7e], cx
mov edx, dword [ebp - 0xc18]
add edx, 2
mov dword [ebp - 0xc18], edx
mov ax, word [ebp - 0xf7e]
mov word [ebp - 0x1f8], ax
mov ecx, dword [ebp - 0xc1c]
mov dx, word [ecx]
mov word [ebp - 0xf80], dx
mov eax, dword [ebp - 0xc1c]
add eax, 2
mov dword [ebp - 0xc1c], eax
mov cx, word [ebp - 0xf80]
mov word [ebp - 0x100], cx
push ebx
push eax
add esp, 4
jmp 0x40535c
and ebx, 0x20e5
sub ebx, 0xeec4
pop ebx
push ecx
push edi
add esp, 4
call 0x40537e
add byte [0x413f3a35], dh
dec edx
xor al, 0x35
inc esi
dec edx
add esp, 4
pop ecx
movzx edx, word [ebp - 0x100]
test edx, edx
jne 0x4053a5
movzx eax, word [ebp - 0x1f8]
movzx ecx, word [ebp - 0x100]
sub eax, ecx
mov dword [ebp - 0x1498], eax
jmp 0x405408
movzx edx, word [ebp - 0x1f8]
movzx eax, word [ebp - 0x100]
cmp edx, eax
je 0x4052c4
movzx ecx, word [ebp - 0x1f8]
xor ecx, 0x20
movzx edx, word [ebp - 0x100]
cmp ecx, edx
je 0x4052c4
movzx eax, word [ebp - 0x1f8]
movzx ecx, word [ebp - 0x100]
cmp eax, ecx
jge 0x4053f2
mov dword [ebp - 0x14d8], 0xffffffff
jmp 0x4053fc
mov dword [ebp - 0x14d8], 1
mov edx, dword [ebp - 0x14d8]
mov dword [ebp - 0x1498], edx
cmp dword [ebp - 0x1498], 0
jne 0x405451
push ebx
jmp 0x40541b
call 0x405428
add byte [edx + 0x3c], al
xor eax, 0x473f4745
add esp, 4
pop ebx
push edi
xor edi, 0x10064
add edi, 0x8130
jmp 0x405442
pop edi
mov eax, dword [ebp - 0x4d4]
mov dword [ebp - 0x2e0], eax
jmp 0x4054b9
push ebx
call 0x405460
add byte [eax + 0x38], al
dec edi
aas
cmp al, 0x48
cmp al, 0x83
les eax, [ecx + eax*4]
retf
Function at 0x405460
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push esi
or esi, 0x4d66
or esi, 0x1669d
pop esi
push ebx
push esi
add esp, 4
call fcn.004052e3
add byte [ebp + 0x4e], al
dec ecx
cmp al, 0x3d
dec eax
add esp, 4
and ebx, 0xd9d3
jmp 0x4052f5
pop ebx
mov eax, dword [ebp - 0xc18]
mov cx, word [eax]
mov word [ebp - 0xf7e], cx
mov edx, dword [ebp - 0xc18]
add edx, 2
mov dword [ebp - 0xc18], edx
mov ax, word [ebp - 0xf7e]
mov word [ebp - 0x1f8], ax
mov ecx, dword [ebp - 0xc1c]
mov dx, word [ecx]
mov word [ebp - 0xf80], dx
mov eax, dword [ebp - 0xc1c]
add eax, 2
mov dword [ebp - 0xc1c], eax
mov cx, word [ebp - 0xf80]
mov word [ebp - 0x100], cx
push ebx
push eax
add esp, 4
jmp 0x40535c
and ebx, 0x20e5
sub ebx, 0xeec4
pop ebx
push ecx
push edi
add esp, 4
call 0x40537e
add byte [0x413f3a35], dh
dec edx
xor al, 0x35
inc esi
dec edx
add esp, 4
pop ecx
movzx edx, word [ebp - 0x100]
test edx, edx
jne 0x4053a5
movzx eax, word [ebp - 0x1f8]
movzx ecx, word [ebp - 0x100]
sub eax, ecx
mov dword [ebp - 0x1498], eax
jmp 0x405408
movzx edx, word [ebp - 0x1f8]
movzx eax, word [ebp - 0x100]
cmp edx, eax
je 0x4052c4
movzx ecx, word [ebp - 0x1f8]
xor ecx, 0x20
movzx edx, word [ebp - 0x100]
cmp ecx, edx
je 0x4052c4
movzx eax, word [ebp - 0x1f8]
movzx ecx, word [ebp - 0x100]
cmp eax, ecx
jge 0x4053f2
mov dword [ebp - 0x14d8], 0xffffffff
jmp 0x4053fc
mov dword [ebp - 0x14d8], 1
mov edx, dword [ebp - 0x14d8]
mov dword [ebp - 0x1498], edx
cmp dword [ebp - 0x1498], 0
jne 0x405451
push ebx
jmp 0x40541b
call 0x405428
add byte [edx + 0x3c], al
xor eax, 0x473f4745
add esp, 4
pop ebx
push edi
xor edi, 0x10064
add edi, 0x8130
jmp 0x405442
pop edi
mov eax, dword [ebp - 0x4d4]
mov dword [ebp - 0x2e0], eax
jmp 0x4054b9
push ebx
call 0x405460
add byte [eax + 0x38], al
dec edi
aas
cmp al, 0x48
cmp al, 0x83
les eax, [ecx + eax*4]
retf
Function at 0x405708
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push edx
call fcn.00405708
add byte [edi + 0x3b], cl
xor eax, dword [esi + 0x4b]
dec ecx
dec esi
inc esi
dec ebp
dec edx
add esp, 4
jmp 0x405710
call 0x40571f
add byte [eax], bh
dec ecx
aaa
aaa
dec ecx
inc eax
dec ebx
inc ebx
dec edx
add esp, 4
xor edx, 0x14b9e
pop edx
lea edx, [ebp - 0x16cc]
mov dword [ebp - 0xc28], edx
mov eax, dword [ebp - 0x4d8]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc24], ecx
xor edx, edx
mov word [ebp - 0x1fc], dx
xor eax, eax
mov word [ebp - 0x104], ax
push ecx
push ecx
add esp, 4
add ecx, 0x887d
pop ecx
push eax
push ecx
add esp, 4
or eax, 0x1924
and eax, 0xa059
or eax, 0xbdf9
pop eax
push edi
or edi, 0x9a17
or edi, 0x4237
pop edi
mov ecx, dword [ebp - 0xc24]
mov dx, word [ecx]
mov word [ebp - 0xf82], dx
mov eax, dword [ebp - 0xc24]
add eax, 2
mov dword [ebp - 0xc24], eax
mov cx, word [ebp - 0xf82]
mov word [ebp - 0x1fc], cx
mov edx, dword [ebp - 0xc28]
mov ax, word [edx]
mov word [ebp - 0xf84], ax
mov ecx, dword [ebp - 0xc28]
add ecx, 2
mov dword [ebp - 0xc28], ecx
mov dx, word [ebp - 0xf84]
mov word [ebp - 0x104], dx
push ecx
and ecx, 0x782
add ecx, 0x11f06
pop ecx
push esi
push edi
add esp, 4
sub esi, 0x11cd9
jmp 0x405801
pop esi
push edi
call 0x405810
add byte [0x4c43484a], bh
dec ecx
dec ebx
add esp, 4
pop edi
movzx eax, word [ebp - 0x104]
test eax, eax
jne 0x405837
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
sub ecx, edx
mov dword [ebp - 0x14e4], ecx
jmp 0x40589a
movzx eax, word [ebp - 0x1fc]
movzx ecx, word [ebp - 0x104]
cmp eax, ecx
je 0x405756
movzx edx, word [ebp - 0x1fc]
xor edx, 0x20
movzx eax, word [ebp - 0x104]
cmp edx, eax
je 0x405756
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
cmp ecx, edx
jge 0x405884
mov dword [ebp - 0x14e0], 0xffffffff
jmp 0x40588e
mov dword [ebp - 0x14e0], 1
mov eax, dword [ebp - 0x14e0]
mov dword [ebp - 0x14e4], eax
cmp dword [ebp - 0x14e4], 0
jne 0x4058e3
push ebx
push ecx
add esp, 4
and ebx, 0x6575
add ebx, 0xe8f7
pop ebx
push ebx
and ebx, 0x12061
and ebx, 0xd67a
add ebx, 0x17b50
pop ebx
push ebx
push eax
add esp, 4
add ebx, 0x17ae7
pop ebx
mov ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x6ec], ecx
jmp 0x40594b
push edi
xor edi, 0x143aa
pop edi
push esi
push ecx
add esp, 4
xor esi, 0xc879
pop esi
push edx
push edx
add esp, 4
xor edx, 0x43fe
xor edx, 0x7533
and edx, 0x594b
sub edx, 0x1497f
pop edx
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx]
mov dword [ebp - 0x4d8], eax
mov ecx, dword [ebp - 0x4d8]
cmp ecx, dword [ebp - 0xc2c]
je 0x405941
mov edx, dword [ebp - 0x4d8]
cmp dword [edx + 0x30], 0
jne 0x4056f7
mov dword [ebp - 0x6ec], 0
Function at 0x40571f
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push edx
call fcn.00405708
add byte [edi + 0x3b], cl
xor eax, dword [esi + 0x4b]
dec ecx
dec esi
inc esi
dec ebp
dec edx
add esp, 4
jmp 0x405710
call 0x40571f
add byte [eax], bh
dec ecx
aaa
aaa
dec ecx
inc eax
dec ebx
inc ebx
dec edx
add esp, 4
xor edx, 0x14b9e
pop edx
lea edx, [ebp - 0x16cc]
mov dword [ebp - 0xc28], edx
mov eax, dword [ebp - 0x4d8]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc24], ecx
xor edx, edx
mov word [ebp - 0x1fc], dx
xor eax, eax
mov word [ebp - 0x104], ax
push ecx
push ecx
add esp, 4
add ecx, 0x887d
pop ecx
push eax
push ecx
add esp, 4
or eax, 0x1924
and eax, 0xa059
or eax, 0xbdf9
pop eax
push edi
or edi, 0x9a17
or edi, 0x4237
pop edi
mov ecx, dword [ebp - 0xc24]
mov dx, word [ecx]
mov word [ebp - 0xf82], dx
mov eax, dword [ebp - 0xc24]
add eax, 2
mov dword [ebp - 0xc24], eax
mov cx, word [ebp - 0xf82]
mov word [ebp - 0x1fc], cx
mov edx, dword [ebp - 0xc28]
mov ax, word [edx]
mov word [ebp - 0xf84], ax
mov ecx, dword [ebp - 0xc28]
add ecx, 2
mov dword [ebp - 0xc28], ecx
mov dx, word [ebp - 0xf84]
mov word [ebp - 0x104], dx
push ecx
and ecx, 0x782
add ecx, 0x11f06
pop ecx
push esi
push edi
add esp, 4
sub esi, 0x11cd9
jmp 0x405801
pop esi
push edi
call 0x405810
add byte [0x4c43484a], bh
dec ecx
dec ebx
add esp, 4
pop edi
movzx eax, word [ebp - 0x104]
test eax, eax
jne 0x405837
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
sub ecx, edx
mov dword [ebp - 0x14e4], ecx
jmp 0x40589a
movzx eax, word [ebp - 0x1fc]
movzx ecx, word [ebp - 0x104]
cmp eax, ecx
je 0x405756
movzx edx, word [ebp - 0x1fc]
xor edx, 0x20
movzx eax, word [ebp - 0x104]
cmp edx, eax
je 0x405756
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
cmp ecx, edx
jge 0x405884
mov dword [ebp - 0x14e0], 0xffffffff
jmp 0x40588e
mov dword [ebp - 0x14e0], 1
mov eax, dword [ebp - 0x14e0]
mov dword [ebp - 0x14e4], eax
cmp dword [ebp - 0x14e4], 0
jne 0x4058e3
push ebx
push ecx
add esp, 4
and ebx, 0x6575
add ebx, 0xe8f7
pop ebx
push ebx
and ebx, 0x12061
and ebx, 0xd67a
add ebx, 0x17b50
pop ebx
push ebx
push eax
add esp, 4
add ebx, 0x17ae7
pop ebx
mov ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x6ec], ecx
jmp 0x40594b
push edi
xor edi, 0x143aa
pop edi
push esi
push ecx
add esp, 4
xor esi, 0xc879
pop esi
push edx
push edx
add esp, 4
xor edx, 0x43fe
xor edx, 0x7533
and edx, 0x594b
sub edx, 0x1497f
pop edx
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx]
mov dword [ebp - 0x4d8], eax
mov ecx, dword [ebp - 0x4d8]
cmp ecx, dword [ebp - 0xc2c]
je 0x405941
mov edx, dword [ebp - 0x4d8]
cmp dword [edx + 0x30], 0
jne 0x4056f7
mov dword [ebp - 0x6ec], 0
Function at 0x405810
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push edx
call fcn.00405708
add byte [edi + 0x3b], cl
xor eax, dword [esi + 0x4b]
dec ecx
dec esi
inc esi
dec ebp
dec edx
add esp, 4
jmp 0x405710
call 0x40571f
add byte [eax], bh
dec ecx
aaa
aaa
dec ecx
inc eax
dec ebx
inc ebx
dec edx
add esp, 4
xor edx, 0x14b9e
pop edx
lea edx, [ebp - 0x16cc]
mov dword [ebp - 0xc28], edx
mov eax, dword [ebp - 0x4d8]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc24], ecx
xor edx, edx
mov word [ebp - 0x1fc], dx
xor eax, eax
mov word [ebp - 0x104], ax
push ecx
push ecx
add esp, 4
add ecx, 0x887d
pop ecx
push eax
push ecx
add esp, 4
or eax, 0x1924
and eax, 0xa059
or eax, 0xbdf9
pop eax
push edi
or edi, 0x9a17
or edi, 0x4237
pop edi
mov ecx, dword [ebp - 0xc24]
mov dx, word [ecx]
mov word [ebp - 0xf82], dx
mov eax, dword [ebp - 0xc24]
add eax, 2
mov dword [ebp - 0xc24], eax
mov cx, word [ebp - 0xf82]
mov word [ebp - 0x1fc], cx
mov edx, dword [ebp - 0xc28]
mov ax, word [edx]
mov word [ebp - 0xf84], ax
mov ecx, dword [ebp - 0xc28]
add ecx, 2
mov dword [ebp - 0xc28], ecx
mov dx, word [ebp - 0xf84]
mov word [ebp - 0x104], dx
push ecx
and ecx, 0x782
add ecx, 0x11f06
pop ecx
push esi
push edi
add esp, 4
sub esi, 0x11cd9
jmp 0x405801
pop esi
push edi
call 0x405810
add byte [0x4c43484a], bh
dec ecx
dec ebx
add esp, 4
pop edi
movzx eax, word [ebp - 0x104]
test eax, eax
jne 0x405837
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
sub ecx, edx
mov dword [ebp - 0x14e4], ecx
jmp 0x40589a
movzx eax, word [ebp - 0x1fc]
movzx ecx, word [ebp - 0x104]
cmp eax, ecx
je 0x405756
movzx edx, word [ebp - 0x1fc]
xor edx, 0x20
movzx eax, word [ebp - 0x104]
cmp edx, eax
je 0x405756
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
cmp ecx, edx
jge 0x405884
mov dword [ebp - 0x14e0], 0xffffffff
jmp 0x40588e
mov dword [ebp - 0x14e0], 1
mov eax, dword [ebp - 0x14e0]
mov dword [ebp - 0x14e4], eax
cmp dword [ebp - 0x14e4], 0
jne 0x4058e3
push ebx
push ecx
add esp, 4
and ebx, 0x6575
add ebx, 0xe8f7
pop ebx
push ebx
and ebx, 0x12061
and ebx, 0xd67a
add ebx, 0x17b50
pop ebx
push ebx
push eax
add esp, 4
add ebx, 0x17ae7
pop ebx
mov ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x6ec], ecx
jmp 0x40594b
push edi
xor edi, 0x143aa
pop edi
push esi
push ecx
add esp, 4
xor esi, 0xc879
pop esi
push edx
push edx
add esp, 4
xor edx, 0x43fe
xor edx, 0x7533
and edx, 0x594b
sub edx, 0x1497f
pop edx
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx]
mov dword [ebp - 0x4d8], eax
mov ecx, dword [ebp - 0x4d8]
cmp ecx, dword [ebp - 0xc2c]
je 0x405941
mov edx, dword [ebp - 0x4d8]
cmp dword [edx + 0x30], 0
jne 0x4056f7
mov dword [ebp - 0x6ec], 0
Function at 0x406df3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop ecx
push edx
jmp 0x406dfe
or edx, 0xc3db
pop edx
push eax
or eax, 0x29ad
pop eax
mov edx, dword [ebp - 0x4e8]
mov dword [ebp - 0x710], edx
jmp 0x406e83

Function at 0x406e41
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop edi
push ecx
add ecx, 0x117ee
pop ecx
mov eax, dword [ebp - 0x4e8]
mov ecx, dword [eax]
mov dword [ebp - 0x4e8], ecx
mov edx, dword [ebp - 0x4e8]
cmp edx, dword [ebp - 0xc58]
je 0x406e79
mov eax, dword [ebp - 0x4e8]
cmp dword [eax + 0x30], 0
jne 0x406c44
mov dword [ebp - 0x710], 0
Function at 0x4076e1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop ebx
push ebx
call 0x4076f6
add byte [edx + 0x4f], al
aaa
inc edi
cmp dword [0x3d3f3e45], esi
add esp, 4
pop ebx
mov dword [ebp - 0x730], 0
mov eax, dword [ebp - 0x304]
mov dword [ebp - 0x1580], eax
cmp dword [ebp - 0x1580], 0
jne 0x40772a
mov ecx, dword [ebp - 0x730]
invalid

Function at 0x4076f6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop ebx
push ebx
call 0x4076f6
add byte [edx + 0x4f], al
aaa
inc edi
cmp dword [0x3d3f3e45], esi
add esp, 4
pop ebx
mov dword [ebp - 0x730], 0
mov eax, dword [ebp - 0x304]
mov dword [ebp - 0x1580], eax
cmp dword [ebp - 0x1580], 0
jne 0x40772a
mov ecx, dword [ebp - 0x730]
invalid

Function at 0x42b3f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454d50]
jne 0x42b3fe
repz ret
jmp fcn.0042b416

Function at 0x42b750
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [0x432148]
add esp, 0xc
mov ecx, eax
call dword [0x432480]
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x42b792
mov ecx, dword [esp + 8]
push ecx
call dword [0x4326fc]
add esp, 4
push 8
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0
call fcn.0042b6d0
lea ecx, [esp + 4]
call dword [0x432144]
mov ecx, dword [esp + 0x20]
lea edx, [esp]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.0042b852
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add esp, 0x18
cmp ecx, 1
je 0x42b7f6
mov eax, dword [esp]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push eax
lea ecx, [esp + 8]
call fcn.0042b520
mov eax, dword [esp]
mov ecx, dword [esp + 0xc]
push esi
add eax, 0x10
push eax
push ecx
call fcn.00413b40
mov esi, eax
mov eax, dword [esp + 0xc]
add esp, 8
test eax, eax
je 0x42b82e
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x42b82e
mov eax, dword [esp + 4]
push 4
push eax
call dword [0x432420]
add esp, 8
mov ecx, dword [esp + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42b849
mov eax, dword [esp + 8]
push eax
call dword [0x43265c]
add esp, 4
mov eax, esi
pop esi
add esp, 0x10
ret 0x10
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cd64
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 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
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 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
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 0x41cd8c
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 0x41e5a4
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 0x50ba63
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 0x41e655
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 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
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 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
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 0x50ba6a
ret
Function at 0x41eec4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x50c473
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x5262a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x5262a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x52510c]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f045
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50c47a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret