joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e8b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9f68
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push edi
mov eax, dword [0x510a50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [esi + 0x104]
push eax
lea ecx, [ebp - 0x18]
xor edi, edi
push ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.004434b0
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
mov eax, dword [eax]
push ecx
push eax
call fcn.00443b60
mov bl, al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add esp, 0x14
cmp eax, edi
je 0x42e91d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
test bl, bl
je 0x42e963
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [esi + 0x124]
je 0x42e963
cmp ecx, 0x190
jl 0x42e963
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp dword [esi + 0x11c], edi
jne 0x42e94d
call ebx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x11c], eax
mov eax, dword [esi + 0x120]
cmp eax, edi
je 0x42e95b
cmp ecx, dword [eax]
jb 0x42e963
call ebx
mov dword [esi + 0x118], eax
cmp dword [esi + 0x118], edi
je 0x42e990
cmp dword [esi + 0x11c], edi
je 0x42e990
mov ecx, dword [esi + 0x10c]
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x10c], edi
mov dword [esi + 0x124], edi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431fe0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
push eax
call ebx
or esi, 0xffffffff
mov dword [edi], eax
cmp eax, esi
jne 0x43201b
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x43201d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call ebx
mov dword [edi], eax
xor esi, esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43203c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x432050
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x510a50]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push edi
mov eax, 2
push ecx
mov edi, edx
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x12c]
push eax
push 0x8004667e
push esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x12c], 1
call ebx
cmp eax, 0xffffffff
jne 0x4320b8
or eax, 0xffffffff
pop edi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004840ae
mov esp, ebp
pop ebp
ret
push 0x10
lea ecx, [ebp - 0x18]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
imul edi, edi, 0x3e8
lea edx, [ebp - 0x134]
push edx
push 0
lea eax, [ebp - 0x124]
push eax
push 0
push 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x124], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4320a5
lea ecx, [ebp - 0x128]
push ecx
push 0x8004667e
push esi
mov dword [ebp - 0x128], 0
call ebx
mov ecx, dword [ebp - 8]
inc eax
neg eax
sbb eax, eax
neg eax
pop edi
xor ecx, ebp
dec eax
pop ebx
call fcn.004840ae
mov esp, ebp
pop ebp
ret
Function at 0x432430
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x510a50]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 3
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x810], ecx
mov dword [ebp - 0x818], edx
jne 0x43246b
cmp dword [ebp + 0x10], 0
jne 0x43246b
mov dword [ebp + 0xc], 4
push ebx
push edi
push 0x10000
mov dword [ebp - 0x808], 0x10000
call fcn.00460bbb
push 0x10000
mov edi, eax
push 0
push edi
call fcn.00488a00
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00488a00
mov edx, dword [ebp + 8]
add esp, 0x1c
push 0
push 0x800
lea ecx, [ebp - 0x804]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
je 0x4325bf
jmp 0x4324d0
cmp ebx, 0xffffffff
je 0x43267f
mov eax, dword [esi]
lea ecx, [eax + ebx]
cmp ecx, dword [ebp - 0x808]
jbe 0x432570
push eax
call fcn.00460bbb
mov edx, dword [esi]
push edx
push 0
push eax
mov dword [ebp - 0x80c], eax
call fcn.00488a00
mov eax, dword [esi]
mov ecx, dword [ebp - 0x80c]
push eax
push edi
push ecx
call fcn.00488b10
push edi
call fcn.00460bb0
mov eax, dword [ebp - 0x808]
add eax, 0x10000
push eax
mov dword [ebp - 0x808], eax
call fcn.00460bbb
mov edi, eax
mov eax, dword [ebp - 0x808]
push eax
push 0
push edi
mov dword [ebp - 0x808], eax
call fcn.00488a00
mov edx, dword [esi]
mov eax, dword [ebp - 0x80c]
push edx
push eax
push edi
call fcn.00488b10
mov ecx, dword [ebp - 0x80c]
push ecx
call fcn.00460bb0
mov eax, dword [esi]
add esp, 0x40
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x432578
push ebx
lea ecx, [ebp - 0x804]
push ecx
add eax, edi
push eax
call fcn.00488b10
add dword [esi], ebx
mov ebx, dword [esi]
add esp, 0xc
push 0x800
lea edx, [ebp - 0x804]
push 0
push edx
call fcn.00488a00
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, 2
jne 0x43264a
push str._r_n_r_n
push edi
call fcn.00486cd0
add esp, 8
test eax, eax
je 0x432658
push str._r_n_r_n
push edi
call fcn.00486cd0
add esp, 8
test eax, eax
je 0x432688
mov ebx, dword [ebp - 0x810]
sub eax, edi
add eax, 4
push eax
mov dword [ebx], eax
call fcn.00460bbb
mov edx, dword [ebp - 0x818]
mov dword [edx], eax
mov ecx, dword [ebx]
push ecx
push edi
push eax
call fcn.00488b10
mov eax, dword [ebp + 0xc]
add esp, 0x10
cmp eax, 4
je 0x43260a
cmp eax, 3
jne 0x43262f
mov edx, dword [ebx]
sub dword [esi], edx
mov eax, dword [esi]
push eax
call fcn.00460bbb
mov ecx, dword [ebp - 0x814]
mov dword [ecx], eax
mov edx, dword [esi]
mov ecx, dword [ebx]
push edx
add ecx, edi
push ecx
push eax
call fcn.00488b10
add esp, 0x10
push edi
call fcn.00460bb0
add esp, 4
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004840ae
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x432658
cmp ebx, dword [ebp + 0x10]
jae 0x4325bf
mov ecx, dword [ebp + 8]
push 0
push 0x800
lea eax, [ebp - 0x804]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jne 0x4324d0
jmp 0x4325bf
cmp dword [esi], 0
jne 0x4325bf
push edi
call fcn.00460bb0
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.004840ae
mov esp, ebp
pop ebp
ret
Function at 0x43b9a0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
je 0x43ba79
push ebx
push esi
push edi
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, esi
push 0x10
and ebx, 0x10000000
call edi
mov edx, 0x8000
test dx, ax
jne 0x43b9e3
push 0x14
call edi
mov dword [ebp - 4], 0
test al, 1
je 0x43b9ea
mov dword [ebp - 4], 1
mov eax, esi
sar eax, 0x10
push 1
and eax, 0xff
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [ebp - 4], 0
mov edi, eax
jne 0x43ba09
test ebx, ebx
je 0x43ba32
xor ecx, ecx
test ebx, ebx
sete cl
push ecx
mov ecx, edi
call fcn.00443540
add esp, 4
test eax, eax
je 0x43ba32
mov edx, dword [ebp + 0x14]
push esi
push eax
push 0x102
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x43ba58
mov eax, dword [ebp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
push esi
push edi
push 0x100
push eax
call ebx
mov ecx, dword [ebp + 0x14]
or esi, 0xc0000000
push esi
push edi
push 0x101
push ecx
call ebx
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
cmp eax, dword [ebp + 0x10]
jne 0x43b9b3
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4402e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ce1f0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x510a50]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x510a50]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
push 0x44
mov dword [esp + 0x28], edi
call fcn.00460b81
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x440357
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x34], ebx
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [esp + 0x14], eax
jmp 0x44035b
mov dword [esp + 0x14], ebx
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
sub esp, 0x1c
mov esi, esp
mov edx, edi
mov dword [ecx], eax
mov dword [esp + 0x3c], esp
call fcn.00435f30
mov edx, dword [esp + 0x30]
push edx
call fcn.00441400
mov cl, al
cmp cl, bl
je 0x4404a8
mov esi, dword [edi + 0x24]
sub esi, dword [edi + 0x20]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
cmp eax, ebx
jle 0x4404a4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
lea edi, [esp + 0x30]
call fcn.0041b6f0
mov dword [esp + 0x78], ebx
cmp dword [esp + 0x44], 8
mov edx, dword [esp + 0x30]
jae 0x4403d2
mov edx, edi
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
mov word [ecx], ax
mov eax, edx
mov dword [esp + 0x48], esp
lea esi, [eax + 2]
nop
mov di, word [eax]
add eax, 2
cmp di, bx
jne 0x4403f0
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00404900
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x60], esp
push 0xffffffffffffffff
mov byte [esp + 0xb4], 1
push ebx
lea eax, [esp + 0x8c]
mov edi, 7
xor edx, edx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.00405350
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0xb0], bl
call fcn.00441800
mov esi, 8
mov dword [esp + 0x78], 0xffffffff
mov byte [esp + 0x1b], al
cmp dword [esp + 0x60], esi
jb 0x44046b
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00460bb0
add esp, 4
xor edx, edx
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], dx
cmp dword [esp + 0x44], esi
jb 0x44048d
mov eax, dword [esp + 0x30]
push eax
call fcn.00460bb0
add esp, 4
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x20]
jl 0x4403b0
mov cl, byte [esp + 0x1b]
cmp cl, bl
jne 0x4404c0
mov esi, dword [esp + 0x14]
call fcn.0043d8b0
mov ecx, esi
push ecx
call fcn.00460bb0
add esp, 4
xor eax, eax
jmp 0x4404c4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004840ae
mov esp, ebp
pop ebp
ret
Function at 0x4574a0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x510a50]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 2
push esi
mov esi, ecx
jge 0x4574c2
cmp byte [0x52cecd], 0
je 0x45751b
call fcn.00490a5f
add eax, 0x40
push eax
push 1
push edi
push esi
call fcn.00485c65
add esp, 0x10
push edi
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.00404e60
mov eax, dword [ebp - 0x20]
mov esi, 0x10
cmp dword [ebp - 0xc], esi
jae 0x457503
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
cmp dword [ebp - 0xc], esi
jb 0x45751b
mov eax, dword [ebp - 0x20]
push eax
call fcn.00460bb0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004840ae
mov esp, ebp
pop ebp
ret

