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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c7df8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x503040]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x503040]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [esp + 0x18], ebx
push 0x4dfaa4
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.MSVCR120.dll_strstr]
add esp, 8
test eax, eax
jne 0x45eca7
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], eax
mov byte [ebx], al
cmp byte [edi], al
jne 0x45ec8a
xor ecx, ecx
push ecx
push edi
mov ecx, ebx
call fcn.0040f4f0
jmp 0x45edbe
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45ec90
sub ecx, edx
push ecx
push edi
mov ecx, ebx
call fcn.0040f4f0
jmp 0x45edbe
lea esi, [eax + 1]
mov dword [esp + 0x4c], 0xf
sub eax, edi
mov dword [esp + 0x48], 0
inc eax
mov byte [esp + 0x38], 0
push eax
push edi
lea ecx, [esp + 0x40]
call fcn.0040f4f0
mov dword [esp + 0x78], 0
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
mov byte [esp + 0x78], 1
mov al, byte [esi]
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test al, al
je 0x45ed8b
nop
mov byte [esp + 0x14], al
lea ecx, [esp + 0x20]
cmp al, 0x3d
jne 0x45ed71
push 0x3d
push 1
call fcn.00410f90
mov bl, byte [esi + 1]
inc esi
mov byte [esp + 0x14], bl
cmp bl, 0x26
je 0x45ed6d
test bl, bl
je 0x45ed7d
mov dl, bl
lea ecx, [esp + 0x50]
call fcn.0045e030
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x58]
mov byte [esp + 0x80], 2
push eax
lea ecx, [esp + 0x2c]
call fcn.0040f890
mov bl, byte [esi + 1]
inc esi
mov byte [esp + 0x78], 1
cmp dword [esp + 0x64], 0x10
mov byte [esp + 0x14], bl
jb 0x45ed68
push dword [esp + 0x50]
call edi
add esp, 4
cmp bl, 0x26
jne 0x45ed22
lea ecx, [esp + 0x20]
push dword [esp + 0x14]
push 1
call fcn.00410f90
inc esi
mov al, byte [esi]
test al, al
jne 0x45ed00
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
lea edx, [esp + 0x3c]
call fcn.0045efb0
add esp, 4
cmp dword [esp + 0x34], 0x10
jb 0x45edae
push dword [esp + 0x20]
call edi
add esp, 4
cmp dword [esp + 0x4c], 0x10
jb 0x45edbe
push dword [esp + 0x38]
call edi
add esp, 4
mov eax, ebx
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.004b73db
mov esp, ebp
pop ebp
ret
Function at 0x463f90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
mov esi, ecx
push 0
push 0x130b
push dword [esi + 0xfc]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [esi + 0x100]
mov ecx, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], eax
test edi, edi
je 0x463ff5
mov eax, dword [edi + 0xd4]
test eax, eax
je 0x463fdb
push 0
push eax
call ecx
push dword [edi + 0xd4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 0x100]
push 0
push dword [eax + 0xd4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [ebp - 4]
mov edi, dword [esi + edi*4 + 0x11c]
mov dword [esi + 0x100], edi
test edi, edi
je 0x464038
mov eax, dword [edi + 0xd4]
test eax, eax
je 0x464024
push 5
push eax
call ecx
push dword [edi + 0xd4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 0x100]
push 1
push dword [eax + 0xd4]
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x464ae0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c865b
mov eax, dword fs:[0]
push eax
sub esp, 0x8ac
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x90]
push 0x80
push eax
push dword [edi + 0x100]
call esi
push 0x800
lea eax, [ebp - 0x890]
push eax
push dword [edi + 0x104]
call esi
push 0x70
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x464c69
mov ecx, eax
call fcn.0045d7f0
mov esi, eax
test esi, esi
je 0x464c69
cmp byte [ebp - 0x90], 0
jne 0x464b6e
xor ecx, ecx
jmp 0x464b80
lea ecx, [ebp - 0x90]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x464b77
sub ecx, edx
push ecx
lea eax, [ebp - 0x90]
push eax
lea ecx, [esi + 0x50]
call fcn.0040f4f0
push 6
push str.000000
lea ecx, [ebp - 0x8a8]
mov dword [esi + 8], 2
mov dword [ebp - 0x894], 0xf
mov dword [ebp - 0x898], 0
mov byte [ebp - 0x8a8], 0
call fcn.0040f4f0
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x8a8]
cmp ecx, eax
je 0x464be2
push 0xffffffffffffffff
push 0
push eax
call fcn.0040f3d0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x894], 0x10
jb 0x464c01
push dword [ebp - 0x8a8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esi + 0x24], 0x3e8
mov dword [esi + 0x28], 0x3c
cmp byte [ebp - 0x890], 0
jne 0x464c1c
xor ecx, ecx
jmp 0x464c2e
lea ecx, [ebp - 0x890]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x464c25
sub ecx, edx
push ecx
lea eax, [ebp - 0x890]
push eax
lea ecx, [esi + 0x38]
call fcn.0040f4f0
sub esp, 0x18
mov dword [ebp - 0x8b4], 0x464c90
lea eax, [ebp - 0x8b4]
mov dword [ebp - 0x8ac], edi
mov ecx, esp
push eax
call fcn.00465070
mov ecx, esi
call fcn.00463080
add esp, 0x18
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
Function at 0x468080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push ebx
mov ebx, ecx
push edi
mov edi, edx
cmp eax, 0xffffffff
je 0x468115
test ebx, ebx
je 0x468115
test edi, edi
jle 0x468115
push esi
mov esi, ebx
dec edi
je 0x4680e8
nop
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push ecx
push 1
lea ecx, [ebp - 5]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4680fe
cmp dword [ebp - 0xc], 0
je 0x4680fe
mov al, byte [ebp - 5]
cmp al, 0xd
je 0x4680e2
cmp al, 0xa
je 0x4680e8
mov byte [esi], al
inc esi
mov eax, dword [ebp - 0x10]
dec edi
jne 0x4680b0
mov byte [esi], 0
mov eax, ebx
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
cmp esi, ebx
jne 0x4680e8
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.004b73db
mov esp, ebp
pop ebp
ret

Function at 0x468130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push ebx
mov ebx, ecx
push edi
mov edi, edx
cmp eax, 0xffffffff
je 0x4681cf
test ebx, ebx
je 0x4681cf
test edi, edi
jle 0x4681cf
push esi
mov esi, ebx
dec edi
je 0x4681a0
nop
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push ecx
push 2
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4681b8
cmp dword [ebp - 0xc], 0
je 0x4681b8
mov ax, word [ebp - 8]
cmp ax, 0xd
je 0x46819a
cmp ax, 0xa
je 0x4681a0
mov word [esi], ax
add esi, 2
mov eax, dword [ebp - 0x10]
dec edi
jne 0x468160
xor eax, eax
mov word [esi], ax
mov eax, ebx
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
cmp esi, ebx
jne 0x4681a0
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.004b73db
mov esp, ebp
pop ebp
ret
Function at 0x468eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp edi, 0xffffffff
je 0x468f53
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push 0
push eax
push 0x20
push esi
push edi
mov dword [ebp - 0xc], 0
call ebx
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x468f53
mov eax, dword [esi + 0x20]
test eax, eax
je 0x468f1b
push eax
call dword [sym.imp.MSVCR120.dll_free]
mov ebx, dword [ebp - 0xc]
add esp, 4
mov dword [esi + 0x20], 0
push ebx
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
je 0x468f3b
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b73db
mov esp, ebp
pop ebp
ret 4

Function at 0x4691d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
push edi
mov edi, ecx
cmp ebx, 0xffffffff
je 0x4692d8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0xc]
push 0
push eax
push 0x20
lea eax, [edi + 0x18]
mov dword [ebp - 8], 0
push eax
push ebx
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push ebx
call esi
xor ebx, ebx
cmp dword [ebp - 8], ebx
jle 0x469289
push 0x24
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
test esi, esi
je 0x469283
push dword [ebp - 0x10]
xorps xmm0, xmm0
mov ecx, esi
movdqu xmmword [esi], xmm0
movdqu xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
movdqu xmmword [esi], xmm0
movdqu xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
call fcn.00468eb0
test eax, eax
je 0x4692a1
mov ecx, edi
call fcn.0046d410
test eax, eax
je 0x469283
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x469283
mov eax, dword [edi + 0x14]
mov dword [ecx + eax*4], esi
inc dword [edi + 0x14]
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x469226
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4692b9
push eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov dword [esi + 0x20], 0
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.004b73db
mov esp, ebp
pop ebp
ret 4
Function at 0x469440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
push edi
mov edi, ecx
cmp ebx, 0xffffffff
je 0x469582
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push 0
push eax
push 2
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push ebx
call esi
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
push 0
mov ecx, 4
lea eax, [ebp - 8]
cmp dword [ebp - 0xc], ecx
push eax
cmovb ecx, dword [ebp - 0xc]
lea eax, [edi + 0x18]
push ecx
push eax
push ebx
call esi
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
jle 0x46956a
push 0x38
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
test esi, esi
je 0x469543
push 0x38
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esi + 4], 0
xorps xmm0, xmm0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, esi
mov dword [esi + 0x10], 0x14
push dword [ebp - 0x18]
mov dword [esi + 0x14], 0
mov dword [esi], vtable.CIniSection.0
movdqu xmmword [esi + 0x18], xmm0
movdqu xmmword [esi + 0x28], xmm0
call fcn.004691d0
test eax, eax
jne 0x469545
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 4
xor esi, esi
mov ecx, edi
call fcn.0046d410
test eax, eax
je 0x469560
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x469560
mov eax, dword [edi + 0x14]
mov dword [ecx + eax*4], esi
inc dword [edi + 0x14]
inc ebx
cmp ebx, dword [ebp - 0x10]
jl 0x4694c3
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.004b73db
mov esp, ebp
pop ebp
ret 4

