joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov cl, 0x6c
mov ebp, dword [0x10016194]
mov al, 0x65
mov byte [esp + 0x21], cl
mov byte [esp + 0x26], cl
mov byte [esp + 0x27], cl
mov cl, 0x74
mov byte [esp + 0x1d], al
mov byte [esp + 0x20], al
mov byte [esp + 0xe], al
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov byte [esp + 0x10], cl
mov byte [esp + 0x16], cl
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x20]
mov dl, 0x6e
xor ebx, ebx
push eax
push ecx
mov dword [esi], 0x10016340
mov byte [esp + 0x28], 0x6b
mov byte [esp + 0x2a], 0x72
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2e], 0x33
mov byte [esp + 0x2f], 0x32
mov byte [esp + 0x30], 0x2e
mov byte [esp + 0x31], 0x64
mov byte [esp + 0x34], bl
mov byte [esp + 0x18], 0x43
mov byte [esp + 0x19], 0x72
mov byte [esp + 0x1b], 0x61
mov byte [esp + 0x1e], 0x45
mov byte [esp + 0x1f], 0x76
mov byte [esp + 0x21], dl
mov byte [esp + 0x23], 0x41
mov byte [esp + 0x24], bl
call ebp
push eax
call dword [0x10016120]
push 0x10019030
mov edi, eax
call ebp
push ebx
push ebx
push ebx
push ebx
mov dword [0x1001b820], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 4], 0x3e8
mov byte [esi + 0x44], bl
mov byte [esi + 0x45], bl
lea edi, [esi + 0x30]
mov ebp, 2
mov edx, dword [esi + 4]
push edx
call fcn.100153b0
push 0x20
mov dword [edi - 0x28], eax
call fcn.100153b0
mov dword [edi], eax
mov eax, dword [esi + 4]
push eax
call fcn.100153b0
push 0x20
mov dword [edi - 0x20], eax
call fcn.100153b0
mov dword [edi + 8], eax
add esp, 0x10
add edi, 4
dec ebp
jne 0x100010e4
lea eax, [esi + 0x46]
xor ecx, ecx
mov edx, eax
pop edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov word [eax], 0x31
mov word [esi + 0x48], 1
mov dword [esi + 0x4a], 0x1f40
mov dword [esi + 0x4e], 0x659
mov word [esi + 0x52], 0x41
mov word [esi + 0x54], bx
mov word [esi + 0x56], 2
mov word [esi + 0x58], 0x140
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x10001005
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov cl, 0x6c
mov ebp, dword [0x10016194]
mov al, 0x65
mov byte [esp + 0x21], cl
mov byte [esp + 0x26], cl
mov byte [esp + 0x27], cl
mov cl, 0x74
mov byte [esp + 0x1d], al
mov byte [esp + 0x20], al
mov byte [esp + 0xe], al
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov byte [esp + 0x10], cl
mov byte [esp + 0x16], cl
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x20]
mov dl, 0x6e
xor ebx, ebx
push eax
push ecx
mov dword [esi], 0x10016340
mov byte [esp + 0x28], 0x6b
mov byte [esp + 0x2a], 0x72
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2e], 0x33
mov byte [esp + 0x2f], 0x32
mov byte [esp + 0x30], 0x2e
mov byte [esp + 0x31], 0x64
mov byte [esp + 0x34], bl
mov byte [esp + 0x18], 0x43
mov byte [esp + 0x19], 0x72
mov byte [esp + 0x1b], 0x61
mov byte [esp + 0x1e], 0x45
mov byte [esp + 0x1f], 0x76
mov byte [esp + 0x21], dl
mov byte [esp + 0x23], 0x41
mov byte [esp + 0x24], bl
call ebp
push eax
call dword [0x10016120]
push 0x10019030
mov edi, eax
call ebp
push ebx
push ebx
push ebx
push ebx
mov dword [0x1001b820], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 4], 0x3e8
mov byte [esi + 0x44], bl
mov byte [esi + 0x45], bl
lea edi, [esi + 0x30]
mov ebp, 2
mov edx, dword [esi + 4]
push edx
call fcn.100153b0
push 0x20
mov dword [edi - 0x28], eax
call fcn.100153b0
mov dword [edi], eax
mov eax, dword [esi + 4]
push eax
call fcn.100153b0
push 0x20
mov dword [edi - 0x20], eax
call fcn.100153b0
mov dword [edi + 8], eax
add esp, 0x10
add edi, 4
dec ebp
jne 0x100010e4
lea eax, [esi + 0x46]
xor ecx, ecx
mov edx, eax
pop edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov word [eax], 0x31
mov word [esi + 0x48], 1
mov dword [esi + 0x4a], 0x1f40
mov dword [esi + 0x4e], 0x659
mov word [esi + 0x52], 0x41
mov word [esi + 0x54], bx
mov word [esi + 0x56], 2
mov word [esi + 0x58], 0x140
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40b8d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x46d218]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x46d208], 0xffffffff
je 0x40b99c
cmp dword [0x4ae21c], 0
je 0x40b986
call fcn.00407400
mov eax, dword [0x46d208]
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x110]
push eax
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 1
push eax
push 0
push 0
mov dword [ebp - 0x110], 2
mov dword [ebp - 0x10c], 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x40b986
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.____F_END__ERROR____UDP_socket_select_Err_d
push 0xffffffffffffffff
push 0x3e0
push 0x4afa48
call fcn.004073c0
add esp, 0x14
mov edx, 0x3e0
lea ecx, [eax - 1]
cmp ecx, 0x3de
cmovbe edx, eax
mov dword [0x4afe30], edx
call fcn.00401d30
push dword [0x46d208]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x46d208], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c824
mov esp, ebp
pop ebp
ret

Function at 0x40b9e0
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x46d218]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1a4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x40ba15
push eax
push str.____F_END__ERROR____Windows_Sockets_Init_Err_d
jmp 0x40bab6
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x46d208], eax
cmp eax, 0xffffffff
jne 0x40ba39
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.____F_END__ERROR____UDP_socket_create_Err_d
jmp 0x40bab6
push dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
mov eax, 2
movlpd qword [ebp - 0xc], xmm0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [0x46d208]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40ba83
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.____F_END__ERROR____UDP_socket_binding_Err_d
jmp 0x40bab6
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1a8], 1
push eax
push 0x8004667e
push dword [0x46d208]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x40baf6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.____F_END__ERROR____UDP_socket_non_blocking_Err_d
push 0xffffffffffffffff
push 0x3e0
push 0x4afa48
call fcn.004073c0
add esp, 0x14
mov edx, 0x3e0
lea ecx, [eax - 1]
cmp ecx, 0x3de
cmovbe edx, eax
mov dword [0x4afe30], edx
call fcn.00401d30
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c824
mov esp, ebp
pop ebp
ret
call fcn.00407410
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0040c824
mov esp, ebp
pop ebp
ret
Function at 0x40be20
Capabilities:
Create tcp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x46d218]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1a4]
mov dword [0x4af5c0], 0x40c400
push eax
push 0x202
mov dword [0x4af5c4], 0x40c750
mov dword [0x4af5c8], 0x40c3e0
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x40be73
push eax
push str.____COMMS__ERROR____Init_Windows_Sockets_Err_d
jmp 0x40bf38
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x46d20c], eax
cmp eax, 0xffffffff
jne 0x40be9a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.____COMMS__ERROR____Server_socket_create_Err_d
jmp 0x40bf38
push dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
mov eax, 2
movlpd qword [ebp - 0xc], xmm0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [0x46d20c]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40bee4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.____COMMS__ERROR____Binding_server_socket_Err_d
jmp 0x40bf38
push 1
push dword [0x46d20c]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x40bf05
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.____COMMS__ERROR____Server_socket_listen_Err_d
jmp 0x40bf38
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1a8], 1
push eax
push 0x8004667e
push dword [0x46d20c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x40bf78
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.____COMMS__ERROR____Server_socket_non_blocking_Err_d
push 0xffffffffffffffff
push 0x3e0
push 0x4afa48
call fcn.004073c0
add esp, 0x14
mov edx, 0x3e0
lea ecx, [eax - 1]
cmp ecx, 0x3de
cmovbe edx, eax
mov dword [0x4afe30], edx
call fcn.00401d30
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c824
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0040c824
mov esp, ebp
pop ebp
ret
Function at 0x40bf90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x46d218]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x46d208]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x40c0e2
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push edx
lea edx, [ebp - 0x14]
push edx
push 0
push dword [edi]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40c03b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
je 0x40c0e2
call fcn.0040b9d0
push esi
push str.____F_END__ERROR____UDP_socket_failed_Err_d
push ebx
push 0x3e0
push 0x4afa48
call fcn.004073c0
add esp, 0x14
mov edx, 0x3e0
lea ecx, [eax - 1]
cmp ecx, 0x3de
cmovbe edx, eax
mov dword [0x4afe30], edx
call fcn.00401d30
pop edi
pop esi
lea eax, [ebx + 6]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c824
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4ae21c]
test eax, eax
jne 0x40c077
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push esi
push eax
push 0x4ae220
call fcn.0040e170
add esp, 0xc
mov dword [0x4ae21c], esi
mov dword [edi], ebx
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c824
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], eax
jne 0x40c0a8
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x4ae228]
jne 0x40c0a8
mov eax, dword [ebp - 8]
cmp eax, dword [0x4ae22c]
jne 0x40c0a8
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x4ae220]
jne 0x40c0a8
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x4ae224]
je 0x40c05f
push str.UDP_socket_in_use
push str.____F_END__WARN______s
push 0xffffffffffffffff
push 0x3e0
push 0x4afa48
call fcn.004073c0
add esp, 0x14
mov edx, 0x3e0
lea ecx, [eax - 1]
cmp ecx, 0x3de
cmovbe edx, eax
mov dword [0x4afe30], edx
call fcn.00401d30
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c824
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4ae21c]
test eax, eax
je 0x40c1dd
push eax
push 0x4ae220
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x46d208]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x40c1dd
call fcn.0040b9d0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.____F_END__ERROR____UDP_socket_failed_Err_d
push 0xffffffffffffffff
push 0x3e0
push 0x4afa48
call fcn.004073c0
add esp, 0x14
mov edx, 0x3e0
lea ecx, [eax - 1]
cmp ecx, 0x3de
cmovbe edx, eax
mov dword [0x4afe30], edx
pop ebp
jmp fcn.00401d30
pop ebp
ret

