joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420cd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov dword [ebp - 0x18], eax
mov ebx, ecx
push edi
add eax, 0x1c
push eax
push 0x58
call fcn.00419cf0
mov edi, eax
add esp, 8
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x420d08
mov eax, dword [eax + 8]
mov edx, ecx
lock inc dword [ecx + 8]
jmp 0x420d0a
xor eax, eax
mov dword [edi + 0x14], 0
lea esi, [edx + 8]
mov dword [edi + 0x18], 0x424370
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
test edx, edx
je 0x420d5f
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
lock inc dword [esi]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x2c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0x28], eax
mov eax, dword [ecx]
mov dword [edi + 0x30], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [edi + 0x38], ecx
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0x34], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x3c], eax
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x40], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov dword [edi + 0x48], ecx
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0x44], eax
mov eax, dword [ecx + 0x1c]
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x4c], eax
mov eax, dword [ecx + 0x20]
mov dword [edi + 0x50], eax
mov eax, dword [ecx + 0x24]
mov dword [edi + 0x54], eax
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
test edx, edx
je 0x420de1
or eax, 0xffffffff
lock xadd dword [esi], eax
jne 0x420de1
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 4]
test byte [ecx + 4], 0x10
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], edx
je 0x420e15
test edx, edx
jne 0x420e15
mov eax, dword [ebx + 4]
add eax, 0x18
lock inc dword [eax]
mov ecx, dword [ebx + 4]
push edx
push edx
push edi
call fcn.0041b870
jmp 0x420e8b
mov eax, dword [ebx + 4]
add eax, 0x18
lock inc dword [eax]
mov eax, dword [ecx]
push 0
cmp eax, 0xffffffff
jne 0x420e37
mov ecx, dword [ebx + 4]
push 0x2719
push edi
call fcn.0041b870
jmp 0x420e8b
push edi
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
mov dword [ebp + 0x14], 0
push ecx
push 1
lea ecx, [ebp - 0xc]
push ecx
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 0x420e82
cmp eax, 0x3e5
je 0x420e82
push dword [ebp + 0x14]
mov ecx, dword [ebx + 4]
push eax
push edi
call fcn.0041b870
jmp 0x420e8b
mov ecx, dword [ebx + 4]
push edi
call fcn.0041b8f0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.00425ac0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x420ef0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, dword [eax + 8]
cmp esi, 0xffffffff
jne 0x420f14
call fcn.0041b1c0
mov ecx, dword [edi]
pop edi
add ecx, 8
pop esi
pop ebp
jmp fcn.004233c0
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
call fcn.0041b1c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [edi]
pop edi
add ecx, 8
pop esi
pop ebp
jmp fcn.004233c0
Function at 0x4216d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4467ed
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x45902c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 8]
push dword [0x45d5b0]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42171f
cmp dword [eax], esi
je 0x421883
mov eax, dword [eax + 8]
test eax, eax
jne 0x421710
mov esi, dword [ebp + 0xc]
push esi
push 0x54
mov dword [ebp - 0x38], esi
call fcn.00419cf0
add esp, 8
mov edi, eax
lea ecx, [edi + 0x20]
mov dword [ebp - 4], 1
push esi
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x423f00
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
call fcn.00421cd0
mov esi, dword [ebp - 0x10]
mov ecx, esi
push edi
push ebx
call fcn.00424660
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
test al, al
je 0x42186f
mov eax, dword [ebx]
push dword [0x45d5b0]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x45d5b0]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
lea ebx, [edi + 0x20]
push ebx
lea ecx, [ebp - 0x6c]
call fcn.00421cd0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x2c], eax
mov esi, edi
test edi, edi
je 0x421817
mov ecx, ebx
call fcn.004224e0
xor esi, esi
mov dword [ebp - 0x24], 0
test edi, edi
je 0x421817
lea eax, [ebp - 0x6c]
push eax
push 0x54
push edi
call fcn.00419d60
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x14], 0
je 0x421831
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 6
push eax
push eax
call fcn.004210d0
add esp, 8
xchg dword [ebp + 0xc], eax
lea ecx, [ebp - 0x6c]
call fcn.004224e0
test esi, esi
je 0x421845
lea ecx, [esi + 0x20]
call fcn.004224e0
test edi, edi
je 0x421858
lea eax, [ebp - 0x6c]
push eax
push 0x54
push edi
call fcn.00419d60
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.004225e0
push dword [ebp - 0x18]
push dword [0x45d5b0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [eax + 4], 0
je 0x42171f
push 0
lea ecx, [ebp + 0xb]
call fcn.004222a0
mov eax, dword [ebp + 0xc]
push eax
push eax
mov dword [ebp - 4], 0
call fcn.004210d0
add esp, 8
xchg dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x424660
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
push dword [0x45d59c]
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0x14]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x424690
cmp dword [eax], esi
je 0x4246cf
mov eax, dword [eax + 8]
test eax, eax
jne 0x424685
mov eax, dword [ebx]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx]
cmp byte [eax + 0x38], 0
je 0x424722
mov dword [edi + 0x14], 0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x424705
mov dword [ecx + 0x14], edi
mov dword [eax + 0x40], edi
mov eax, dword [ebx]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [eax + 4]
mov eax, dword [ebx]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
je 0x42469c
mov eax, dword [ebx]
cmp byte [eax + 0x38], 0
jne 0x42469c
mov byte [eax + 0x38], 1
mov eax, dword [ebx]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [eax + 0x3c], edi
mov dword [eax + 0x40], edi
mov eax, dword [ebx]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov byte [eax + 0x38], 1
mov eax, dword [ebx]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx]
add eax, 0x44
mov dword [edi + 0x14], 0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x42474a
mov dword [ecx + 0x14], edi
jmp 0x42474c
mov dword [eax], edi
mov ecx, dword [ebp - 4]
mov dword [eax + 4], edi
push 0
push dword [ebx]
mov ecx, dword [ecx + 0x14]
call fcn.00425830
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x426d7a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x426db9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426db9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426db9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x426db9
cmp dword [ecx + 0x74], 0xe
jbe 0x426db9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4289ee
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x428a0f
jl 0x428a06
test edi, edi
jne 0x428a0f
xor eax, eax
xor edx, edx
jmp 0x428ad0
cmp dword [ebx + 0x38], 0
je 0x428a24
push eax
push edi
push dword [ebp + 8]
call fcn.00428ad6
jmp 0x428ad0
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x428a6b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x428a6b
cmp eax, edi
jb 0x428a45
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00429de0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x428a71
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x428ac5
mov ecx, ebx
call fcn.004281bc
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x428ab0
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004349f4
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x428ac5
jmp 0x428a83
test edx, edx
je 0x428ac5
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004349f4
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x428de8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00428dc4
pop esi
leave
ret 8

