joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b5520
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x24
mov eax, dword [0x6ab0d4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x30]
mov eax, dword [ebx]
sub eax, 2
je 0x5b55a2
sub eax, 0x15
je 0x5b5558
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005697c8
add esp, 0x24
ret
xorps xmm0, xmm0
mov dword [esp + 8], 0x1c
mov eax, 0x17
movq qword [esp + 0x1c], xmm0
movups xmmword [esp + 0xc], xmm0
mov word [esp + 0xc], ax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x24], 0
test eax, eax
je 0x5b558a
push eax
jmp 0x5b558d
push dword [esi + 0x14]
call fcn.00581530
movups xmm0, xmmword [ebx + 4]
mov word [esp + 0x12], ax
movups xmmword [esp + 0x18], xmm0
jmp 0x5b55da
xorps xmm0, xmm0
mov dword [esp + 8], 0x10
mov eax, 2
movups xmmword [esp + 0xc], xmm0
mov word [esp + 0xc], ax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x5b55c6
push eax
jmp 0x5b55c9
push dword [esi + 0x14]
call fcn.00581530
mov word [esp + 0x12], ax
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x91b8]
add esp, 4
mov ecx, dword [ebx]
push edi
test eax, eax
je 0x5b55fe
push dword [esi + 0x91bc]
mov eax, dword [eax]
push 0
push 2
push ecx
call eax
add esp, 0x10
jmp 0x5b5609
push 0
push 2
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x5b5655
push esi
push dword [ebx]
push edi
call fcn.005b4d00
add esp, 0xc
test eax, eax
jns 0x5b566a
mov eax, dword [esi + 0x91b8]
test eax, eax
je 0x5b564e
push dword [esi + 0x91bc]
mov eax, dword [eax + 4]
push edi
call eax
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005697c8
add esp, 0x24
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005697c8
add esp, 0x24
ret
mov eax, dword [esi + 0x91b0]
push ebp
test eax, eax
je 0x5b5689
push dword [esi + 0x91b4]
push 2
push edi
call eax
mov ebp, eax
add esp, 0xc
test ebp, ebp
js 0x5b56f3
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push edi
push esi
call fcn.005b49c0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5b56d5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x5b56d5
cmp eax, 0x2733
je 0x5b56d5
push edi
push esi
call fcn.005b4990
add esp, 8
or eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005697c8
add esp, 0x24
ret
mov eax, dword [esi + 0x91a8]
test eax, eax
je 0x5b5712
push dword [esi + 0x91ac]
push 2
push edi
call eax
mov ebp, eax
add esp, 0xc
test ebp, ebp
jns 0x5b5712
push edi
push esi
call fcn.005b4990
add esp, 8
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005697c8
add esp, 0x24
ret
mov eax, dword [esi + 0x91a0]
test eax, eax
je 0x5b572c
push 0
push 1
push edi
push dword [esi + 0x91a4]
call eax
add esp, 0x10
mov ecx, dword [esp + 0x30]
xor eax, eax
pop ebp
mov dword [ebx + 0x1c], edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005697c8
add esp, 0x24
ret
Function at 0x5b6290
Capabilities:
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x5b62a9
cmp edx, 0xffffffff
je 0x5b64a7
push ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
cmp dword [ebx + 0x78], 0
jle 0x5b64a6
xor ecx, ecx
xor eax, eax
push esi
mov dword [esp + 0xc], ecx
push edi
nop word [eax + eax]
mov edi, dword [ebx + 0x74]
add edi, ecx
cmp dword [edi + 0x38], 0
je 0x5b648d
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x5b6489
cmp dword [edi + 0x54], 0
jne 0x5b6489
test ebp, ebp
je 0x5b6349
push ebp
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5b6485
mov edx, dword [ebp]
xor eax, eax
test edx, edx
je 0x5b6351
mov esi, dword [edi + 0x20]
lea ecx, [ebp + 4]
cmp dword [ecx], esi
je 0x5b6325
inc eax
add ecx, 4
cmp eax, edx
jb 0x5b6317
jmp 0x5b6351
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x5b6344
lea edx, [ebp + 4]
lea edx, [edx + eax*4]
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], ecx
inc eax
mov ecx, dword [ebp]
dec ecx
cmp eax, ecx
jb 0x5b6332
dec dword [ebp]
jmp 0x5b6351
cmp eax, edx
jne 0x5b6489
mov eax, dword [edi + 0x38]
xor ecx, ecx
test eax, eax
je 0x5b6368
nop word [eax + eax]
mov eax, dword [eax + 0x10]
inc ecx
test eax, eax
jne 0x5b6360
lea eax, [ecx*8]
push eax
call dword [0x6ab138]
mov esi, eax
add esp, 4
test esi, esi
je 0x5b6411
mov ecx, dword [edi + 0x38]
xor edx, edx
test ecx, ecx
je 0x5b63a9
nop dword [eax]
mov eax, dword [ecx]
mov dword [esi + edx*8], eax
mov eax, dword [ecx + 4]
mov dword [esi + edx*8 + 4], eax
inc edx
cmp edx, 0x10
jae 0x5b63a9
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x5b6390
mov ecx, dword [ebx + 0x91b8]
mov eax, dword [edi + 0x20]
test ecx, ecx
je 0x5b63c9
push dword [ebx + 0x91bc]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x10
jmp 0x5b63d4
push edx
push esi
push eax
call fcn.005b91c0
add esp, 0xc
push esi
mov edi, eax
call dword [0x6ab140]
add esp, 4
test edi, edi
jns 0x5b640e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x5b6485
cmp eax, 0x2733
je 0x5b6485
push dword [esp + 0x2c]
push dword [esp + 0x28]
push ebx
call fcn.005b4fb0
jmp 0x5b6482
push edi
jmp 0x5b6478
mov eax, dword [edi + 0x38]
mov esi, dword [ebx + 0x91b8]
mov edx, dword [edi + 0x20]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test esi, esi
je 0x5b6446
push dword [ebx + 0x91bc]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push 1
push eax
mov dword [esp + 0x24], ecx
mov eax, dword [esi + 0x10]
push edx
call eax
add esp, 0x10
jmp 0x5b6451
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5b6477
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x5b6485
cmp eax, 0x2733
je 0x5b6485
push dword [esp + 0x2c]
push dword [esp + 0x28]
push ebx
call fcn.005b4fb0
jmp 0x5b6482
push eax
push dword [esp + 0x28]
push ebx
call fcn.005b4900
add esp, 0xc
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], 0x58
inc eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
cmp eax, dword [ebx + 0x78]
jl 0x5b62d0
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret
Function at 0x5b6cf0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 2
jne 0x5b6cfe
lea ecx, [eax + 2]
jmp 0x5b6d06
cmp eax, 0x17
jne 0x5b6d63
lea ecx, [eax - 7]
push esi
sub eax, 2
je 0x5b6d31
sub eax, 0x15
je 0x5b6d21
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
jmp 0x5b6d49
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.005b7240
jmp 0x5b6d3f
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.005b6ed0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x5b6d58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x5b6d58
xor eax, eax
pop esi
ret
sar esi, 0x1f
and esi, 0xfffffffe
lea eax, [esi + 1]
pop esi
ret
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
ret

Function at 0x5b7ae0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov cl, byte [eax + 0x100]
xor edi, edi
mov dl, byte [eax + 0x101]
test ebp, ebp
jle 0x5b7b57
push ebx
movzx ebx, cl
push esi
movzx ecx, dl
inc bl
mov dh, bl
movzx ebx, dh
mov dl, byte [ebx + eax]
add cl, dl
movzx esi, cl
mov byte [esp + 0x14], cl
mov dword [esp + 0x1c], esi
movzx ecx, byte [esi + eax]
mov byte [ebx + eax], cl
mov byte [esi + eax], dl
movzx ecx, byte [ebx + eax]
mov esi, dword [esp + 0x18]
add cl, dl
movzx ecx, cl
movzx ecx, byte [ecx + eax]
xor byte [edi + esi], cl
inc edi
mov ecx, dword [esp + 0x1c]
cmp edi, ebp
jl 0x5b7b04
mov cl, byte [esp + 0x14]
pop esi
pop ebx
pop edi
mov byte [eax + 0x100], dh
mov byte [eax + 0x101], cl
pop ebp
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebp
ret
Function at 0x5b8320
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x6ab0d4]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
push esi
mov esi, dword [esp + 0x220]
xor eax, eax
test dword [esi + 0x14], 0x100
lea ebp, [esi + 0x14]
je 0x5b8358
push str.CARES_HOSTS
call fcn.005e2a25
add esp, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x91c4]
test ecx, ecx
cmovne eax, ecx
test eax, eax
jne 0x5b8428
mov byte [esp + 0x10], al
call fcn.005b7510
cmp eax, 3
jne 0x5b83e7
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5b83fc
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x104
push eax
lea eax, [esp + 0x118]
push eax
push 0
push 0
push str.DatabasePath
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x104
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5b83fc
cmp eax, 2
jne 0x5b8458
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x10]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x5b8401
mov eax, dword [str.hosts]
mov dword [ecx], eax
mov ax, word [0x6825e8]
mov word [ecx + 4], ax
mov al, byte [0x6825ea]
mov byte [ecx + 6], al
lea eax, [esp + 0x10]
push ebx
push edi
push 0x60f414
push eax
call fcn.005e0855
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x5b8474
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
mov ecx, 1
cmp ecx, eax
sbb edi, edi
and edi, 0xa
add edi, 4
jmp 0x5b8495
pop esi
mov eax, 4
pop ebp
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.005697c8
add esp, 0x214
ret
push dword [esi + 0x30]
movzx eax, word [esi + 8]
push ebp
push eax
push dword [esi + 4]
push ebx
call fcn.005ba0d0
push ebx
mov edi, eax
call fcn.005e08e2
add esp, 0x18
test edi, edi
je 0x5b84b9
mov ebx, dword [esi + 4]
push ebx
call fcn.005b85b0
add esp, 4
test eax, eax
je 0x5b84b9
push dword [esi + 0x30]
movzx eax, word [esi + 8]
push ebp
push eax
push ebx
call fcn.005ba560
add esp, 0x10
jmp 0x5b84bb
mov eax, edi
mov ecx, dword [esp + 0x220]
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.005697c8
add esp, 0x214
ret
Function at 0x5b91c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
test edi, edi
jg 0x5b91dd
push 0x2726
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
or eax, 0xffffffff
pop ebx
ret
push ebp
xor ecx, ecx
push esi
test edi, edi
jle 0x5b9280
mov esi, dword [esp + 0x18]
add esi, 4
mov edx, esi
mov ebp, dword [edx]
mov eax, bind
sub eax, ebx
cmp ebp, eax
ja 0x5b926d
inc ecx
add ebx, ebp
add edx, 8
cmp ecx, edi
jl 0x5b91f2
test ebx, ebx
je 0x5b9280
push ebx
call dword [0x6ab138]
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x5b922f
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
pop edi
or eax, 0xffffffff
pop ebx
ret
mov ebp, eax
push dword [esi]
push dword [esi - 4]
push ebp
call fcn.005d20b0
add ebp, dword [esi]
lea esi, [esi + 8]
add esp, 0xc
sub edi, 1
jne 0x5b9231
push edi
mov edi, dword [esp + 0x20]
push ebx
push edi
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_send]
push edi
mov esi, eax
call dword [0x6ab140]
add esp, 4
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
ret
push 0x2726
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
pop edi
or eax, 0xffffffff
pop ebx
ret
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
ret
Function at 0x5b9750
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, ebx
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x5b9760
mov dword [esp + 8], 0
sub edi, ecx
je 0x5b979d
cmp byte [edi + ebx - 1], 0x2e
jne 0x5b979d
push ebx
call fcn.005b76d0
mov ecx, dword [esp + 0x24]
mov edx, eax
add esp, 4
mov eax, 0xf
mov dword [ecx], edx
xor ecx, ecx
test edx, edx
pop edi
cmovne eax, ecx
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
test byte [eax], 0x40
jne 0x5b995a
push 0x2e
push ebx
call fcn.005d2a10
add esp, 8
test eax, eax
jne 0x5b995a
push str.HOSTALIASES
call fcn.005e2a25
add esp, 4
test eax, eax
je 0x5b995a
push 0x60f414
push eax
call fcn.005e0855
mov ebp, eax
add esp, 8
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x5b9933
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.005bacc0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x5b9880
nop dword [eax]
push edi
push ebx
push dword [esp + 0x18]
call fcn.005b8a20
add esp, 0xc
test eax, eax
jne 0x5b9867
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + edi]
push eax
call fcn.005e205d
add esp, 4
test eax, eax
je 0x5b9867
mov esi, dword [esp + 0x10]
add esi, edi
movzx eax, byte [esi]
push eax
call fcn.005e205d
add esp, 4
test eax, eax
je 0x5b9862
nop dword [eax]
movzx eax, byte [esi + 1]
inc esi
push eax
call fcn.005e205d
add esp, 4
test eax, eax
jne 0x5b9850
cmp byte [esi], 0
jne 0x5b98ae
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.005bacc0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x5b9810
push dword [esp + 0x10]
call dword [0x6ab140]
push ebp
call fcn.005e08e2
add esp, 8
test esi, esi
je 0x5b995a
cmp esi, 0xd
je 0x5b995a
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0xc
ret
mov al, byte [esi + 1]
lea edi, [esi + 1]
test al, al
je 0x5b98d8
nop dword [eax + eax]
movzx eax, al
push eax
call fcn.005e205d
add esp, 4
test eax, eax
jne 0x5b98d8
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5b98c0
mov ebx, edi
sub ebx, esi
lea eax, [ebx + 1]
push eax
call dword [0x6ab138]
mov ebp, dword [esp + 0x2c]
add esp, 4
mov dword [ebp], eax
test eax, eax
je 0x5b9908
push ebx
push esi
push eax
call fcn.005d20b0
mov eax, dword [ebp]
add esp, 0xc
sub eax, esi
mov byte [eax + edi], 0
push dword [esp + 0x10]
call dword [0x6ab140]
push dword [esp + 0x1c]
call fcn.005e08e2
add esp, 8
xor ecx, ecx
cmp dword [ebp], ecx
mov eax, 0xf
cmovne eax, ecx
pop esi
pop ebp
pop edi
pop ebx
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jl 0x5b9943
cmp eax, 3
jle 0x5b995a
mov eax, dword [esp + 0x28]
pop esi
pop ebp
pop edi
mov dword [eax], 0
mov eax, 0xe
pop ebx
add esp, 0xc
ret
mov edi, dword [esp + 0x20]
test byte [edi], 0x20
jne 0x5b997d
cmp dword [edi + 0x28], 0
je 0x5b997d
mov eax, dword [esp + 0x28]
pop esi
pop ebp
pop edi
mov dword [eax], 0
xor eax, eax
pop ebx
add esp, 0xc
ret
push ebx
call fcn.005b76d0
mov ecx, dword [esp + 0x2c]
add esp, 4
mov edx, eax
mov eax, 0xf
pop esi
mov dword [ecx], edx
xor ecx, ecx
pop ebp
test edx, edx
pop edi
cmovne eax, ecx
pop ebx
add esp, 0xc
ret
Function at 0x5b9c10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
movzx ecx, word [ebx]
mov eax, ecx
sub eax, 2
je 0x5b9c32
sub eax, 0x15
je 0x5b9c28
xor eax, eax
pop ebx
ret
mov dword [esp + 0xc], 0x1c
jmp 0x5b9c3a
mov dword [esp + 0xc], 0x10
push esi
push edi
mov edi, dword [esp + 0x10]
push 0x11
push 2
push ecx
push edi
call fcn.005b4a60
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x5b9c70
call fcn.005e060c
pop edi
pop esi
pop ebx
mov eax, dword [eax]
sub eax, 0x273f
neg eax
sbb eax, eax
ret
push dword [esp + 0x14]
push ebx
push esi
push edi
call fcn.005b49c0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5b9ca1
call fcn.005e060c
cmp dword [eax], 0x2714
je 0x5b9c70
push esi
push edi
call fcn.005b4990
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
ret
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
push esi
push edi
test eax, eax
je 0x5b9cc6
call fcn.005b4990
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
call fcn.005b4990
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x5bc948
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x5f41f7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005f4076