Function at 0x43c5f1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x465334
push 0x46532c
push str.FlsAlloc
push 0x1e
call fcn.0043c2c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43c625
push dword [ebp + 8]
mov ecx, esi
call dword [0x45f1dc]
call esi
jmp 0x43c62b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x43c66f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x465344
push 0x46533c
push str.FlsGetValue
push 0x20
call fcn.0043c2c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43c6a6
push dword [ebp + 8]
mov ecx, esi
call dword [0x45f1dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44665b
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 + 0x4af108]
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 0x44669b
cmp byte [ebx], 0xa
jne 0x44669b
or byte [eax + edi + 0x28], 4
jmp 0x4466a0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x44679e
mov al, byte [edx]
cmp al, 0x1a
je 0x446780
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4466cf
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4466f4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4466fe
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 0x4466b1
jmp 0x44679e
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 0x44677b
cmp dword [ebp - 0xc], 0
je 0x44677b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4af108]
test byte [eax + edi + 0x28], 0x48
je 0x446755
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x446740
mov byte [esi], dl
jmp 0x446751
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4af108]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44679e
cmp byte [ebp - 1], 0xa
jne 0x446764
cmp esi, ebx
jne 0x446764
mov byte [esi], 0xa
jmp 0x44679d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00454796
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44679e
mov byte [esi], 0xd
jmp 0x44679d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4af108]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44679a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44679e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4467a7
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 + 0x4af108]
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 0x4467ea
cmp word [esi], dx
jne 0x4467ea
or byte [edi + eax + 0x28], 4
jmp 0x4467ef
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 0x446942
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 0x446922
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x446831
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x446867
cmp eax, edx
jae 0x446873
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 0x446809
jmp 0x446942
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 0x44691e
cmp dword [ebp - 0x14], 0
je 0x44691e
mov eax, dword [ebx*4 + 0x4af108]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4468f6
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4468bf
mov word [esi], cx
jmp 0x4468f2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4af108]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4af108]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4af108]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x446942
pop ebx
cmp word [ebp - 4], bx
jne 0x446907
cmp esi, dword [ebp + 0xc]
jne 0x446907
mov word [esi], bx
jmp 0x44693f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00454796
add esp, 0x10
cmp word [ebp - 4], bx
je 0x446942
push 0xd
jmp 0x44693b
mov ecx, dword [ebx*4 + 0x4af108]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x446939
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x446942
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 0x44744f
Capabilities:
Read file on windows

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

Function at 0x44745a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004471c5

Function at 0x447871
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00447745
Function at 0x4480ae
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46d218]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4480f9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00448452
test al, al
jne 0x4480f3
sub edx, 2
cmp edx, edi
jne 0x4480d9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x44811b
lea eax, [edi + 2]
cmp edx, eax
je 0x44811b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00447d75
add esp, 0x10
jmp 0x448215
push esi
lea ecx, [ebp - 0x255]
call fcn.00448452
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44815e
push dword [ebp - 0x25c]
jmp 0x44810b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x44819b
cmp word [ebp - 0x226], 0
je 0x4481bc
cmp word [ebp - 0x226], ax
jne 0x44819b
cmp word [ebp - 0x224], 0
je 0x4481bc
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00447d75
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x448208
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x448175
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4481f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x448215
push 0x447894
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004322c0
add esp, 0x10
jmp 0x4481e5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c824
leave
ret
Function at 0x44962c
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 0x4496c9
push ebx
push esi
call fcn.004495e8
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.004465a4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x449676
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4496c8
push edi
push eax
call fcn.0043d6aa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x449696
call fcn.0043bc72
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4496c7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004465a4
add esp, 0x20
test eax, eax
jne 0x4496b5
push edi
call fcn.0043bc72
jmp 0x4496bd
push ebx
call fcn.0043bc72
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 0x4496cc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4496dd
pop esi
ret
push ebx
push edi
push esi
call fcn.004495e8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043d6aa
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x449705
push ebx
push esi
push edi
call fcn.0040e170
add esp, 0xc
push 0
call fcn.0043bc72
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x449fc6
Capabilities:
Set environment variable

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