Function at 0x438476
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44e9c8
push 0x44e9c0
push str.FlsAlloc
push 0x1e
call fcn.004382e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4384aa
push dword [ebp + 8]
mov ecx, esi
call dword [0x4481f0]
call esi
jmp 0x4384b0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4384f4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44e9d8
push 0x44e9d0
push str.FlsGetValue
push 0x20
call fcn.004382e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43852b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4481f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x43c264
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x43c301
push ebx
push esi
call fcn.0043c22d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0043c176
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43c2ae
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43c300
push edi
push eax
call fcn.00436eba
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43c2ce
call fcn.0043653f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43c2ff
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043c176
add esp, 0x20
test eax, eax
jne 0x43c2ed
push edi
call fcn.0043653f
jmp 0x43c2f5
push ebx
call fcn.0043653f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x440473
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004402e4
Function at 0x44086d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00425e00
mov eax, dword [0x45902c]
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.00437cef
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4408af
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x440a0b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00444730
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 + 0x45e200]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004415f2
mov ecx, dword [esi*4 + 0x45e200]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x440a04
cmp eax, dword [edi + ecx + 0x24]
jne 0x440a04
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x440a04
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004415f2
add esp, 0x14
test edx, edx
jl 0x440a04
jg 0x44097a
test eax, eax
jb 0x440a04
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x440a04
jl 0x440994
cmp dword [ebp - 0x1008], eax
ja 0x440a04
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4409b2
test ebx, ebx
je 0x4409eb
cmp ecx, edi
jae 0x4409eb
mov al, byte [ecx]
cmp al, 0xd
jne 0x4409cc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4409d8
cmp byte [ecx + 1], 0xa
jne 0x4409d8
inc ecx
jmp 0x4409d8
movzx eax, al
movsx eax, byte [eax + 0x459800]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4409b2
cmp edx, ebx
jne 0x4409b2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x440a09
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00425de4
leave
ret
Function at 0x440aaa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x45e200]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x440aea
cmp byte [ebx], 0xa
jne 0x440aea
or byte [eax + edi + 0x28], 4
jmp 0x440aef
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x440bed
mov al, byte [edx]
cmp al, 0x1a
je 0x440bcf
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x440b1e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x440b43
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x440b4d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x440b00
jmp 0x440bed
push 0
lea eax, [ebp - 0xc]
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 0x440bca
cmp dword [ebp - 0xc], 0
je 0x440bca
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x45e200]
test byte [eax + edi + 0x28], 0x48
je 0x440ba4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x440b8f
mov byte [esi], dl
jmp 0x440ba0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45e200]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x440bed
cmp byte [ebp - 1], 0xa
jne 0x440bb3
cmp esi, ebx
jne 0x440bb3
mov byte [esi], 0xa
jmp 0x440bec
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00441610
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x440bed
mov byte [esi], 0xd
jmp 0x440bec
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x45e200]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x440be9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x440bed
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x440bf6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x45e200]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x440c39
cmp word [esi], dx
jne 0x440c39
or byte [edi + eax + 0x28], 4
jmp 0x440c3e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x440d77
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x440d57
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x440c80
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x440cb6
cmp eax, edx
jae 0x440cc2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x440c58
jmp 0x440d77
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x440d53
cmp dword [ebp - 0x14], 0
je 0x440d53
mov eax, dword [ebx*4 + 0x45e200]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x440d2b
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x440d71
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x45e200]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x45e200]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x45e200]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x440d74
pop ebx
cmp word [ebp - 4], bx
jne 0x440d3c
cmp esi, dword [ebp + 0xc]
jne 0x440d3c
mov word [esi], bx
jmp 0x440d74
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00441610
add esp, 0x10
cmp word [ebp - 4], bx
je 0x440d77
push 0xd
jmp 0x440d70
mov ecx, dword [ebx*4 + 0x45e200]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x440d6e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x440d77
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x444650
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44467d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44467d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40107e
mov eax, 0x80070057
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4010a3
pop esi
mov eax, 0x80070057
pop ebx
ret
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4010d4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4010c4
call esi
pop edi
pop esi
pop ebx
ret
call esi
pop edi
and eax, 0xffff
pop esi
or eax, 0x80070000
pop ebx
ret
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401109
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x401136
call esi
pop ebp
pop edi
and eax, 0xffff
pop esi
or eax, 0x80070000
pop ebx
ret
push ebp
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40112a
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
push ebx
jne 0x40113d
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4010f8
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
pop ebp
pop edi
pop esi
pop ebx
ret