joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4776e0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x174]
test eax, eax
mov esi, dword [edi + 0x2d0]
mov dword [esp + 0x14], ecx
jne 0x47770d
mov eax, dword [ecx + 0x170]
test eax, eax
jne 0x47770d
mov eax, 0x493e0
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x10]
push ecx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esi + 0x14]
push eax
mov dword [esi + 0x10], 0
call ebx
test ebp, ebp
mov dword [esi + 0x14], 0
mov bl, 1
jne 0x477769
mov ecx, dword [esi]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4777bf
mov edx, dword [esi]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebp, [esi + 8]
mov byte [edi + 0x2c8], bl
mov dword [ebp], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x477789
mov edx, dword [edi + 0x2c4]
mov dword [eax], edx
xor esi, esi
cmp dword [edi + 0x2c4], esi
jne 0x477870
mov ebp, dword [ebp]
cmp ebp, 0x1b
jne 0x4777db
push ebp
mov esi, ebp
call fcn.0047ec50
push eax
mov eax, dword [esp + 0x1c]
push str.Could_not_resolve_host:__s
push eax
call fcn.00474ea0
add esp, 0x10
jmp 0x477870
mov eax, dword [edi + 0x2cc]
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esi]
lea ebp, [esi + 8]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x477779
cmp byte [edi + 0x2c8], 0
je 0x477841
cmp byte [edi + 0x12b], 0
mov ecx, dword [edi + 0x2cc]
push ecx
push edi
je 0x47781b
call fcn.0047f590
mov edx, dword [edi + 0xa0]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_proxy:__s___s
push eax
call fcn.00474ea0
add esp, 0x18
mov esi, 5
jmp 0x477870
call fcn.0047f590
mov edx, dword [edi + 0x8c]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_host:__s___s
push eax
call fcn.00474ea0
add esp, 0x18
mov esi, 6
jmp 0x477870
cmp ebp, 0xffffffff
je 0x477852
cmp dword [edi + 0x2cc], 0x2afc
jne 0x47786b
mov ecx, dword [edi + 0x8c]
mov edx, dword [esp + 0x14]
push ecx
push str.Resolving_host_timed_out:__s
push edx
call fcn.00474ea0
add esp, 0xc
mov esi, 0x1c
lea eax, [edi + 0x2bc]
push eax
call fcn.00477460
add esp, 4
cmp dword [edi + 0x2c4], 0
mov eax, esi
jne 0x477890
mov byte [edi + 0x128], bl
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x477940
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
mov ebx, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push esi
push 2
mov dword [eax], 0
call fcn.0047f7b0
add esp, 0xc
test eax, eax
jle 0x477984
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push 2
call fcn.004771b0
add esp, 0x10
pop edi
pop esi
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call fcn.00477540
add esp, 8
test al, al
je 0x4779a8
mov ecx, dword [esp + 0x20]
pop ebp
pop edi
pop esi
mov dword [ecx], 1
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.0047f590
push eax
push esi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.00474e10
add esp, 0x18
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4779f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0047f590
push eax
push ebp
push esi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.00474e10
add esp, 0x1c
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push eax
call fcn.00477080
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x47ac00
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
cmp ebx, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jne 0x47ac40
cmp ebp, ebx
jne 0x47ac40
mov eax, dword [esp + 0x334]
call fcn.0047abe0
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x47ac5b
mov esi, edi
call fcn.0047c3c0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
je 0x47ac8f
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
cmp ebp, 0xffffffff
mov dword [esp + 0x228], eax
je 0x47acd6
test ecx, ecx
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
jbe 0x47acbe
cmp dword [esp + eax*4 + 0x24], ebp
je 0x47acbe
add eax, 1
cmp eax, ecx
jb 0x47acb1
cmp eax, ecx
jne 0x47acd0
cmp ecx, 0x40
jae 0x47acd0
mov dword [esp + eax*4 + 0x24], ebp
add dword [esp + 0x20], 1
cmp ebp, edx
jbe 0x47acd6
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
sub ebx, 1
and ebx, eax
lea esp, [esp]
xor eax, eax
cmp edi, eax
jle 0x47ad21
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x47ad2b
jne 0x47ad2b
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x47ad95
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x47ad5e
cmp eax, 0x2714
jne 0x47ad99
test edi, edi
jle 0x47acf0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.0047c3c0
push edx
push eax
call fcn.0047c3f0
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x47acf0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x47ada7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x47adb6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x47aded
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47addb
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47aded
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x47ae20
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47ae0e
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47ae20
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x47b850
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.0047c3c0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.0047c3f0
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x47b905
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.0047ac00
add esp, 0xc
test eax, eax
jle 0x47b905
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.00474b30
add esp, 0x10
test eax, eax
jne 0x47b908
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x47b910
test eax, eax
je 0x47b905
add dword [esp + 0x10], eax
sub edi, eax
add ebp, eax
call fcn.0047c3c0
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.0047c3f0
add esp, 0x10
cmp eax, ebx
jle 0x47b8a0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x47d050
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x47d05f
jmp dword [ecx*4 + 0x47d0b4]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x47d240
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x55709c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004f643c
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x47d2a5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x47d2a5
lea edx, [esp]
push edx
call dword [0x55600c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f4d5d
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004f4d5d
add esp, 0x108
ret
jmp 0x47d240
Function at 0x47d2c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x55709c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004f643c
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x47d2a5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x47d2a5
lea edx, [esp]
push edx
call dword [0x55600c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f4d5d
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004f4d5d
add esp, 0x108
ret
jmp 0x47d240
Function at 0x480690
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.004f51a0
mov eax, dword [0x55709c]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
push edi
mov edi, dword [esp + 0x9c]
je 0x480705
cmp ebx, dword [esi]
je 0x4806fc
test edi, edi
je 0x4806e2
cmp dword [esp + 0xa0], eax
jge 0x4806fc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004f4d5d
add esp, 0x88
ret
mov eax, 1
mov dword [esi], ebx
jmp 0x48070b
mov ebx, dword [esi]
test ebx, ebx
je 0x4806e2
test edi, edi
push ebp
je 0x4807dd
push ebx
call fcn.0049b550
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x48073b
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.00484f20
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
jge 0x480795
mov ecx, dword [esp + 0x10]
push ecx
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.004843c0
add esp, 0xc
test eax, eax
je 0x480898
mov edx, dword [esp + 0xa4]
push edx
push edi
push ebp
call fcn.00484570
add esp, 0xc
test eax, eax
je 0x480898
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.00484580
add esp, 0xc
test eax, eax
je 0x480898
jmp 0x4807ba
cmp eax, 0x80
ja 0x480898
push eax
lea ecx, [esi + 0x50]
push edi
push ecx
call fcn.004f10d0
mov edx, dword [esp + 0xb0]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x4807e5
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call fcn.004ef200
add esp, 0xc
jmp 0x4807e5
test eax, eax
je 0x480884
xor eax, eax
jmp 0x4807f0
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x4807f0
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebx
push ebp
call fcn.004843c0
add esp, 0xc
test eax, eax
je 0x480898
push ebx
call fcn.0049b550
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.00484570
add esp, 0x10
test eax, eax
je 0x480898
xor eax, eax
jmp 0x480840
mov dl, byte [esi + eax + 0x50]
xor dl, 0x5c
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x480840
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x34]
push ebx
push ebp
call fcn.004843c0
add esp, 0xc
test eax, eax
je 0x480898
push ebx
call fcn.0049b550
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.00484570
add esp, 0x10
test eax, eax
je 0x480898
lea edx, [esi + 0x1c]
push edx
add esi, 4
push esi
call fcn.004846e0
add esp, 8
test eax, eax
jne 0x48089c
xor eax, eax
jmp 0x4808a1
mov eax, 1
mov ecx, dword [esp + 0x94]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f4d5d
add esp, 0x88
ret
Function at 0x484de0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.004f51a0
mov eax, dword [0x55709c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x484e67
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x484e67
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.004f663d
add esp, 0x10
test eax, eax
jge 0x484e3d
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f4d5d
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.004f663d
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x484ef5
call fcn.00484ca0
test eax, eax
jle 0x484ef5
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
mov esi, eax
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f4d5d
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004f4d5d
add esp, 0x108
ret
Function at 0x4d6a20
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4d6a39
mov esi, edi
mov edi, eax
jmp 0x4d6a3b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4d6a4b
mov eax, ebx
jmp 0x4d6a55
push eax
push ebx
call fcn.0048fff0
add esp, 8
test eax, eax
jne 0x4d6a5d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4d6a7b
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x4d6a64
cmp eax, dword [esi + 4]
jge 0x4d6a92
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x4d6a80
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x4d6ab5
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4d6ab2
sub eax, 1
test eax, eax
jg 0x4d6aa2
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4ec2b4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x55709c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004ec1f3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004ef200
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4ec303
cmp dword [ebp - 0x1c], 5
jb 0x4ec31b
jmp 0x4ec317
cmp dword [ebp - 0x10], 1
jne 0x4ec31b
cmp dword [ebp - 0x1c], 4
ja 0x4ec317
jne 0x4ec31b
cmp dword [ebp - 0x18], 0
jbe 0x4ec31b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x538b14
call fcn.00407ce2
test eax, eax
jge 0x4ec33c
mov byte [0x55ebd0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004f4d5d
add ebp, 0x78
leave
ret
Function at 0x4ec5bb
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x55db30], 0
push esi
jne 0x4ec52e
call fcn.004ec459
test eax, eax
je 0x4ec571
mov eax, dword [0x55db30]
cmp eax, 1
jne 0x4ec54f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4ec571
pop esi
ret
push eax
call dword [0x55db38]
test eax, eax
jne 0x4ec5b9
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4ec575
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x55db30]
call dword [0x55db38]
mov edi, eax
test edi, edi
je 0x4ec59c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4ec5b8
lea edi, [esi + 0xff0]
push esi
push dword [0x55db30]
call dword [0x55db34]
add esi, 0x10
cmp esi, edi
jb 0x4ec5a2
mov eax, esi
pop edi
pop esi
ret
jmp 0x4ec51b
Function at 0x4eef3e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4eef7b
cmp dword [ebp + 0x14], edi
je 0x4eef7b
cmp ecx, edi
jne 0x4eef82
call fcn.004f5eb0
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004eeb6a
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4eef96
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4eefb7
cmp ebx, 0xffffffff
je 0x4eefa6
push ebx
push edi
push ecx
call fcn.004ef200
add esp, 0xc
cmp esi, edi
je 0x4eef63
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4eef63
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4eefd3
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4eefda
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4ef0cb
test word [esi + 0xc], 0x10c
je 0x4ef02e
mov eax, dword [esi + 4]
test eax, eax
je 0x4ef02e
jl 0x4ef12c
cmp ebx, eax
mov edi, ebx
jb 0x4eefff
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4ef0d3
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004ee478
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4ef0c3
cmp ebx, dword [ebp - 0xc]
jb 0x4ef09b
cmp dword [ebp - 0xc], 0
je 0x4ef058
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4ef04d
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4ef054
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4ef063
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4ef063
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4ef0ff
push eax
push dword [ebp - 8]
push esi
call fcn.004f1983
pop ecx
push eax
call fcn.004fd8f6
add esp, 0xc
test eax, eax
je 0x4ef13e
cmp eax, 0xffffffff
je 0x4ef12c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4ef0c3
push esi
call fcn.004fd215
cmp eax, 0xffffffff
pop ecx
je 0x4ef130
cmp dword [ebp - 4], 0
je 0x4ef0ff
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4eefe2
mov eax, dword [ebp + 0x14]
jmp 0x4eef7d
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ef0ea
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004ef200
add esp, 0xc
call fcn.004f5eb0
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4eef73
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ef115
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004ef200
add esp, 0xc
call fcn.004f5eb0
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4eef73
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4eef7d
or dword [esi + 0xc], 0x10
jmp 0x4ef130
Function at 0x4f280b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4f2838
call fcn.004f5ec3
mov dword [eax], esi
call fcn.004f5eb0
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004eeb6a
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4f2814
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f2867
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f5ed6
pop ecx
call fcn.004f5eb0
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4f288e
test al, 1
je 0x4f288e
test byte [esp + 0xc], 2
je 0x4f288e
call fcn.004f5ec3
mov dword [eax], 5
call fcn.004f5eb0
mov dword [eax], 0xd
jmp 0x4f285e
xor eax, eax
pop esi
ret

Function at 0x4f4d5d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55709c]
jne 0x4f4d67
repz ret
jmp fcn.00505f37

Function at 0x4fab1f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x557c08]
je 0x4fab3a
inc edi
cmp edi, 0x17
jb 0x4fab2b
cmp edi, 0x17
jae 0x4facba
push ebp
push 3
call fcn.00507aa7
cmp eax, 1
pop ecx
je 0x4fac86
push 3
call fcn.00507aa7
test eax, eax
pop ecx
jne 0x4fab6e
cmp dword [0x557098], 1
je 0x4fac86
cmp ebx, 0xfc
je 0x4facb9
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x55dc48
push ebp
call fcn.004f290d
add esp, 0xc
test eax, eax
je 0x4faba4
push esi
push esi
push esi
push esi
push esi
call fcn.004eea6e
add esp, 0x14
push 0x104
mov esi, 0x55dc61
push esi
push 0
mov byte [0x55dd65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4fabe8
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004f290d
add esp, 0xc
test eax, eax
je 0x4fabe8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004eea6e
add esp, 0x14
push esi
call fcn.004ec650
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4fac2d
push esi
call fcn.004ec650
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x55df5c
push 0x53a334
sub ecx, eax
push ecx
push eax
call fcn.00504e88
add esp, 0x14
test eax, eax
je 0x4fac2d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004eea6e
add esp, 0x14
jmp 0x4fac2f
xor esi, esi
push 0x53a330
push ebx
push ebp
call fcn.00504e17
add esp, 0xc
test eax, eax
je 0x4fac4f
push esi
push esi
push esi
push esi
push esi
call fcn.004eea6e
add esp, 0x14
push dword [edi*8 + 0x557c0c]
push ebx
push ebp
call fcn.00504e17
add esp, 0xc
test eax, eax
je 0x4fac71
push esi
push esi
push esi
push esi
push esi
call fcn.004eea6e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.005078ea
add esp, 0xc
jmp 0x4facb9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4facb9
cmp ebp, 0xffffffff
je 0x4facb9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x557c0c]
push dword [esi]
call fcn.004ec650
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret