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

Disassembly:
push edi
sub edi, 0x3fc4
sub edi, 0xadca
pop edi
push esi
call fcn.00405640
add byte [0x45473d39], dh
inc ebx
add esp, 4
pop esi
push ecx
add ecx, 0x162ca
jmp 0x405650
add ecx, 0x349c
pop ecx
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
jmp 0x4056b9
add ebx, 0x93e5
pop ebx
push edx
push eax
add esp, 4
or edx, 0x356a
call 0x4056d9
add byte [eax + 0x36], al
dec edi
xor eax, 0x424b3a39
add esp, 4
sub edx, 0xb8e5
pop edx
movzx edx, word [ebp - 0x100]
test edx, edx
jne 0x405706
movzx eax, word [ebp - 0x1f8]
movzx ecx, word [ebp - 0x100]
sub eax, ecx
mov dword [ebp - 0x1498], eax
jmp 0x405769
movzx edx, word [ebp - 0x1f8]
movzx eax, word [ebp - 0x100]
cmp edx, eax
je 0x405625
movzx ecx, word [ebp - 0x1f8]
xor ecx, 0x20
movzx edx, word [ebp - 0x100]
cmp ecx, edx
je 0x405625
movzx eax, word [ebp - 0x1f8]
movzx ecx, word [ebp - 0x100]
cmp eax, ecx
jge 0x405753
mov dword [ebp - 0x14d8], 0xffffffff
jmp 0x40575d
mov dword [ebp - 0x14d8], 1
mov edx, dword [ebp - 0x14d8]
mov dword [ebp - 0x1498], edx
cmp dword [ebp - 0x1498], 0
jne 0x4057b2
push eax
jmp 0x40577c
call 0x40578a
add byte [ebx], dh
cmp al, byte [eax + 0x41]
dec esi
dec ecx
inc ebx
add esp, 4
pop eax
push edx
push eax
add esp, 4
call 0x4057a0
add byte [ebx + 0x38], al
dec eax
dec ecx
inc edi
dec esp
add esp, 4
pop edx
mov eax, dword [ebp - 0x4d4]
mov dword [ebp - 0x2e0], eax
jmp 0x40581a
push esi
push ebx
add esp, 4
xor esi, 0x482b
add esi, 0x1490
sub esi, 0x17763
pop esi
push ecx
add ecx, 0x118ac
and ecx, 0x159da
or ecx, 0xa458
and ecx, 0x1768a
pop ecx
mov ecx, dword [ebp - 0x4d4]
mov edx, dword [ecx]
mov dword [ebp - 0x4d4], edx
mov eax, dword [ebp - 0x4d4]
cmp eax, dword [ebp - 0xc20]
je 0x405810
mov ecx, dword [ebp - 0x4d4]
cmp dword [ecx + 0x30], 0
jne 0x4055c6
mov dword [ebp - 0x2e0], 0
Function at 0x405b50
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
leave
aad 0
add byte [ecx + 0x3661eb], al
add byte [ebx + 0x57], bl
push edx
add esp, 4
add edi, 0x47bd
xor edi, 0x267a
jmp 0x405b74
pop edi
movzx eax, word [ebp - 0x104]
test eax, eax
jne 0x405b98
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
sub ecx, edx
mov dword [ebp - 0x14e4], ecx
jmp 0x405bfb
movzx eax, word [ebp - 0x1fc]
invalid
Function at 0x40781b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push eax
add esp, 4
add esi, 0x19b5
sub esi, 0x136e9
sub esi, 0xde96
and esi, 0xf659
pop esi
push ebx
sub ebx, 0x7975
xor ebx, 0x5869
or ebx, 0x1750c
pop ebx
lea eax, [ebp - 0x1628]
mov dword [ebp - 0xc64], eax
mov ecx, dword [ebp - 0x4ec]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xc60], edx
xor eax, eax
mov word [ebp - 0x20c], ax
xor ecx, ecx
mov word [ebp - 0x40], cx
push edx
add edx, 0x8223
call fcn.0040781b
add byte [edi + 0x50], al
cmp al, 0x44
dec ebx
dec ebp
dec esi
cmp eax, 0x4c4833d
add esp, 4
add esp, 4
add edx, 0xe195
call 0x407833
add byte [ebx], bh
inc eax
aaa
dec eax
cmp edi, dword [edi]
inc ebx
inc edx
aaa
add esp, 4
pop edx
mov edx, dword [ebp - 0xc60]
mov ax, word [edx]
mov word [ebp - 0xf92], ax
mov ecx, dword [ebp - 0xc60]
add ecx, 2
mov dword [ebp - 0xc60], ecx
mov dx, word [ebp - 0xf92]
mov word [ebp - 0x20c], dx
mov eax, dword [ebp - 0xc64]
mov cx, word [eax]
mov word [ebp - 0xf94], cx
mov edx, dword [ebp - 0xc64]
add edx, 2
mov dword [ebp - 0xc64], edx
mov ax, word [ebp - 0xf94]
mov word [ebp - 0x40], ax
push edi
jmp 0x407898
or edi, 0x34c
pop edi
push edi
and edi, 0x178f
call 0x4078b6
add byte [ebp + 0x4e], cl
cmp al, 0x4a
cmp al, 0x50
cmp dh, byte [edx]
add esp, 4
or edi, 0x263
pop edi
movzx ecx, word [ebp - 0x40]
test ecx, ecx
jne 0x4078dd
movzx edx, word [ebp - 0x20c]
movzx eax, word [ebp - 0x40]
sub edx, eax
mov dword [ebp - 0x157c], edx
jmp 0x407937
movzx ecx, word [ebp - 0x20c]
movzx edx, word [ebp - 0x40]
cmp ecx, edx
je 0x407805
movzx eax, word [ebp - 0x20c]
xor eax, 0x20
movzx ecx, word [ebp - 0x40]
cmp eax, ecx
je 0x407805
movzx edx, word [ebp - 0x20c]
movzx eax, word [ebp - 0x40]
cmp edx, eax
jge 0x407921
mov dword [ebp - 0x1578], 0xffffffff
jmp 0x40792b
mov dword [ebp - 0x1578], 1
mov ecx, dword [ebp - 0x1578]
mov dword [ebp - 0x157c], ecx
cmp dword [ebp - 0x157c], 0
jne 0x407980
push ecx
push ebx
add esp, 4
and ecx, 0x12af1
or ecx, 0x1d0
add ecx, 0xdda8
pop ecx
push ecx
xor ecx, 0xc58f
or ecx, 0x13d63
sub ecx, 0x156fb
or ecx, 0x12d22
pop ecx
mov edx, dword [ebp - 0x4ec]
mov dword [ebp - 0x2a8], edx
jmp 0x4079e8
push esi
jmp 0x407987
add esi, 0x146cd
pop esi
push edi
push ebx
add esp, 4
sub edi, 0x1753d
sub edi, 0x127f4
sub edi, 0xe16d
pop edi
push edi
push eax
add esp, 4
add edi, 0x12f14
pop edi
mov eax, dword [ebp - 0x4ec]
mov ecx, dword [eax]
mov dword [ebp - 0x4ec], ecx
mov edx, dword [ebp - 0x4ec]
cmp edx, dword [ebp - 0xc68]
je 0x4079de
mov eax, dword [ebp - 0x4ec]
cmp dword [eax + 0x30], 0
jne 0x4077a9
mov dword [ebp - 0x2a8], 0
Function at 0x407833
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push eax
add esp, 4
add esi, 0x19b5
sub esi, 0x136e9
sub esi, 0xde96
and esi, 0xf659
pop esi
push ebx
sub ebx, 0x7975
xor ebx, 0x5869
or ebx, 0x1750c
pop ebx
lea eax, [ebp - 0x1628]
mov dword [ebp - 0xc64], eax
mov ecx, dword [ebp - 0x4ec]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xc60], edx
xor eax, eax
mov word [ebp - 0x20c], ax
xor ecx, ecx
mov word [ebp - 0x40], cx
push edx
add edx, 0x8223
call fcn.0040781b
add byte [edi + 0x50], al
cmp al, 0x44
dec ebx
dec ebp
dec esi
cmp eax, 0x4c4833d
add esp, 4
add esp, 4
add edx, 0xe195
call 0x407833
add byte [ebx], bh
inc eax
aaa
dec eax
cmp edi, dword [edi]
inc ebx
inc edx
aaa
add esp, 4
pop edx
mov edx, dword [ebp - 0xc60]
mov ax, word [edx]
mov word [ebp - 0xf92], ax
mov ecx, dword [ebp - 0xc60]
add ecx, 2
mov dword [ebp - 0xc60], ecx
mov dx, word [ebp - 0xf92]
mov word [ebp - 0x20c], dx
mov eax, dword [ebp - 0xc64]
mov cx, word [eax]
mov word [ebp - 0xf94], cx
mov edx, dword [ebp - 0xc64]
add edx, 2
mov dword [ebp - 0xc64], edx
mov ax, word [ebp - 0xf94]
mov word [ebp - 0x40], ax
push edi
jmp 0x407898
or edi, 0x34c
pop edi
push edi
and edi, 0x178f
call 0x4078b6
add byte [ebp + 0x4e], cl
cmp al, 0x4a
cmp al, 0x50
cmp dh, byte [edx]
add esp, 4
or edi, 0x263
pop edi
movzx ecx, word [ebp - 0x40]
test ecx, ecx
jne 0x4078dd
movzx edx, word [ebp - 0x20c]
movzx eax, word [ebp - 0x40]
sub edx, eax
mov dword [ebp - 0x157c], edx
jmp 0x407937
movzx ecx, word [ebp - 0x20c]
movzx edx, word [ebp - 0x40]
cmp ecx, edx
je 0x407805
movzx eax, word [ebp - 0x20c]
xor eax, 0x20
movzx ecx, word [ebp - 0x40]
cmp eax, ecx
je 0x407805
movzx edx, word [ebp - 0x20c]
movzx eax, word [ebp - 0x40]
cmp edx, eax
jge 0x407921
mov dword [ebp - 0x1578], 0xffffffff
jmp 0x40792b
mov dword [ebp - 0x1578], 1
mov ecx, dword [ebp - 0x1578]
mov dword [ebp - 0x157c], ecx
cmp dword [ebp - 0x157c], 0
jne 0x407980
push ecx
push ebx
add esp, 4
and ecx, 0x12af1
or ecx, 0x1d0
add ecx, 0xdda8
pop ecx
push ecx
xor ecx, 0xc58f
or ecx, 0x13d63
sub ecx, 0x156fb
or ecx, 0x12d22
pop ecx
mov edx, dword [ebp - 0x4ec]
mov dword [ebp - 0x2a8], edx
jmp 0x4079e8
push esi
jmp 0x407987
add esi, 0x146cd
pop esi
push edi
push ebx
add esp, 4
sub edi, 0x1753d
sub edi, 0x127f4
sub edi, 0xe16d
pop edi
push edi
push eax
add esp, 4
add edi, 0x12f14
pop edi
mov eax, dword [ebp - 0x4ec]
mov ecx, dword [eax]
mov dword [ebp - 0x4ec], ecx
mov edx, dword [ebp - 0x4ec]
cmp edx, dword [ebp - 0xc68]
je 0x4079de
mov eax, dword [ebp - 0x4ec]
cmp dword [eax + 0x30], 0
jne 0x4077a9
mov dword [ebp - 0x2a8], 0
Function at 0x4078b6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push eax
add esp, 4
add esi, 0x19b5
sub esi, 0x136e9
sub esi, 0xde96
and esi, 0xf659
pop esi
push ebx
sub ebx, 0x7975
xor ebx, 0x5869
or ebx, 0x1750c
pop ebx
lea eax, [ebp - 0x1628]
mov dword [ebp - 0xc64], eax
mov ecx, dword [ebp - 0x4ec]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xc60], edx
xor eax, eax
mov word [ebp - 0x20c], ax
xor ecx, ecx
mov word [ebp - 0x40], cx
push edx
add edx, 0x8223
call fcn.0040781b
add byte [edi + 0x50], al
cmp al, 0x44
dec ebx
dec ebp
dec esi
cmp eax, 0x4c4833d
add esp, 4
add esp, 4
add edx, 0xe195
call 0x407833
add byte [ebx], bh
inc eax
aaa
dec eax
cmp edi, dword [edi]
inc ebx
inc edx
aaa
add esp, 4
pop edx
mov edx, dword [ebp - 0xc60]
mov ax, word [edx]
mov word [ebp - 0xf92], ax
mov ecx, dword [ebp - 0xc60]
add ecx, 2
mov dword [ebp - 0xc60], ecx
mov dx, word [ebp - 0xf92]
mov word [ebp - 0x20c], dx
mov eax, dword [ebp - 0xc64]
mov cx, word [eax]
mov word [ebp - 0xf94], cx
mov edx, dword [ebp - 0xc64]
add edx, 2
mov dword [ebp - 0xc64], edx
mov ax, word [ebp - 0xf94]
mov word [ebp - 0x40], ax
push edi
jmp 0x407898
or edi, 0x34c
pop edi
push edi
and edi, 0x178f
call 0x4078b6
add byte [ebp + 0x4e], cl
cmp al, 0x4a
cmp al, 0x50
cmp dh, byte [edx]
add esp, 4
or edi, 0x263
pop edi
movzx ecx, word [ebp - 0x40]
test ecx, ecx
jne 0x4078dd
movzx edx, word [ebp - 0x20c]
movzx eax, word [ebp - 0x40]
sub edx, eax
mov dword [ebp - 0x157c], edx
jmp 0x407937
movzx ecx, word [ebp - 0x20c]
movzx edx, word [ebp - 0x40]
cmp ecx, edx
je 0x407805
movzx eax, word [ebp - 0x20c]
xor eax, 0x20
movzx ecx, word [ebp - 0x40]
cmp eax, ecx
je 0x407805
movzx edx, word [ebp - 0x20c]
movzx eax, word [ebp - 0x40]
cmp edx, eax
jge 0x407921
mov dword [ebp - 0x1578], 0xffffffff
jmp 0x40792b
mov dword [ebp - 0x1578], 1
mov ecx, dword [ebp - 0x1578]
mov dword [ebp - 0x157c], ecx
cmp dword [ebp - 0x157c], 0
jne 0x407980
push ecx
push ebx
add esp, 4
and ecx, 0x12af1
or ecx, 0x1d0
add ecx, 0xdda8
pop ecx
push ecx
xor ecx, 0xc58f
or ecx, 0x13d63
sub ecx, 0x156fb
or ecx, 0x12d22
pop ecx
mov edx, dword [ebp - 0x4ec]
mov dword [ebp - 0x2a8], edx
jmp 0x4079e8
push esi
jmp 0x407987
add esi, 0x146cd
pop esi
push edi
push ebx
add esp, 4
sub edi, 0x1753d
sub edi, 0x127f4
sub edi, 0xe16d
pop edi
push edi
push eax
add esp, 4
add edi, 0x12f14
pop edi
mov eax, dword [ebp - 0x4ec]
mov ecx, dword [eax]
mov dword [ebp - 0x4ec], ecx
mov edx, dword [ebp - 0x4ec]
cmp edx, dword [ebp - 0xc68]
je 0x4079de
mov eax, dword [ebp - 0x4ec]
cmp dword [eax + 0x30], 0
jne 0x4077a9
mov dword [ebp - 0x2a8], 0
Function at 0x401f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401f1b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401f52
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401f4e
jmp 0x401f40
cmp esi, eax
jae 0x401f52
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401f40
cmp esi, eax
jb 0x401f59
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4043b0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x58bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x566cf0
push eax
mov esi, ecx
call fcn.005139e9
mov ebx, eax
xor eax, eax
add esp, 8
cmp ebx, eax
jne 0x4043f0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005132f8
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [ebp - 0x808], eax
push edi
jmp 0x404420
push ebx
push 0x800
lea eax, [ebp - 0x804]
push 1
push eax
call fcn.00513c4a
mov edi, eax
add dword [ebp - 0x808], edi
lea ecx, [ebp - 0x804]
push ecx
mov ecx, edi
call fcn.00404150
add esp, 0x14
cmp edi, 0x800
jge 0x404420
push ebx
call fcn.00513cd4
add esp, 4
mov ecx, esi
call fcn.00404280
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x808]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005132f8
mov esp, ebp
pop ebp
ret
Function at 0x404730
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538638
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x58bcc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx - 0xc], 0
jne 0x40479b
mov dword [ebp - 4], 0xffffffff
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404789
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x104
or eax, edx
jge 0x4047bf
push 0x104
lea ecx, [ebp + 8]
call fcn.004024d0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.005134e0
add esp, 8
test eax, eax
js 0x404863
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x404863
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404812
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
jmp 0x404770
mov ecx, dword [ebp + 8]
push 0x5c
push ecx
call fcn.005140bc
add esp, 8
test eax, eax
jne 0x404829
or eax, 0xffffffff
jmp 0x40482e
sub eax, dword [ebp + 8]
sar eax, 1
push ecx
mov edx, esp
mov dword [ebp - 0x10], esp
push eax
push edx
lea ecx, [ebp + 8]
call fcn.00405710
mov ecx, esi
call fcn.00404730
mov eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
jmp 0x404770
push 0x80070057
call fcn.004026c0
int3
Function at 0x407d10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539003
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x58bcc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004161c1
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [esi], vtable.CMemDCk.0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], vtable.CBitmap.0
mov byte [ebp - 4], 1
lea edi, [esi + 0x20]
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
mov dword [esi + 0x30], eax
cmp eax, ecx
je 0x407de6
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.00416793
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
lea ebx, [esi + 0x10]
push eax
mov ecx, ebx
call fcn.00416a67
test ebx, ebx
je 0x407dc5
mov ebx, dword [ebx + 4]
mov ecx, dword [esi + 4]
push ebx
push ecx
call fcn.00416af8
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00416343
jmp 0x407df8
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x58bcc0]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x7c]
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx]
dec eax
mov dword [esp + 8], ecx
fild dword [esp + 8]
mov dword [esp + 0xc], eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebx + 4]
fidiv dword [esp + 0xc]
mov dword [esp + 0x10], edx
mov edx, dword [ebx]
push esi
push edi
mov dword [esp + 0x24], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0xc]
xor edi, edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], edi
fstp dword [esp + 0x10]
test eax, eax
jle 0x408955
fld dword [esp + 0x10]
fild dword [esp + 0xc]
fmul st(1)
call fcn.00518c40
lea edx, [edi + 1]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
mov esi, eax
add esi, dword [ebx]
fmul st(1)
mov dword [esp + 0x24], esi
call fcn.00518c40
mov ecx, dword [esp + 0x14]
add eax, dword [ebx]
dec ecx
mov dword [esp + 0x2c], eax
cmp edi, ecx
jne 0x4088b1
mov eax, dword [ebx + 8]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
cmp eax, ecx
jl 0x408941
mov edx, dword [esp + 0x28]
fstp st(0)
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
cmp esi, ecx
jge 0x4088e1
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 8]
cmp eax, ecx
jle 0x4088f0
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0xc]
test edx, edx
js 0x408969
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x7c]
cmp edx, eax
jge 0x408969
test edi, edi
js 0x408969
cmp edi, eax
jge 0x408969
mov eax, dword [ecx + 0x78]
mov esi, dword [eax + edi*4 + 4]
mov eax, dword [eax + edi*4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x16c]
push esi
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push eax
call edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 8]
je 0x408955
fld dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov dword [esp + 0xc], edi
cmp edi, dword [esp + 0x14]
jl 0x408876
fstp st(0)
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005132f8
mov esp, ebp
pop ebp
ret 0xc
call fcn.00414256
int3
Function at 0x40bbb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x40bbb7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40bc8d
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 + 0x568d48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568d48]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568d48]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568d48]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568d48]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568d48]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568d48]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568d48]
add ecx, 8
sub edx, 8
dec esi
jne 0x40bbd0
pop edi
test edx, edx
je 0x40bcaa
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x568d48]
inc ecx
dec edx
jne 0x40bc91
not eax
pop esi
ret

Function at 0x40c430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x40c466
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c45c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x40c477
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.005186a0
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret

Function at 0x40c4a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40c4d3
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c4ce
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x40c4fe
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40c4e5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x10]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.005186a0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40c513
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40c50d
cmp byte [esi + 8], 0
je 0x40c50d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret