joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b85c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x44f244]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x43dbb8]
mov ecx, dword [0x44f24c]
mov dword [0x44f244], eax
movzx eax, al
add eax, dword [0x44f248]
imul eax, eax, 0x8088405
inc eax
mov dword [0x44f248], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x43dbb8]
mov eax, dword [esp + 4]
mov dword [0x44f24c], ecx
ret 4

Function at 0x40b8f9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040b8b6
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040ddb0
add esp, 0xc
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040b83c
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040b85c
inc esi
cmp esi, 0xc
jl 0x40b91b
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x43e10c]
test byte [eax + 0x40], 2
movzx eax, byte [0x44e177]
jne 0x40b956
movzx eax, byte [0x44e17f]
movzx ecx, cx
cmp ecx, eax
je 0x40b962
or eax, 0xffffffff
jmp 0x40b9a7
mov ecx, dword [0x44e120]
mov eax, ecx
cdq
cmp edx, dword [0x43e0ec]
push edi
jl 0x40b984
mov edx, dword [0x43e0e8]
jg 0x40b980
cmp eax, edx
jbe 0x40b984
mov edi, edx
jmp 0x40b986
mov edi, ecx
mov esi, dword [0x44e11c]
jmp 0x40b9a0
dec edi
call fcn.0040b83c
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040b85c
inc esi
test edi, edi
jne 0x40b98e
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40c744
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
test eax, eax
jl 0x40c776
cmp dword [ebp - 4], edi
jne 0x40c7b7
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x40c7b7
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40c763
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40c763
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x40c80d
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41de38
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x40c804
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x40c7fb
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x40cfcb
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x21], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.0040cf64
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x40d032
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0xc], edi
jne 0x40d0b4
cmp dword [ebp + 0xc], edi
je 0x40d0d7
cmp dword [esi + 0x14], edi
jne 0x40d0d7
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x40d0d7
push eax
mov ecx, esi
call fcn.0040cc3f
mov esi, eax
cmp esi, edi
je 0x40d0d7
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0040d5eb
pop ecx
jmp 0x40d0d7
cmp eax, edi
je 0x40d0ca
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x1c], 0x64
jbe 0x40d0d7
mov ecx, esi
call fcn.0040c949
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40d0de
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x41de28
push 1
xor ebx, ebx
push ebx
push 0x41ded8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d1af
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41dec8
push eax
call dword [ecx]
test eax, eax
jl 0x40d1a6
cmp byte [ebp + 8], bl
je 0x40d131
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x40d14e
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x40d160
push 0x41d41c
jmp 0x40d163
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40d178
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x40d189
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40d19d
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x40d1c9
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x412715
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4223e4]
jne 0x41271f
repz ret
jmp fcn.004174b5
Function at 0x418ad7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00412796
and dword [ebp - 4], 0
cmp dword [0x44fcac], 0
mov ebx, eax
jne 0x418b88
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x418c39
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x418c39
push eax
call fcn.00412724
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44fcac], eax
call esi
push eax
call fcn.00412724
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44fcb0], eax
call esi
push eax
call fcn.00412724
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44fcb4], eax
call esi
push eax
call fcn.00412724
pop ecx
mov dword [0x44fcbc], eax
test eax, eax
je 0x418b88
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00412724
pop ecx
mov dword [0x44fcb8], eax
mov eax, dword [0x44fcb8]
cmp eax, ebx
je 0x418be0
cmp dword [0x44fcbc], ebx
je 0x418be0
push eax
call fcn.0041279f
push dword [0x44fcbc]
mov esi, eax
call fcn.0041279f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x418be0
test edi, edi
je 0x418be0
call esi
test eax, eax
je 0x418bd7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x418bd7
test byte [ebp - 0xc], 1
jne 0x418be0
or dword [ebp + 0x10], 0x200000
jmp 0x418c19
mov eax, dword [0x44fcb0]
cmp eax, ebx
je 0x418c19
push eax
call fcn.0041279f
pop ecx
test eax, eax
je 0x418c19
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x418c19
mov eax, dword [0x44fcb4]
cmp eax, ebx
je 0x418c19
push eax
call fcn.0041279f
pop ecx
test eax, eax
je 0x418c19
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44fcac]
call fcn.0041279f
pop ecx
test eax, eax
je 0x418c39
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x418c3b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a778
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.004015db
push eax
lea ecx, [ebp - 8]
call fcn.00401f9b
mov dword [ebp - 0xc], esi
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [ebp + ecx - 0xc]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x40a7ae
push edx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c497
mov ecx, dword [0x43ae88]
mov eax, dword [eax + 4]
test eax, eax
jne 0x40a7de
mov eax, ecx
cmp eax, ecx
je 0x40a7f0
add eax, 0xc
lea ecx, [ebp - 8]
push eax
call fcn.00401c8c
jmp 0x40a806
or esi, 0x4000
lea edx, [ebp - 8]
mov ecx, esi
call fcn.00404974
mov esi, eax
test esi, esi
js 0x40a875
mov eax, dword [ebp - 8]
xor edx, edx
mov esi, dword [edi]
inc edx
mov edi, 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x40a82b
push edi
lea ecx, [ebp - 8]
call fcn.00402095
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.004031a1
test esi, esi
jne 0x40a84a
mov esi, 0x80040709
jmp 0x40a875
mov esi, dword [ebp - 8]
test esi, esi
jne 0x40a855
xor eax, eax
jmp 0x40a85c
push esi
call fcn.00415bdd
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.00401ed9
cmp byte [ebp + 8], 0
je 0x40a873
mov ecx, dword [ebp - 8]
call fcn.00404846
xor esi, esi
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.004015b2
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c871
leave
ret

Function at 0x40d1a3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40d1e2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d1e2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d1e2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40d1e2
cmp dword [ecx + 0x74], 0xe
jbe 0x40d1e2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41d1b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d1dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d1dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000456b
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
mov dword [0x1009bf78], 0x121e
mov dword [0x1009bf7c], 0x1c3
mov dword [esp], eax
mov dword [esp + 0x2c], ecx
call fcn.10005823
mov dword [0x1009bf7c], 0xc67
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x58], 0x132a00
mov dword [0x1009bf78], 0x423d
mov ecx, dword [0x1009bf64]
mov dword [esp + 0x4c], ecx
mov ecx, dword [0x1009bf68]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
lea eax, [0x100046d2]
mov ecx, 0xc67
mov edx, dword [esp + 0x24]
mov dword [esp + 0x60], edx
mov esi, dword [0x1009bf6c]
mov dword [esp + 0x44], esi
mov esi, dword [0x1009bf70]
mov dword [esp + 0x7c], esi
mov esi, dword [0x1009bf74]
mov dword [esp + 0x94], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x10004630
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], ecx
je 0x10004675
jmp 0x10004647
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
cmp word [ecx], 0x5a4d
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
je 0x1000461a
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
add eax, 0x954
mov dword [0x1009bf7c], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
jmp 0x10004630
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x10]
add edx, 0xffffe1fb
mov dword [0x1009bf78], edx
mov edx, dword [esp + 0x14]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x8c], esi
mov esi, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.100056a3
mov dword [0x1009bf7c], 0xe4a
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x10004cba
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1009bf84], 0
mov edi, dword [0x1009bf78]
add edi, 0xac6
mov dword [0x1009bf78], edi
mov byte [0x1009bf88], 0
mov edi, dword [0x1009bf7c]
add edi, 0x899
mov dword [0x1009bf7c], edi
mov dword [0x1009bf80], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10004dba
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
add eax, 0xfffff2bb
mov dword [0x1009bf7c], eax
mov eax, dword [0x1009bf84]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + ecx]
add edi, eax
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 0x28], edx
mov edx, ebx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov eax, edi
cdq
mov edi, dword [ebp - 0x28]
idiv edi
mov dword [0x1009bf84], edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov byte [0x1009bf88], bl
mov dword [0x1009bf7c], 0x19c9
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x1009bf88]
mov ecx, dword [0x1009bf84]
mov byte [esi + ecx], bl
mov dword [0x1009bf7c], 0x237e
mov ecx, dword [0x1009bf80]
add ecx, 1
mov dword [0x1009bf80], ecx
cmp ecx, 0x100
mov dword [ebp - 0x2c], ecx
jl 0x10004e10
jmp 0x10004e29
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1009bf7c], 0x21f
mov eax, dword [0x1009bf80]
add eax, 1
mov dword [0x1009bf80], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10004dba
xor eax, eax
mov ecx, 0x117c
mov dword [0x1009bf78], 0x117c
mov dword [0x1009bf80], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x10004d1e
mov eax, dword [0x1009bf78]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x10004d1e
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10004e48
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0xfffff7ea
xor ebx, ebx
mov dword [0x1009bf80], 0
mov dword [0x1009bf84], 0
mov dword [0x1009bf8c], 0
mov dword [0x1009bf78], 0x1640
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
jne 0x10004ebf
mov eax, dword [ebp - 0x28]
mov dword [0x1009bf7c], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
mov edi, eax
add edi, 1
add edx, 1
mov dword [ebp - 0x30], eax
mov eax, edx
cdq
idiv esi
mov dword [0x1009bf80], edx
mov ebx, dword [ebp - 0x24]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1009bf84], edx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1009bf88], cl
mov ebx, dword [0x1009bf7c]
add ebx, 0xfffff1b0
mov dword [0x1009bf7c], ebx
mov ebx, dword [ebp - 0x24]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x1009bf88]
mov edx, dword [0x1009bf84]
mov byte [ebx + edx], cl
mov edx, dword [0x1009bf80]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x1009bf84]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x1009bf7c], 0x494
and ecx, 0xff
mov dword [0x1009bf8c], ecx
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov dl, byte [edx + esi]
xor dl, byte [ebx + ecx]
mov ecx, dword [ebp - 0x20]
mov byte [ecx + esi], dl
mov ecx, dword [0x1009bf78]
mov edx, ecx
add edx, 0x126e
mov dword [0x1009bf78], edx
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ecx
je 0x10004fb4
mov eax, dword [0x1009bf80]
mov ecx, dword [0x1009bf84]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], edx
jmp 0x10004ebf
mov eax, dword [ebp - 0x3c]
add eax, 0xfffff418
mov dword [ebp - 0x28], eax
jmp 0x10004eaf
Function at 0x1000512d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [0x1009bf78], 0xf07
mov dword [ebp - 0x10], eax
call fcn.10004fc4
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10005173
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x1009bf78], 0x1d5b
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x10005294
jmp 0x100051d6
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x1009bf78], 0x249e
mov dword [ebp - 0x30], edi
jmp 0x10005294
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
je 0x1000525f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov cl, byte [ebp - 0x4d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4e]
and ch, dl
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x55], ch
mov eax, dword [ebp - 0x54]
cmp eax, 0x20
setb cl
mov dl, byte [ebp - 0x55]
and dl, cl
test dl, 1
mov dword [ebp - 0x48], eax
jne 0x10005202
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x100051ae
jmp 0x1000526c
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov edx, dword [ebp - 0x40]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], eax
jb 0x100051e8
mov eax, dword [ebp - 0x30]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100056a3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x1009bf78], 0x24bc
mov esi, dword [0x1009bf7c]
add esi, 0xfffff2ac
mov dword [0x1009bf7c], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x100056f3
mov dword [0x1009bf78], 0x1327
mov eax, dword [ebp - 0x34]
add eax, 0x2303
mov dword [ebp - 0x38], eax
jmp 0x100057eb
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x10018da9]
mov dh, byte [eax + 0x10018d7a]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x100056f3
lea eax, [ebp - 0x24]
mov dword [0x1009bf78], 0x380
mov dword [0x1009bf7c], 0xffffeaa5
mov dword [ebp - 0x3c], eax
call fcn.100053c5
mov dword [esp], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
call fcn.100054e3
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], ecx
je 0x100057eb
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov dword [0x1009bf78], 0x761
mov eax, esp
mov dword [eax + 0xc], 0x40
mov dword [eax + 8], 0x1000
mov dword [eax + 4], 0x6000
mov dword [eax], 0
mov eax, dword [ebp - 0x44]
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x34], eax
call fcn.100049cb
xor eax, eax
mov ecx, dword [ebp - 0x34]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x48], ecx
mov dword [0x1009bf78], 0x1e36
mov ecx, dword [ebp - 0x34]
mov dword [edx + 8], ecx
cmp ecx, 0
mov dword [ebp - 0x38], eax
jne 0x100056d9
mov eax, dword [ebp - 0x38]
add esp, 0x50
pop esi
pop ebp
ret