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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0x10], 1
test esi, esi
jle 0x1e05bd7d
mov edx, dword [ebp + 0xc]
sub edx, eax
mov ecx, 0x7fff
push edi
mov edi, ecx
xor di, word [edx + eax]
add word [ebp + 0x10], di
mov edi, dword [ebp + 0x10]
shr word [ebp + 0x10], 0xf
and edi, ecx
mov word [eax], di
inc eax
inc eax
dec esi
jne 0x1e05bd60
pop edi
pop esi
pop ebp
ret

Function at 0x1e063fb5
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 8], 0
jne 0x1e063fbf
xor eax, eax
ret
jmp fcn.1e063d42

Function at 0x1e064411
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 8], 0
mov ecx, dword [esp + 4]
je 0x1e064449
push 0x10
pop edx
push esi
push edi
mov eax, dword [ecx]
mov esi, eax
shr esi, 8
mov edi, eax
shl edi, 8
xor esi, edi
and esi, 0xff00ff
shl eax, 8
xor esi, eax
rol esi, 0x10
dec edx
mov dword [ecx], esi
add ecx, 4
test edx, edx
jne 0x1e064421
pop edi
pop esi
ret

Function at 0x1e066dcf
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
lea eax, [edx + 8]
mov dword [eax], ecx
xor ecx, ecx
push esi
inc ecx
push edi
mov esi, dword [eax]
mov edi, esi
shr edi, 0x1e
xor edi, esi
imul edi, edi, 0x6c078965
add edi, ecx
mov dword [eax + 4], edi
inc ecx
add eax, 4
cmp ecx, 0x270
jl 0x1e066de1
pop edi
mov dword [edx + 0x9c8], ecx
pop esi
ret

Function at 0x1e066e0a
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov ecx, dword [esp + 4]
cmp dword [ecx + 0x9c8], 0x270
jl 0x1e066ec7
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ebx, 0x7fffffff
lea edi, [ecx + esi*4 + 0x63c]
mov eax, dword [edi - 0x630]
lea edx, [ecx + esi*4 + 8]
xor eax, dword [edx]
and eax, ebx
xor eax, dword [edx]
mov ebp, eax
shr eax, 1
and ebp, 1
xor eax, dword [ebp*4 + 0x1e217700]
xor eax, dword [edi]
inc esi
cmp esi, 0xe3
mov dword [edx], eax
jl 0x1e066e29
jmp 0x1e066e87
lea edi, [ecx + esi*4 - 0x384]
mov eax, dword [edi + 0x390]
lea edx, [ecx + esi*4 + 8]
xor eax, dword [edx]
and eax, ebx
xor eax, dword [edx]
mov ebp, eax
shr eax, 1
and ebp, 1
xor eax, dword [ebp*4 + 0x1e217700]
xor eax, dword [edi]
inc esi
mov dword [edx], eax
cmp esi, 0x26f
jl 0x1e066e5d
mov eax, dword [ecx + 0x9c4]
xor eax, dword [ecx + 8]
pop edi
and eax, ebx
xor eax, dword [ecx + 0x9c4]
pop esi
mov edx, eax
and edx, 1
mov edx, dword [edx*4 + 0x1e217700]
xor edx, dword [ecx + 0x638]
shr eax, 1
xor edx, eax
pop ebp
mov dword [ecx + 0x9c4], edx
and dword [ecx + 0x9c8], 0
pop ebx
mov eax, dword [ecx + 0x9c8]
mov edx, dword [ecx + eax*4 + 8]
inc eax
mov dword [ecx + 0x9c8], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret
Function at 0x1e06cdfa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor ebx, ebx
cmp edi, ebx
je 0x1e06ceff
mov esi, dword [edi + 0x1c]
cmp esi, ebx
je 0x1e06ceff
cmp dword [edi + 0x20], ebx
je 0x1e06ceff
cmp dword [edi + 0x24], ebx
je 0x1e06ceff
push 2
mov dword [edi + 0x14], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x18], ebx
pop edx
mov dword [edi + 0x2c], edx
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
cmp eax, ebx
mov dword [esi + 0x14], ebx
jge 0x1e06ce4c
neg eax
mov dword [esi + 0x18], eax
mov ecx, dword [esi + 0x18]
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0xffffffb9
push ebx
add eax, 0x71
push ebx
mov dword [esi + 4], eax
push ebx
cmp ecx, edx
jne 0x1e06ce6c
call fcn.1e063fb5
jmp 0x1e06ce71
call fcn.1e063fc4
add esp, 0xc
mov dword [edi + 0x30], eax
push esi
mov dword [esi + 0x28], ebx
call fcn.1e06b29e
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x44]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x4c]
xor edx, edx
mov word [ecx + eax*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax + eax - 2]
push eax
push ebx
push dword [esi + 0x44]
call fcn.1e03670c
mov eax, dword [esi + 0x84]
imul eax, eax, 0xc
movzx ecx, word [eax + 0x1e19e22a]
mov dword [esi + 0x80], ecx
movzx ecx, word [eax + 0x1e19e228]
mov dword [esi + 0x8c], ecx
movzx ecx, word [eax + 0x1e19e22c]
add esp, 0x10
mov dword [esi + 0x90], ecx
movzx eax, word [eax + 0x1e19e22e]
mov dword [esi + 0x7c], eax
push 2
pop eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x48], ebx
xor eax, eax
jmp 0x1e06cf02
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x1e075e26
Capabilities:
Hash data with md5

Disassembly:
push 0x1e20be18
call fcn.1e01f5d2
pop ecx
test eax, eax
jne 0x1e075e36
ret
and dword [eax + 0xc], 0
and dword [eax + 8], 0
mov dword [eax + 0x10], 0x67452301
mov dword [eax + 0x14], 0xefcdab89
mov dword [eax + 0x18], 0x98badcfe
mov dword [eax + 0x1c], 0x10325476
ret
Function at 0x1e07e63e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edx, ebx
jne 0x1e07e65a
push ebx
call fcn.1e0185d0
pop ecx
jmp 0x1e07e6d7
mov eax, dword [ebp + 8]
push edi
cmp dword [ebp + 0x10], ebx
je 0x1e07e672
mov edi, eax
lea eax, [eax + edx - 1]
mov dword [ebp + 0xc], 1
jmp 0x1e07e67a
or dword [ebp + 0xc], 0xffffffff
lea edi, [eax + edx - 1]
cmp dword [ebp + 0x14], ebx
je 0x1e07e688
cmp byte [eax], 0x80
sbb ecx, ecx
inc ecx
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0xc]
neg ecx
cmp dword [ebp + 0x14], ebx
push esi
mov esi, eax
sete al
dec al
xor ebx, ebx
test edx, edx
jbe 0x1e07e6a9
cmp byte [esi], al
jne 0x1e07e6a9
inc ebx
add esi, ecx
cmp ebx, edx
jb 0x1e07e69e
mov esi, edx
sub esi, ebx
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
je 0x1e07e6b9
cmp esi, edx
jae 0x1e07e6b9
inc esi
cmp esi, 0xffffffe
jbe 0x1e07e6da
push 0x1e1b3f20
push dword [0x1e1f051c]
call fcn.1e0023ee
pop ecx
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
push 0xf
pop ecx
xor edx, edx
lea eax, [esi*8 + 0xe]
div ecx
push eax
call fcn.1e018589
pop ecx
cmp eax, ebx
je 0x1e07e6d3
xor ecx, ecx
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], edi
test esi, esi
jbe 0x1e07e768
lea edi, [eax + 0xc]
mov dword [ebp - 0x10], esi
cmp dword [ebp + 0x14], 0
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
je 0x1e07e72c
xor edx, 0xff
add edx, dword [ebp - 0xc]
mov esi, edx
shr esi, 8
mov dword [ebp - 0xc], esi
and edx, 0xff
shl edx, cl
add ecx, 8
or ebx, edx
cmp ecx, 0xf
jb 0x1e07e74e
mov edx, ebx
and edx, 0x7fff
inc dword [ebp - 4]
mov word [edi], dx
inc edi
inc edi
shr ebx, 0xf
sub ecx, 0xf
mov edx, dword [ebp + 0xc]
add dword [ebp - 8], edx
dec dword [ebp - 0x10]
jne 0x1e07e709
test ecx, ecx
je 0x1e07e768
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
mov word [eax + ecx*2 + 0xc], bx
cmp dword [ebp + 0x14], 0
mov ecx, dword [ebp - 4]
je 0x1e07e773
neg ecx
push eax
mov dword [eax + 8], ecx
call fcn.1e05c244
pop ecx
jmp 0x1e07e6d5
Function at 0x10001000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10014770
push 0x100065d0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x100010a3
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x100010a3
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x100010a3
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x100010a3
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x1001c000], 0
je 0x10001466
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x1001c000
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x1000145d
push esi
mov esi, dword [0x1001bffc]
mov dword [0x1001c008], eax
mov dword [0x1001bff8], eax
mov dword [0x1001bff0], eax
mov dword [0x1001c004], eax
mov dword [0x1001bfec], eax
test esi, esi
je 0x100014c6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [esp]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x100014b0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100014d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001c000], eax
je 0x100014ed
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [0x1001bff8]
push edi
test esi, esi
je 0x10001556
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call ebx
cmp dword [esi + 4], 0
jne 0x10001545
mov edx, dword [esi + 0x10]
test edx, edx
je 0x10001545
mov ecx, edx
xorps xmm0, xmm0
and ecx, 0xffff0000
movdqu xmmword [edx], xmm0
movdqu xmmword [edx + 0x10], xmm0
mov eax, dword [ecx + 8]
mov dword [edx + 0x18], eax
mov dword [ecx + 8], edx
mov dword [esi + 0x10], 0
mov edi, dword [esi]
push esi
call fcn.10002615
add esp, 4
mov esi, edi
test edi, edi
jne 0x10001500
mov esi, dword [0x1001bffc]
mov dword [0x1001bff8], 0
test esi, esi
je 0x10001585
lea ebx, [ebx]
lea eax, [ebp - 8]
push eax
push 0x20
push 0x10000
push esi
call ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x10001570
mov edi, dword [0x1001bff0]
test edi, edi
je 0x100015ab
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi + 4]
call ebx
mov esi, dword [edi]
push edi
call fcn.10002615
add esp, 4
mov edi, esi
test esi, esi
jne 0x10001595
pop edi
pop esi
mov dword [0x1001bff0], 0
xor eax, eax
mov dword [0x1001c000], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001910
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1001c004]
push edi
mov edi, ecx
test eax, eax
jne 0x10001985
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x1000192a
xor eax, eax
pop edi
ret
push esi
push 8
call fcn.10002640
mov esi, eax
add esp, 4
test esi, esi
jne 0x10001940
lea edi, [eax + 8]
jmp 0x1000195d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10001972
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.10002615
add esp, 4
pop esi
mov dword [0x1001c004], edi
mov eax, edi
mov dword [0x1001bfec], 0
pop edi
ret
mov eax, dword [0x1001bff0]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
mov dword [0x1001bff0], esi
pop esi
pop edi
ret
Function at 0x10001bd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov dword [ebp - 8], edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001c000], eax
je 0x10001bf4
mov eax, 0x10dd
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1001c004]
test eax, eax
jne 0x10001ce0
test ebx, ebx
je 0x10001c19
cmp dword [ebx], eax
jne 0x10001c23
mov dword [0x1001c004], 6
mov dword [0x1001bfec], ebx
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x18
call fcn.10002640
mov esi, eax
add esp, 4
test esi, esi
jne 0x10001c3d
lea edi, [eax + 8]
jmp 0x10001cc3
mov ecx, dword [ebp - 8]
mov edi, dword [ebx]
call fcn.10001400
movzx ecx, byte [edi + 0x17]
mov edx, eax
mov eax, dword [edi + 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x10001cb5
cmp ecx, 0x17
ja 0x10001cb5
cmp dword [edi + 0x1c], edx
jne 0x10001cb5
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push 0x40
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001c86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10001cc3
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
mov dword [esi + 8], ebx
mov dword [esi + 0x10], edi
mov dword [esi + 4], 1
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x1001bff8]
pop edi
mov dword [esi], eax
xor eax, eax
mov dword [0x1001bff8], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x1001c008], 0
mov edi, 9
jne 0x10001cc9
mov dword [0x1001c004], edi
test esi, esi
je 0x10001cd6
push esi
call fcn.10002615
add esp, 4
mov eax, edi
mov dword [0x1001bfec], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100022f0
Capabilities:
Read .ini file

Disassembly:
push str..__ini__ImmortalsConfig.ini
push 0x385
push str.Value
push 0x100145d4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp byte [0x1001c00c], 0
jne 0x1000231a
mov ecx, eax
jmp fcn.100022b0
ret
Function at 0x10002450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
sub eax, 0
je 0x1000257b
dec eax
jne 0x100025fc
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.10001450
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
mov ecx, eax
call fcn.10001910
sub esp, 0xc
mov edx, 0x10002240
mov ecx, 0x100171c4
call fcn.10001990
call fcn.100015d0
mov dword [0x1001c010], 0x772893
call fcn.10001450
call esi
mov ecx, eax
call fcn.10001910
sub esp, 0xc
mov edx, 0x10002340
mov ecx, 0x100171c0
call fcn.10001990
sub esp, 0xc
mov edx, 0x10002370
mov ecx, 0x1001c010
call fcn.10001990
call fcn.100015d0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 0xc]
push eax
push 0x40
push 4
push 0x7728da
call esi
lea eax, [ebp + 0xc]
mov dword [0x7728da], 0x909004eb
push eax
push dword [ebp + 0xc]
push 4
push 0x7728da
call esi
lea eax, [ebp + 0xc]
push eax
push 0x40
push 1
push 0x5f1460
call esi
lea eax, [ebp + 0xc]
mov byte [0x5f1460], 0xc3
push eax
push dword [ebp + 0xc]
push 1
push 0x5f1460
call esi
lea eax, [ebp + 0xc]
mov edi, 0x9453b8
push eax
push 0x40
push 1
push edi
lea ebx, [edi + 0x14]
call esi
lea eax, [ebp + 0xc]
mov byte [edi], 0x19
push eax
push dword [ebp + 0xc]
push 1
push edi
call esi
lea eax, [ebp + 0xc]
push eax
push 0x40
push 1
push ebx
call esi
lea eax, [ebp + 0xc]
mov byte [ebx], 0x19
push eax
push dword [ebp + 0xc]
push 1
push ebx
call esi
pop edi
pop ebx
mov eax, 1
pop esi
pop ebp
ret 0xc
push str..__ini__ImmortalsConfig.ini
push 0
push 0x10014604
push str.Server
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x100025b2
call fcn.10001450
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
mov ecx, eax
call fcn.10001910
mov edx, 0x100021d0
jmp 0x100025cb
call fcn.10001450
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
mov ecx, eax
call fcn.10001910
mov edx, 0x10002240
mov ecx, 0x100171c4
call fcn.10001bd0
call fcn.100015d0
call fcn.10001450
call esi
mov ecx, eax
call fcn.10001910
mov edx, 0x10002340
mov ecx, 0x100171c0
call fcn.10001bd0
call fcn.100015d0
mov eax, 1
pop esi
pop ebp
ret 0xc
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41d254
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 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
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 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
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 0x41d27c
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 0x41f3b0
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], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x118b89e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
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 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
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 0x118b8a5
ret
Function at 0x4205fc
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 word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x118cc17
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 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0x11aa5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0x11aa5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0x11a93fc]
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 0x4207e9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
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 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x118cc1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret