joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101c8d60
Capabilities:
Encode data using xor

Disassembly:
push ss
mov dl, 0x8d
or al, 0x31
mul ecx
mov ecx, edi
shr edx, 4
imul eax, edx, 0x17
sub ecx, eax
sub ecx, ebx
movzx eax, byte [esp + ecx + 0x26]
mov ecx, dword [esp + 0x14]
xor al, byte [ecx + esi]
mov ecx, dword [esp + 0x7c]
mov byte [esi + 2], al
mov eax, 0xb21642c9
lea ecx, [ecx + esi]
mul ecx
mov ecx, edi
shr edx, 4
imul eax, edx, 0x17
sub ecx, eax
sub ecx, ebx
movzx eax, byte [esp + ecx + 0x27]
daa
mov ecx, dword [esp + 0x74]
xor al, byte [ecx + esi]
mov ecx, dword [esp + 0x6c]
mov byte [esi + 3], al
mov eax, 0xb21642c9
leave
inc edx
push ss
mov dl, 0x8d
or al, 0x31
mul ecx
mov ecx, edi
shr edx, 4
imul eax, edx, 0x17
sub ecx, eax
sub ecx, ebx
movzx eax, byte [esp + ecx + 0x28]
mov ecx, dword [esp + 0x80]
xor al, byte [ecx + esi]
mov ecx, dword [esp + 0x40]
mov byte [esi + 4], al
mov eax, 0xb21642c9
lea ecx, [ecx + esi]
mul ecx
mov ecx, edi
lea esi, [esi + 6]
shr edx, 4
add edi, 6
imul eax, edx, 0x17
sub ecx, eax
sub ecx, ebx
movzx eax, byte [esp + ecx + 0x29]
mov ecx, dword [esp + 0x44]
xor al, byte [ecx + esi - 6]
mov byte [esi - 1], al
cmp edi, 0xcfc00
jb 0x101c8cd3
mov ebp, dword [esp + 0x48]
mov eax, dword [ebp + 0x3c]
mov ecx, dword [eax + ebp + 0x50]
movsx eax, byte [esp + 0x90]
shl eax, 3
push eax
push 0x3000
push ecx
push 0
call dword [esp + 0x28]
mov edi, eax
test edi, edi
je 0x101c9017
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
mov dword [esp + 0x1c], ebx
movzx eax, word [ebx + 0x14]
lea ecx, [ebx + 0x18]
mov edx, dword [ebx + 0x54]
add ecx, eax
mov eax, edi
mov dword [esp + 0x18], ecx
sub eax, dword [ebx + 0x34]
mov dword [esp + 0x40], eax
mov dword [ebx + 0x34], edi
test edx, edx
je 0x101c8e40
mov esi, ebp
mov ecx, edi
sub esi, edi
nop
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x101c8e30
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0xa4]
mov edx, dword [ebx + 0xa0]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x80]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x84]
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], eax
cmp ax, word [ebx + 6]
jae 0x101c9017
lea esi, [ecx + 0xc]
mov ecx, dword [esi]
cmp edx, ecx
jb 0x101c8e9c
mov eax, dword [esi - 4]
add eax, ecx
cmp edx, eax
jae 0x101c8e9c
lea eax, [esi - 0xc]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x18]
cmp edx, ecx
jb 0x101c8eb4
mov eax, dword [esi - 4]
add eax, ecx
cmp edx, eax
jae 0x101c8eb4
lea eax, [esi - 0xc]
mov dword [esp + 0x10], eax
mov ebx, dword [esi + 8]
add ecx, edi
mov edx, dword [esi + 4]
add ebx, ebp
test edx, edx
je 0x101c8ed0
sub ebx, ecx
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x101c8ec4
mov ebx, dword [esp + 0x1c]
add esi, 0x28
mov edx, dword [esp + 0x3c]
inc edx
mov dword [esp + 0x3c], edx
movzx eax, word [ebx + 6]
cmp edx, eax
mov edx, dword [esp + 0x44]
jl 0x101c8e86
mov eax, dword [esp + 0x10]
test eax, eax
je 0x101c9017
xor edx, edx
cmp dword [esp + 0x20], edx
jbe 0x101c8f58
Function at 0x101c8d70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ss
mov dl, 0x8d
or al, 0x31
mul ecx
mov ecx, edi
shr edx, 4
imul eax, edx, 0x17
sub ecx, eax
sub ecx, ebx
movzx eax, byte [esp + ecx + 0x26]
mov ecx, dword [esp + 0x14]
xor al, byte [ecx + esi]
mov ecx, dword [esp + 0x7c]
mov byte [esi + 2], al
mov eax, 0xb21642c9
lea ecx, [ecx + esi]
mul ecx
mov ecx, edi
shr edx, 4
imul eax, edx, 0x17
sub ecx, eax
sub ecx, ebx
movzx eax, byte [esp + ecx + 0x27]
daa
mov ecx, dword [esp + 0x74]
xor al, byte [ecx + esi]
mov ecx, dword [esp + 0x6c]
mov byte [esi + 3], al
mov eax, 0xb21642c9
leave
inc edx
push ss
mov dl, 0x8d
or al, 0x31
mul ecx
mov ecx, edi
shr edx, 4
imul eax, edx, 0x17
sub ecx, eax
sub ecx, ebx
movzx eax, byte [esp + ecx + 0x28]
mov ecx, dword [esp + 0x80]
xor al, byte [ecx + esi]
mov ecx, dword [esp + 0x40]
mov byte [esi + 4], al
mov eax, 0xb21642c9
lea ecx, [ecx + esi]
mul ecx
mov ecx, edi
lea esi, [esi + 6]
shr edx, 4
add edi, 6
imul eax, edx, 0x17
sub ecx, eax
sub ecx, ebx
movzx eax, byte [esp + ecx + 0x29]
mov ecx, dword [esp + 0x44]
xor al, byte [ecx + esi - 6]
mov byte [esi - 1], al
cmp edi, 0xcfc00
jb 0x101c8cd3
mov ebp, dword [esp + 0x48]
mov eax, dword [ebp + 0x3c]
mov ecx, dword [eax + ebp + 0x50]
movsx eax, byte [esp + 0x90]
shl eax, 3
push eax
push 0x3000
push ecx
push 0
call dword [esp + 0x28]
mov edi, eax
test edi, edi
je 0x101c9017
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
mov dword [esp + 0x1c], ebx
movzx eax, word [ebx + 0x14]
lea ecx, [ebx + 0x18]
mov edx, dword [ebx + 0x54]
add ecx, eax
mov eax, edi
mov dword [esp + 0x18], ecx
sub eax, dword [ebx + 0x34]
mov dword [esp + 0x40], eax
mov dword [ebx + 0x34], edi
test edx, edx
je 0x101c8e40
mov esi, ebp
mov ecx, edi
sub esi, edi
nop
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x101c8e30
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0xa4]
mov edx, dword [ebx + 0xa0]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x80]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x84]
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], eax
cmp ax, word [ebx + 6]
jae 0x101c9017
lea esi, [ecx + 0xc]
mov ecx, dword [esi]
cmp edx, ecx
jb 0x101c8e9c
mov eax, dword [esi - 4]
add eax, ecx
cmp edx, eax
jae 0x101c8e9c
lea eax, [esi - 0xc]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x18]
cmp edx, ecx
jb 0x101c8eb4
mov eax, dword [esi - 4]
add eax, ecx
cmp edx, eax
jae 0x101c8eb4
lea eax, [esi - 0xc]
mov dword [esp + 0x10], eax
mov ebx, dword [esi + 8]
add ecx, edi
mov edx, dword [esi + 4]
add ebx, ebp
test edx, edx
je 0x101c8ed0
sub ebx, ecx
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x101c8ec4
mov ebx, dword [esp + 0x1c]
add esi, 0x28
mov edx, dword [esp + 0x3c]
inc edx
mov dword [esp + 0x3c], edx
movzx eax, word [ebx + 6]
cmp edx, eax
mov edx, dword [esp + 0x44]
jl 0x101c8e86
mov eax, dword [esp + 0x10]
test eax, eax
je 0x101c9017
xor edx, edx
cmp dword [esp + 0x20], edx
jbe 0x101c8f58
Function at 0x101c91d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
xor esi, esi
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
add edx, edi
mov ebx, dword [eax + 0x18]
add ecx, edi
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x24]
add edx, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
test ebx, ebx
je 0x101c9236
mov edx, dword [ecx + esi*4]
xor eax, eax
mov cl, byte [edx + edi]
add edx, edi
test cl, cl
je 0x101c9229
movzx ecx, cl
lea edx, [edx + 1]
or ecx, 0x60
add eax, ecx
mov cl, byte [edx]
add eax, eax
test cl, cl
jne 0x101c9216
cmp eax, ebp
je 0x101c9240
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, ebx
jb 0x101c9208
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x101cb700
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x101cbaf0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x101cbb05
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101cbb17
movzx eax, ax
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x10]
call fcn.101cc190
push 0x10237728
lea eax, [ebp - 0x10]
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x101d0920
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x101d0a1b
mov eax, dword [ebp - 0x114]
sub eax, 5
je 0x101d09a2
sub eax, 1
jne 0x101d0996
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x101d097e
sub eax, 1
jne 0x101d0996
mov dword [0x1025c594], 4
jmp 0x101d09c0
mov dword [0x1025c594], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov dword [0x1025c594], 6
jmp 0x101d09c0
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x101d0a11
sub eax, 1
je 0x101d09f9
sub eax, 1
je 0x101d09e1
cmp dword [0x1025c594], 4
jl 0x101d0988
call fcn.101cb5d0
cmp dword [0x1025c594], 6
jl 0x101d0988
call fcn.101db1b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov dword [0x1025c594], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x1025c594], 1
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov dword [0x1025c594], 0
lea ecx, [ebp - 0x124]
call fcn.101cc1d0
push 0x102379b4
lea eax, [ebp - 0x124]
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x101d2d10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor edx, edx
xor ecx, eax
imul eax, ecx, 0x1000193
div dword [esi]
mov eax, dword [esi + 8]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x101d2d6b
mov ecx, dword [edi]
lea esp, [esp]
cmp dword [eax + 4], ecx
je 0x101d2d73
mov eax, dword [eax]
test eax, eax
jne 0x101d2d60
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x101d2d6d
mov ecx, dword [eax + 8]
pop edi
mov dword [edx], ecx
pop esi
pop ebp
ret 8
Function at 0x16c3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.016c378f
jae 0x16c370e
xor ecx, ecx
call fcn.016c378f
jae 0x16c373d
xor eax, eax
call fcn.016c378f
jae 0x16c374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.016c378f
adc al, al
jae 0x16c372f
jne 0x16c3779
stosb byte es:[edi], al
jmp 0x16c3711
call fcn.016c379b
sub ecx, ebx
jne 0x16c3756
call fcn.016c3799
jmp 0x16c3775
lodsb al, byte [esi]
shr eax, 1
je 0x16c3783
adc ecx, ecx
jmp 0x16c3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.016c3799
cmp eax, 0x7d00
jae 0x16c3772
cmp ah, 5
jae 0x16c3773
cmp eax, 0x7f
ja 0x16c3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x16c3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x1707058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.017071a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x170707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x170706a
add dl, dl
jne 0x1707089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17070dc
xor eax, eax
add dl, dl
jne 0x1707096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x170717d
add dl, dl
jne 0x17070a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17070b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17070bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17070c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x17070d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1707075
mov eax, 1
add dl, dl
jne 0x17070ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17070f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17070e1
sub eax, ebx
mov ebx, 1
jne 0x1707128
mov ecx, 1
add dl, dl
jne 0x170710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1707119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1707105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1707075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x170713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x170714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1707136
cmp eax, 0x7d00
jae 0x170716d
cmp eax, 0x500
jb 0x1707168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1707075
cmp eax, 0x7f
ja 0x1707170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1707075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x170719e
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 0x1707075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x403594
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41c674
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 0x41c6a5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c68d
add dl, dl
jne 0x41c6b0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c701
xor eax, eax
add dl, dl
jne 0x41c6bd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c79e
add dl, dl
jne 0x41c6cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6d7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6e2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6ed
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41c6f7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41c69c
mov eax, 1
add dl, dl
jne 0x41c70f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c71a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c706
sub eax, ebx
mov ebx, 1
jne 0x41c74d
mov ecx, 1
add dl, dl
jne 0x41c733
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c73e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c72a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41c764
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c76f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c75b
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 0x41c69c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41c7bf
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 0x41c69c
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 0x41d33c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d34f
add esp, 0xfffffff0
call fcn.00403d6c
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403af4
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d375
cmp dword [esi + 0x58], 0x40
jb 0x41d55b
jmp 0x41d37b
jl 0x41d55b
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.00406e44
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041cef4
cmp word [ebx + 0xc], 0x5a4d
jne 0x41d55b
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41d55b
cmp ecx, 0x10000
jge 0x41d55b
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d3d6
cmp eax, dword [esi + 0x58]
ja 0x41d55b
jmp 0x41d3dc
jg 0x41d55b
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.00406e44
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041cef4
cmp dword [ebx + 0x4c], 0x4550
jne 0x41d55b
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041cef4
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41d493
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d457
cmp eax, dword [esi + 0x58]
ja 0x41d4e4
jmp 0x41d45d
jg 0x41d4e4
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041cef4
mov byte [ebx + 4], 1
jmp 0x41d4e4
cmp ax, 0x14c
jne 0x41d4e4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d4b4
cmp eax, dword [esi + 0x58]
ja 0x41d4e4
jmp 0x41d4b6
jg 0x41d4e4
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041cef4
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41d55b
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d515
cmp eax, dword [esi + 0x58]
ja 0x41d55b
jmp 0x41d517
jg 0x41d55b
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x43be0c]
call fcn.00405b38
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041cef4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41d572
call fcn.00403dc4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41e270
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 0x43d72f
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 0x41e321
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 0x41e30a
test esi, esi
jbe 0x41e321
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408868
test eax, eax
jne 0x41e2fc
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 0x41e321
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e2d9
jmp 0x41e321
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e321
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 0x43d736
ret
Function at 0x41eb80
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 0x43e12f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404c94
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ebbb
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ebd4
lea eax, [ebp - 0x10]
mov edx, dword [0x453188]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404cf4
jmp 0x41ebe7
lea eax, [ebp - 0x10]
mov edx, dword [0x453188]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404cf4
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ebf3
adc edx, 0
mov edx, dword [edx*4 + 0x451ca8]
call fcn.00404ee4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404ec8
push eax
call fcn.00406ab8
mov esi, eax
cmp esi, 0xffffffff
je 0x41ed01
mov eax, 0x40
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ecf4
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d58
mov eax, edi
call fcn.00403270
mov eax, 0x18
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ecf4
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ecf4
cmp dx, 0x150
ja 0x41ecf4
mov eax, edi
call fcn.00403270
mov eax, 0xe0
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ecf4
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.00404cd0
mov eax, edi
call fcn.00403270
push esi
call fcn.00406a70
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00404ff0
jne 0x41ed19
inc ebx
cmp ebx, 0x19
jne 0x41ebad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e136
lea eax, [ebp - 0x10]
call fcn.00404c94
ret