Function at 0x4577b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x52cecf], 0
push ebx
push esi
push edi
mov edi, eax
je 0x4577e4
call fcn.00490a5f
mov ecx, dword [ebp + 0x10]
add eax, 0x40
push eax
mov eax, dword [ebp + 0x14]
push 1
push eax
push ecx
call fcn.00485c65
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
js 0x45781f
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, edi
cmp edi, dword [0x52cf78]
setg dl
mov byte [ebp - 4], dl
call fcn.004579a0
mov edx, dword [ebp + 0x14]
mov ecx, dword [eax + 0x98]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp - 4]
push esi
push ebx
push edx
call eax
dec edi
jns 0x4577f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4590e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cdafc
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x510a50]
xor eax, esp
mov dword [esp + 0xe4], eax
push ebx
push esi
mov eax, dword [0x510a50]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
mov dword [esp + 0x10], 0
test edi, edi
je 0x4592ed
cmp byte [edi], 0
je 0x4592ed
push edi
push ebx
push esi
push str.Trying_to_send_TITLE:__s_BODY:__s_to__s_n
call fcn.00490a5f
add eax, 0x40
push eax
call fcn.00485fd6
add esp, 0x14
push 0x4f87cc
lea eax, [esp + 0x6c]
push 0x52cf7c
push eax
call fcn.0041aff0
add esp, 0xc
mov edx, esi
push eax
lea esi, [esp + 0x50]
mov dword [esp + 0x104], 1
call fcn.0045a300
add esp, 4
push eax
mov edx, 0x4f87c8
lea esi, [esp + 0x34]
mov byte [esp + 0x104], 2
call fcn.0045a300
add esp, 4
push eax
mov edx, edi
lea esi, [esp + 0x18]
mov byte [esp + 0x104], 3
call fcn.0045a300
add esp, 4
mov esi, 0x10
cmp dword [esp + 0x44], esi
jb 0x4591cf
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00460bb0
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
cmp dword [esp + 0x60], esi
jb 0x4591f7
mov edx, dword [esp + 0x4c]
push edx
call fcn.00460bb0
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
cmp dword [esp + 0x7c], esi
jb 0x45921f
mov eax, dword [esp + 0x68]
push eax
call fcn.00460bb0
add esp, 4
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], esi
jae 0x45922d
lea eax, [esp + 0x14]
push 0x4f315c
push eax
call fcn.004c3ce9
mov esi, eax
add esp, 8
test esi, esi
je 0x4592c2
test ebx, ebx
je 0x459266
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459250
push esi
sub eax, edx
push eax
push 1
push ebx
call fcn.00485c65
add esp, 0x10
push esi
call fcn.004c41b1
add esp, 4
cmp eax, 0xffffffff
setne bl
test bl, bl
jne 0x4592aa
call fcn.004896c4
mov ecx, dword [eax]
push ecx
lea esi, [esp + 0x88]
call fcn.004596c0
add esp, 4
mov edx, esi
push edx
push edi
push str.Problems_sending_mail_to__s:__s_n
call fcn.00490a5f
add eax, 0x40
push eax
call fcn.00485fd6
add esp, 0x10
cmp dword [esp + 0x28], 0x10
jb 0x4592be
mov eax, dword [esp + 0x14]
push eax
call fcn.00460bb0
add esp, 4
mov al, bl
jmp 0x4592ef
push edi
push str.Unable_to_send_mail_to__s_n
call fcn.00490a5f
add eax, 0x40
push eax
call fcn.00485fd6
add esp, 0xc
cmp dword [esp + 0x28], 0x10
jb 0x4592ed
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00460bb0
add esp, 4
xor al, al
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.004840ae
mov esp, ebp
pop ebp
ret
Function at 0x459320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccf41
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x510a50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x51cf70]
mov ecx, dword [eax + 4]
lea esi, [eax + 4]
mov dword [ebp - 0x150], eax
mov eax, dword [eax]
cmp eax, ecx
je 0x459380
mov edx, dword [ebp - 0x150]
push edx
push ecx
call fcn.0045a7e0
mov edi, dword [esi]
add esp, 8
mov ebx, eax
call fcn.00459d90
mov dword [esi], ebx
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
xor ebx, ebx
lea esi, [ebx + 0x10]
test eax, eax
je 0x459410
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4593c0
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x130]
call fcn.00404e60
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x150]
lea ecx, [ebp - 0x130]
call fcn.00459c00
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x11c], esi
jb 0x459416
mov edx, dword [ebp - 0x130]
push edx
call fcn.00460bb0
add esp, 4
jmp 0x459416
mov edi, dword [ebp - 0x150]
push 7
push str.C:_tmp_
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
call fcn.00404e60
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 1
call fcn.00459c00
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x11c], esi
jb 0x45946e
mov eax, dword [ebp - 0x130]
push eax
call fcn.00460bb0
add esp, 4
push 8
push str.C:_temp_
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
call fcn.00404e60
lea ecx, [ebp - 0x14c]
mov dword [ebp - 4], 2
call fcn.00459c00
cmp dword [ebp - 0x138], esi
jb 0x4594bf
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.00460bb0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004840ae
mov esp, ebp
pop ebp
ret
Function at 0x4594e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdaa1
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x510a50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x51cf70]
xor ebx, ebx
cmp eax, ebx
jne 0x4596a0
push 0x10
call fcn.00460b81
add esp, 4
cmp eax, ebx
je 0x459534
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x459536
xor eax, eax
mov dword [0x51cf70], eax
cmp dword [0x52cfc4], ebx
je 0x4595b5
cmp dword [0x52cfc8], 0x10
mov edx, dword [0x52cfb4]
jae 0x459557
mov edx, 0x52cfb4
mov eax, edx
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x459572
sub eax, edi
push eax
push edx
lea ecx, [ebp - 0x130]
call fcn.00404e60
mov dword [ebp - 4], ebx
mov edi, dword [0x51cf70]
lea ecx, [ebp - 0x130]
call fcn.00459b30
cmp dword [ebp - 0x11c], 0x10
jb 0x45969b
mov eax, dword [ebp - 0x130]
push eax
jmp 0x459693
call fcn.00459320
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
test eax, eax
je 0x459643
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4595f0
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x130]
call fcn.00404e60
mov dword [ebp - 4], 1
mov edi, dword [0x51cf70]
lea ecx, [ebp - 0x130]
call fcn.00459c00
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x11c], 0x10
jb 0x459643
mov eax, dword [ebp - 0x130]
push eax
call fcn.00460bb0
add esp, 4
push 2
push 0x4f8828
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
call fcn.00404e60
mov dword [ebp - 4], 2
mov edi, dword [0x51cf70]
lea ecx, [ebp - 0x14c]
call fcn.00459c00
cmp dword [ebp - 0x138], 0x10
jb 0x45969b
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.00460bb0
add esp, 4
mov eax, dword [0x51cf70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004840ae
mov esp, ebp
pop ebp
ret
Function at 0x459730
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c95cb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x510a50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004a009a
push 4
mov dword [ebp - 4], 0
call fcn.00460b81
mov edi, eax
add esp, 4
test edi, edi
je 0x4597ac
call fcn.0049f8b7
mov dword [edi], eax
call fcn.0049f732
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0049f667
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4597a2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0049f68f
jmp 0x4597ae
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 0x45abcc
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x4e6770
call fcn.00488880
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x45ac38
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x45ac10
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x45ac3e
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x45ac08
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x45ac08
mov al, 1
jmp 0x45ac0a
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.004888bb
ret