joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fa40
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044fb90
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44fa60
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44fa41
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044fb90
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44fa60
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44fa90
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44fae7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44fafd
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044fb20
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44fb20
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44fbb0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44fbf9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x450070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x472e10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044fc20
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044fca0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044fca0
lea ecx, [esi + 0xc]
call fcn.004646a1
lea ecx, [esi + 0x10]
call fcn.004646a1
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004524d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004524d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004524d0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00464716
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00464716
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x450d18
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x473038
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x450d28
call fcn.00451240
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x450e0b
cmp byte [edi], 0
je 0x450e0b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x450d4d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044fa40
test eax, eax
jne 0x450d6d
push 0x50c538
lea ecx, [esi + 0x38]
call fcn.00464853
jmp 0x450e0b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044fa90
test eax, eax
jne 0x450d9c
mov ecx, esi
call fcn.0044fb90
push edi
add esi, 0x38
push 0x50c514
push esi
call fcn.0046251a
add esp, 0xc
jmp 0x450e0b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00451ac0
test eax, eax
je 0x450e04
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00450ee0
test eax, eax
jne 0x450e20
push edi
lea eax, [esi + 0x38]
push 0x50c4f0
push eax
call fcn.0046251a
add esp, 0xc
mov ecx, esi
call fcn.00451240
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x450ec8
mov ecx, dword [0x50c7a8]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0046251a
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044fb40
test eax, eax
jne 0x450e8a
push 0x50c4d4
lea ecx, [esi + 0x38]
call fcn.00464853
jmp 0x450e9a
push 0xfa
mov ecx, esi
call fcn.00451ac0
test eax, eax
jne 0x450eb7
mov ecx, esi
call fcn.00451240
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00464716
jmp 0x450e0b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00464716
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x466abd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x466af5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00464b71
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00464b49
jmp 0x466b01
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4681ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4681ed
call fcn.0046dd24
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4681ed
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4681e4
xor eax, eax
jmp 0x4681f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004681fb
pop edi
pop esi
pop ebx
ret 4

Function at 0x46e254
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46e282
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e2a0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046e1ba
jmp 0x46e2a0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46e2a0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046e1ba
test edi, edi
mov eax, edi
jne 0x46e28a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4014b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401507
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401507
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4014f6
cmp esi, edx
jae 0x401507
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4014e4
cmp esi, edx
jae 0x401507
movzx eax, word [esi]
neg eax
pop edi
sbb eax, eax
and eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x401940
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44841f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.0040b9c1
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x4019cb
push eax
push esi
call fcn.0040f5e8
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.0040bb69
int3
Function at 0x405a40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4487fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
mov edi, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 2
call fcn.004015f0
mov ecx, eax
test ecx, ecx
je 0x405b75
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 1
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0x1000
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edx, dword [ebp - 0x10]
test edx, edx
js 0x405b6b
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x405acd
push edx
mov ecx, esi
call fcn.00403980
lea eax, [ebp - 0x10]
push eax
push dword [esi]
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esi]
test eax, eax
jne 0x405aef
xor ecx, ecx
jmp 0x405b01
push dword [eax - 8]
push eax
call fcn.00428aac
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x405b6b
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x405b6b
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405b3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x405b59
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004013c0
push 0x80004005
call fcn.004013c0
int3
Function at 0x407de0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448c1d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x464
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
call fcn.004015f0
mov ecx, eax
test ecx, ecx
je 0x407f90
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.I3VxWigsKA
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00403560
test al, al
jne 0x407e4c
push 0xc
push str.I3VxWigsKA
mov ecx, esi
call fcn.004039e0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00402190
add esp, 4
push dword [eax]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x14]
or ebx, 0xffffffff
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407e8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x407f60
lea esp, [esp]
lea eax, [ebp - 0x440]
push eax
push dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
call fcn.004015f0
test eax, eax
je 0x407f90
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.I3VxWiN1cQ
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00403560
test al, al
jne 0x407efb
push 0xc
push str.I3VxWiN1cQ
mov ecx, esi
call fcn.004039e0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00402190
add esp, 4
push dword [eax]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x14]
add esp, 0x10
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407f36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x46c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407eb0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x407f7f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004013c0
int3
Function at 0x422f63
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00432415
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x422fa2
sub eax, 1
je 0x422f9d
sub eax, 1
je 0x422f99
xor eax, eax
leave
ret
push 3
jmp 0x422fa4
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x42423a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x424279
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x424279
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x424279
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x424279
cmp dword [ecx + 0x74], 0xe
jbe 0x424279
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43b10b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ff10
push 0x44ff08
push str.FlsAlloc
push 0x1f
call fcn.0043af76
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b13f
push dword [ebp + 8]
mov ecx, esi
call dword [0x44b21c]
call esi
jmp 0x43b145
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43b189
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ff20
push 0x44ff18
push str.FlsGetValue
push 0x21
call fcn.0043af76
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b1c0
push dword [ebp + 8]
mov ecx, esi
call dword [0x44b21c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43b1c8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ff28
push 0x44ff20
push str.FlsSetValue
push 0x22
call fcn.0043af76
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b202
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44b21c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43bedd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00424690
mov eax, dword [0x45b068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0043862a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43bf1f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43c07b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00447f60
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x45d528]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0043ccde
mov ecx, dword [esi*4 + 0x45d528]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x43c074
cmp eax, dword [ecx + edi + 0x24]
jne 0x43c074
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c074
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043ccde
add esp, 0x14
test edx, edx
jl 0x43c074
jg 0x43bfea
test eax, eax
jb 0x43c074
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43c074
jl 0x43c004
cmp dword [ebp - 0x1008], eax
ja 0x43c074
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43c022
test ebx, ebx
je 0x43c05b
cmp ecx, edi
jae 0x43c05b
mov al, byte [ecx]
cmp al, 0xd
jne 0x43c03c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43c048
cmp byte [ecx + 1], 0xa
jne 0x43c048
inc ecx
jmp 0x43c048
movzx eax, al
movsx eax, byte [eax + 0x45b2e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43c022
cmp edx, ebx
jne 0x43c022
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43c079
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00423cb7
leave
ret
Function at 0x43c176
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x45d528]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43c1b6
cmp byte [ebx], 0xa
jne 0x43c1b6
or byte [edi + eax + 0x28], 4
jmp 0x43c1bb
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x43c2ba
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43c29d
inc eax
cmp dl, 0xd
je 0x43c1e7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43c20d
cmp eax, ecx
jae 0x43c21b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x43c1cf
jmp 0x43c2ba
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c298
cmp dword [ebp - 0x10], 0
je 0x43c298
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x45d528]
test byte [eax + edi + 0x28], 0x48
je 0x43c272
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43c25d
mov byte [esi], dl
jmp 0x43c26e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45d528]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43c2ba
cmp byte [ebp - 1], 0xa
jne 0x43c281
cmp esi, ebx
jne 0x43c281
mov byte [esi], 0xa
jmp 0x43c2b9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043ccfc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43c2ba
mov byte [esi], 0xd
jmp 0x43c2b9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x45d528]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43c2b7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43c2ba
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43c2c3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x45d528]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43c309
cmp word [ebx], dx
jne 0x43c309
or byte [eax + edi + 0x28], 4
jmp 0x43c30e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x43c471
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x43c451
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43c34f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43c385
cmp eax, edx
jae 0x43c393
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x43c32a
jmp 0x43c471
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c44c
cmp dword [ebp - 0x18], 0
je 0x43c44c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x45d528]
test byte [eax + edi + 0x28], 0x48
je 0x43c422
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x43c3e6
mov word [esi], cx
jmp 0x43c41d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x45d528]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x45d528]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x45d528]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43c471
pop eax
cmp word [ebp - 4], ax
jne 0x43c432
cmp esi, ebx
jne 0x43c432
mov word [esi], ax
jmp 0x43c46e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043ccfc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43c471
push 0xd
pop eax
jmp 0x43c42d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x45d528]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43c46b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43c471
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret