joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ea9fa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x5eaae9
mov ecx, eax
mov ebx, dword [ecx + 0x3c]
add ecx, ebx
mov ecx, dword [ecx + 0x7c]
test ecx, ecx
je 0x5eaae9
mov dword [ebp - 4], ecx
mov ebx, eax
mov ecx, dword [ebx + 0x3c]
add ebx, ecx
mov ebx, dword [ebx + 0x78]
add ebx, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 0xc]
test eax, 0xffff0000
je 0x5eaa95
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x5eaae9
dec ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0xc]
push ecx
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
add eax, dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push eax
call dword [edi + 0x124aea2b]
pop edi
pop ecx
test eax, eax
jne 0x5eaa4e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0xc]
shl ecx, 1
add eax, ecx
movzx ecx, word [eax]
jmp 0x5eaa9b
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebx + 0x10]
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x14]
cmp ecx, eax
jge 0x5eaae9
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx + 0x1c]
add edx, eax
shl ecx, 2
add edx, ecx
cmp dword [edx], 0
je 0x5eaae9
mov ebx, dword [edx]
add eax, ebx
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 8]
jle 0x5eaae9
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x5eaae9
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.005ea943
mov dword [ebp - 0x10], eax
popal
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x5f172b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5f1746
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124b696b]
pop edx
test eax, eax
je 0x5f1818
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5f1807
test dword [ebp - 0x2a8], 1
jne 0x5f1807
and dword [ebp - 0x2a8], 0x100
jne 0x5f1807
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2b63]
pop edx
pop esi
test eax, eax
je 0x5f17aa
jmp 0x5f1807
cmp word [esi], 0x5a4d
jne 0x5f1807
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5f1807
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2da3]
pop edx
test eax, eax
je 0x5f1807
lea eax, [ebp - 0x28c]
push eax
call fcn.005f1687
test eax, eax
jne 0x5f1800
jmp 0x5f1807
mov eax, esi
jmp 0x5f1818
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5f1746
pop esi
leave
ret 4
Function at 0x4217b0
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
mov esi, dword [edx + 4]
mov ebx, ecx
mov dword [esp + 8], esi
mov dword [edx], esi
push edi
test ebx, ebx
je 0x42190f
cmp word [ebx], 0
je 0x42190f
push 4
push 0x4dc360
push ebx
call fcn.004aa1e6
add esp, 0xc
lea ecx, [ebx + 8]
test eax, eax
mov edi, ebx
cmove edi, ecx
test edi, edi
je 0x421841
movzx eax, word [edi]
test ax, ax
je 0x421841
mov esi, eax
nop dword [eax]
nop dword [eax + eax]
mov ecx, 0x4d4e30
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x421884
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x421820
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x421810
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp + 8]
mov edx, eax
test ecx, ecx
je 0x42185b
and eax, ecx
cmp eax, ecx
jne 0x42190f
cmp edx, 0xffffffff
je 0x42190f
mov ecx, dword [esp + 0xc]
call fcn.00482c40
cmp word [ecx], 0
jne 0x421918
mov dword [ecx], 0x58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42190f
cmp word [esp + 0x3c], 0x2e
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jne 0x4218d1
mov ax, word [esp + 0x3e]
test ax, ax
je 0x4218bd
cmp ax, 0x2e
jne 0x4218d1
cmp word [esp + 0x40], 0
jne 0x4218d1
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
je 0x421908
cmp word [esp + 0x3c], 0x2e
je 0x4218a5
mov esi, dword [ebp + 8]
test esi, esi
je 0x4218f8
mov eax, dword [esp + 0x10]
and eax, esi
cmp eax, esi
je 0x4218f8
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
je 0x421908
mov eax, dword [esp + 0x10]
and eax, esi
cmp eax, esi
jne 0x4218e2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x10]
jmp 0x421864
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x5dd6aa
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5dd6c5
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124a28ea]
pop edx
test eax, eax
je 0x5dd797
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5dd786
test dword [ebp - 0x2a8], 1
jne 0x5dd786
and dword [ebp - 0x2a8], 0x100
jne 0x5dd786
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2ccf]
pop edx
pop esi
test eax, eax
je 0x5dd729
jmp 0x5dd786
cmp word [esi], 0x5a4d
jne 0x5dd786
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5dd786
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2d37]
pop edx
test eax, eax
je 0x5dd786
lea eax, [ebp - 0x28c]
push eax
call fcn.005dd606
test eax, eax
jne 0x5dd77f
jmp 0x5dd786
mov eax, esi
jmp 0x5dd797
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5dd6c5
pop esi
leave
ret 4

Function at 0x40124f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.construct
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x403100], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x40136e
push 1
push dword [0x403100]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.displayed
push str.construct
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x403108], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x403108]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x40136e
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x401351
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4034e8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406a08
test esi, esi
jne 0x403520
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406b44
jmp 0x40353e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004033cc
mov edi, eax
test esi, esi
je 0x40353e
cmp dword [ebx], 0
je 0x40353e
dec esi
jmp 0x403527
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403570
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x404144
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x602024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4041dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4041bc
xor eax, eax
push ebp
push 0x4041b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x404214
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4041bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x602024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x602024], ax
mov esp, ebp
pop ebp
ret
Function at 0x4049c4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00404c78
mov byte [esp], al
cmp byte [esp], 0
jne 0x404b4d
test edi, edi
je 0x404b4d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x404a84
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x404a5f
cmp edi, 0xffffffff
je 0x404a23
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404a23
mov byte [esp], 0
jmp 0x404b4d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x404a5f
test ebx, ebx
jne 0x404a58
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00401454
test eax, eax
jne 0x404a58
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x404b4d
pause
dec ebp
test ebp, ebp
jg 0x404a08
cmp edi, 0xffffffff
je 0x404a84
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404a82
mov byte [esp], 0
jmp 0x404b4d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4049d2
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00401454
cmp ebx, eax
jne 0x404a84
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00404bc0
mov edx, eax
mov ebx, dword [0x6148cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x404aeb
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x404ae9
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x404aeb
xor edi, edi
cmp byte [esp], 0
je 0x404b14
mov ebx, dword [esi]
test bl, 1
jne 0x404b2d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00401454
cmp ebx, eax
jne 0x404af1
mov byte [esp + 1], 1
jmp 0x404b2d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00401454
cmp ebx, eax
jne 0x404b14
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x404a9e
cmp byte [esp], 0
je 0x404b4d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x405794
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x614054], 0
je 0x4057f5
cmp word [0x614330], 0xd7b2
jne 0x4057bd
cmp dword [0x614338], 0
jbe 0x4057bd
mov eax, 0x61432c
call dword [0x614348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405820
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x602030], 0
jne 0x405811
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4059c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x602038], 0
je 0x4059e6
mov edx, esi
mov eax, ebx
call dword [0x602038]
jmp 0x4059f5
mov eax, 8
call fcn.004030e4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x614055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405988
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40939c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40d308
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x40d3a8
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.0040639c
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call fcn.00406274
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x40d332
cmp byte [esp], 0
je 0x40d377
mov eax, edi
call fcn.00406274
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40d3b4
mov eax, edi
call fcn.00406274
push eax
mov eax, edi
call fcn.00406274
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004032cc
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.0040639c
jmp 0x40d3b4
mov eax, edi
mov edx, 0x40d3c8
call fcn.00405a90
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40d3cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x40d46f
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00406d84
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov ecx, 0xa
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.004074d8
add bp, 0x30
mov word [eax + esi*2 - 2], bp
dec esi
test ebx, ebx
jne 0x40d3f4
cmp byte [esp], 0
je 0x40d43d
mov eax, edi
call fcn.004074d8
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x40d47b
mov eax, edi
call fcn.004074d8
push eax
mov eax, edi
call fcn.004074d8
lea eax, [eax + esi*2]
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
pop edx
call fcn.004032cc
mov edx, ebx
mov eax, edi
call fcn.00406d84
jmp 0x40d47b
mov eax, edi
mov edx, 0x40d490
call fcn.00406a08
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40e5e8
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp word [0x602a9c], 0
jne 0x40e620
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e617
movzx eax, word [esp]
mov word [0x602a9c], ax
jmp 0x40e620
mov word [0x602a9c], 0x2c
movzx eax, word [0x602a9c]
pop edx
ret
Function at 0x40ebf4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40ebfc
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ee0e
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x40ec3f
lea edx, [ebp - 0xc]
mov eax, ebx
call dword [0x602828]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00406c24
jmp 0x40eddb
test ebx, 0xc0000000
je 0x40ec87
lea edx, [ebp - 0x10]
mov eax, dword [0x602ab4]
call fcn.0040ee2c
mov eax, dword [ebp - 0x10]
call fcn.004061fc
push eax
lea edx, [ebp - 0x14]
mov eax, dword [0x602898]
call fcn.0040ee2c
mov eax, dword [ebp - 0x14]
call fcn.004061fc
push eax
call sub.kernel32.dll_GetModuleHandleA
push eax
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x40ec87
push ebx
call eax
mov ebx, eax
mov edi, 0x1300
cmp ebx, 0x834
jb 0x40eccc
cmp ebx, 0xbb7
ja 0x40eccc
push 2
push 0
lea edx, [ebp - 0x18]
mov eax, dword [0x602ab0]
call fcn.0040ee2c
mov eax, dword [ebp - 0x18]
call fcn.004061fc
push eax
call sub.kernel32.dll_LoadLibraryExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40ecd1
or edi, 0x800
jmp 0x40ecd1
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40edd4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0x400
push ebx
mov eax, dword [ebp - 8]
push eax
push edi
call sub.kernel32.dll_FormatMessageW
test eax, eax
je 0x40ed74
xor eax, eax
push ebp
push 0x40ed6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406bb4
mov eax, dword [esi]
call fcn.00406d78
mov ebx, eax
test ebx, ebx
jbe 0x40ed56
mov eax, dword [esi]
movzx edi, word [eax + ebx*2 - 2]
cmp di, 0xd
jne 0x40ed3d
mov eax, esi
call fcn.004074d8
mov word [eax + ebx*2 - 2], 0x20
jmp 0x40ed51
cmp di, 0xa
jne 0x40ed51
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.00407284
dec ebx
test ebx, ebx
ja 0x40ed20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40edb7
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LocalFree
ret
lea edx, [ebp - 0x20]
mov eax, dword [0x602ab8]
call fcn.0040ee2c
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.00406c24
push dword [ebp - 0x1c]
push 0x40ee28
lea eax, [ebp - 0x24]
push eax
mov cx, 0x30
mov edx, 1
mov eax, ebx
call fcn.0040ddf4
push dword [ebp - 0x24]
mov eax, esi
mov edx, 3
call fcn.00406fc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eddb
cmp dword [ebp - 8], 0
je 0x40edd3
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ee15
lea eax, [ebp - 0x24]
call fcn.004069f8
lea eax, [ebp - 0x20]
call fcn.00405a3c
lea eax, [ebp - 0x1c]
call fcn.004069f8
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00405a60
ret
Function at 0x40ee2c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.00405a90
mov eax, ebx
call fcn.0040626c
mov eax, dword [ebx]
call fcn.00405e00
test eax, eax
jle 0x40ee5d
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40ee52
pop esi
pop ebx
ret