Function at 0x5f96dd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005f904b

Function at 0x5f96e8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005f9286
Function at 0x403560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40357b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4035b2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4035ae
jmp 0x4035a0
cmp esi, eax
jae 0x4035b2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4035a0
cmp esi, eax
jb 0x4035b9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40a6a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041cb16
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a6e0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040a2e4
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40a73e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x40a762
cmp dword [edi + 0x74], 0
jne 0x40a762
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041cb16
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040a6ff
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4135b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4135ff
call fcn.0041cb16
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4135ff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41361b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004130b8
mov esi, eax
test edi, edi
je 0x413619
test ebx, ebx
je 0x413619
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4139fa
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51c69b
call fcn.004fd196
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x413a1f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x413a71
call fcn.00407179
push eax
lea ecx, [ebp - 0x10]
call fcn.00403ed0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004ff2c7
push eax
call fcn.004034b0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403610
mov eax, esi
call fcn.004fd26e
ret 8

Function at 0x417919
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004175bd
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x417963
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00406bcd
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00406b9e
jmp 0x41796e
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041e124
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x417974
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004136c4
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4179b1
call fcn.004175bd
mov dword [esi + 0xc], 1
jmp 0x4179b6
call fcn.004175bd
cmp dword [esi], 0
je 0x4179ff
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4179d7
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00406bcd
jmp 0x4179e9
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00403f00
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00406b9e
jmp 0x417a23
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x417a23
push dword [esi]
push dword [ebp + 8]
call fcn.0041e124
pop esi
pop ebp
ret 0xc