Function at 0x4695a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
lea eax, [ebp - 0x10]
mov esi, ecx
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, 0x4e0740
lea ecx, [ebp - 0xc]
pop esi
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x469600
test dl, dl
je 0x4695fc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x469600
add ecx, 2
add eax, 2
test dl, dl
jne 0x4695e0
xor ecx, ecx
jmp 0x469605
sbb ecx, ecx
or ecx, 1
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
Function at 0x46b640
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0x7c]
test edx, edx
je 0x46b67f
mov eax, dword [ecx + 0xe0]
test eax, eax
je 0x46b66a
mov eax, dword [eax + 4]
push eax
push dword [ebp + 8]
push dword [ecx + 0xd4]
call edx
add esp, 0xc
pop ebp
ret 4
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ecx + 0xd4]
call edx
add esp, 0xc
pop ebp
ret 4
cmp dword [ebp + 8], 0
jne 0x46b699
push 0
push dword [ecx + 0xd4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop ebp
ret 4
push 1
push dword [ecx + 0xd4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop ebp
ret 4

Function at 0x46d020
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x10]
cmp eax, 0xffffffff
jne 0x46d04a
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x46d038
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret

Function at 0x46d070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x10]
mov edx, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x46d09d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 8
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
and eax, dword [ebp - 8]
call fcn.004b73db
mov esp, ebp
pop ebp
ret 8

Function at 0x46d0d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x10]
cmp edx, 0xffffffff
jne 0x46d104
mov dword [esi + 0x14], edx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
jne 0x46d122
mov dword [esi + 0x14], 0xfffffffe
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x46d141
mov dword [esi + 0x14], 0xfffffffd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 8
push edi
push 0
lea edi, [ebp - 8]
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
test eax, eax
jne 0x46d179
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x46d179
mov dword [esi + 0x14], eax
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004b73db
mov esp, ebp
pop ebp
ret 8
Function at 0x46d190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ecx + 0x10]
cmp esi, 0xffffffff
je 0x46d1ee
test edx, edx
je 0x46d1ee
mov ecx, edx
push edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d1b6
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
sub ecx, edi
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
test eax, eax
je 0x46d1ee
mov eax, dword [ebp - 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop esi
call fcn.004b73db
mov esp, ebp
pop ebp
ret 4

Function at 0x46d230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x804]
mov esi, ecx
push 0x4e08d8
push eax
call fcn.00468a60
mov edx, dword [esi + 0x10]
add esp, 0xc
cmp edx, 0xffffffff
je 0x46d2a8
lea eax, [ebp - 0x804]
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46d270
sub eax, esi
mov dword [ebp - 0x808], 0
push 0
sar eax, 1
lea ecx, [ebp - 0x808]
push ecx
add eax, eax
push eax
lea eax, [ebp - 0x804]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 0xffffffff
jne 0x46d2ad
mov eax, 0xffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b73db
mov esp, ebp
pop ebp
ret 4
Function at 0x46f6b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
cmp dword [eax + 0x14], 8
mov esi, 0xfffffffe
push edi
mov edi, ecx
mov dword [ebp - 8], 0
jb 0x46f6df
mov eax, dword [eax]
push 0x4e0b38
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.MSVCR120.dll__wfopen_s]
add esp, 0xc
mov dword [ebx], eax
test eax, eax
jne 0x46f745
mov eax, dword [ebp - 8]
test eax, eax
je 0x46f745
mov ecx, dword [edi + 0xa8]
test ecx, ecx
je 0x46f75a
mov edx, dword [edi + 0xac]
test edx, edx
je 0x46f75a
push eax
push 1
push edx
push ecx
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp eax, 1
jae 0x46f737
call dword [sym.imp.MSVCR120.dll__errno]
mov esi, 1
mov eax, dword [eax]
mov dword [ebx], eax
jmp 0x46f739
xor esi, esi
push dword [ebp - 8]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.MSVCR120.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 2
pop edi
pop esi
pop ebx
call fcn.004b73db
mov esp, ebp
pop ebp
ret 8

Function at 0x477c70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c9e01
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x503040]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
jmp dword [eax*4 + 0x4787a0]

Function at 0x47f040
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
push 0
je 0x47f073
mov ecx, dword [edi + 4]
push 0
push dword [ebp + 0x1c]
call fcn.0043d880
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x47f095
mov ecx, dword [edi + 4]
push 0x2719
push dword [ebp + 0x1c]
call fcn.0043d880
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebp + 0x18]
push ebx
push dword [ebp + 0x14]
mov dword [ebp + 0x18], 0
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x47f0e9
cmp eax, 0x3e5
je 0x47f0e9
push dword [ebp + 0x18]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.0043d880
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.0043d810
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18