Function at 0x40fb48
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40fc49
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.004082d0
mov esi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x40f840]
call fcn.00408498
add esp, 4
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x38]
mov dword [edx + eax*8], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [edx + eax*8 + 4], ecx
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebp + 8]
mov dword [edx + eax*8 + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edx + eax*8 + 0xc], ecx
test edi, edi
jne 0x40fbca
test esi, esi
jle 0x40fbca
lea edi, [esi + esi*2]
mov eax, dword [ebx + 0x30]
lea eax, [eax + edi*8 + 0x10]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + edi*8 - 8]
call fcn.00406a08
jmp 0x40fbdb
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
lea eax, [edx + eax*8 + 0x10]
mov edx, edi
call fcn.00406a08
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
test esi, esi
jne 0x40fc33
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x40fc0e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x10]
call fcn.00406a94
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x40fc33
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + 0x10]
mov ecx, 0
call fcn.00406c4c
mov eax, dword [ebp - 4]
call fcn.004061fc
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.user32.dll_SetWindowTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fc50
lea eax, [ebp - 4]
call fcn.00405a3c
ret
Function at 0x410ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x410bfa
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x410ad8
cmp dword [ebx + 4], 0
jne 0x410bfa
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x410afe
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x410afe
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.00410a04
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x410bfa
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x410bad
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x410b53
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.00410a44
test al, al
je 0x410ba3
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x410ba3
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x410ba3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x410bcb
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x410bcb
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.00410a98
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x410bfa
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call fcn.00414d44
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov dword [edx], eax
pop esi
pop ebx
pop ecx
pop ebp
ret