joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009b02
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
push dword [ebp + 0xc]
mov edi, ecx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10009b44
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2714
jne 0x10009b4c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10009b28
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call esi
cmp eax, 0x2733
jne 0x10009bb7
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push 1
call fcn.10009ce6
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 4
push eax
lea eax, [esp + 0x10]
push eax
push 0x1007
push 0xffff
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x10009bdb
cmp dword [esp + 0xc], 0
je 0x10009b44
push str.Failed_to_connect
call fcn.1000991e
push eax
push dword [esp + 0x14]
lea ecx, [esp + 0x20]
call fcn.100021c6
push 0x1005e294
lea eax, [esp + 0x18]
jmp 0x10009bfd
call esi
push str.Failed_to_connect
mov ecx, eax
call fcn.1000991e
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.100021c6
push 0x1005e294
lea eax, [esp + 0x18]
jmp 0x10009bfd
call esi
push str.Failed_to_get_socket_option
mov ecx, eax
call fcn.1000991e
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.100021c6
push 0x1005e294
lea eax, [esp + 0x18]
push eax
call fcn.1001c622
int3

Function at 0x10009ce6
Capabilities:
Get socket status

Disassembly:
sub esp, 0x128
mov eax, dword [ecx]
push ebx
push ebp
mov ebp, dword [esp + 0x13c]
push esi
push edi
mov edi, dword [esp + 0x140]
xor esi, esi
push esi
push 0x3e8
push ebp
push edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], 1
call fcn.100466f0
mov dword [esp + 0x10], eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x14], eax
cmp ebp, esi
jl 0x10009d41
jg 0x10009d3b
cmp edi, esi
jb 0x10009d41
lea eax, [esp + 0x10]
jmp 0x10009d43
mov eax, esi
xor ecx, ecx
lea ebx, [esp + 0x30]
cmp dword [esp + 0x13c], 1
push eax
cmovne ebx, ecx
lea ecx, [esp + 0x34]
xor edx, edx
cmp dword [esp + 0x140], edx
push esi
cmovne ecx, edx
push ebx
push ecx
push esi
mov dword [esp + 0x2c], ecx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x10009dae
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2714
jne 0x10009dd8
test ebp, ebp
jl 0x10009d97
jg 0x10009d91
test edi, edi
jb 0x10009d97
lea eax, [esp + 0x10]
jmp 0x10009d99
xor eax, eax
push eax
push 0
push ebx
push dword [esp + 0x24]
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x10009d7e
test eax, eax
je 0x10009dbf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret 0xc
push str.Request_timed_out
lea ecx, [esp + 0x20]
call fcn.10009e0a
push 0x1005e40c
lea eax, [esp + 0x20]
jmp 0x10009dfa
call esi
push str.Failed_to_select_socket
mov ecx, eax
call fcn.1000991e
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.100021c6
push 0x1005e294
lea eax, [esp + 0x20]
push eax
call fcn.1001c622
int3
Function at 0x1000f727
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x10048af5
call fcn.10046b78
sub esp, 0x54
mov edx, ecx
xor eax, eax
mov dword [ebp - 0x18], edx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
movaps xmm0, xmmword [0x10058c90]
push ebx
push esi
push edi
mov edi, edx
movups xmmword [ebp - 0x60], xmm0
movaps xmm0, xmmword [0x10058ca0]
stosd dword es:[edi], eax
movups xmmword [ebp - 0x50], xmm0
movaps xmm0, xmmword [0x10058cb0]
stosd dword es:[edi], eax
movups xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [str.wxyz0123456789_]
stosd dword es:[edi], eax
movups xmmword [ebp - 0x30], xmm0
stosd dword es:[edi], eax
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], 0xf
mov byte [edx], cl
mov dword [ebp - 4], ecx
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 1
cmp esi, eax
je 0x1000f8ad
mov cl, byte [esi]
mov byte [ebp + edi - 0x14], cl
inc edi
mov bl, byte [ebp - 0x13]
mov bh, byte [ebp - 0x14]
mov byte [ebp - 0xd], bl
cmp edi, 3
jne 0x1000f821
movzx eax, bh
mov ecx, edx
shr eax, 2
movzx eax, byte [ebp + eax - 0x60]
push eax
call fcn.10010bca
mov edi, dword [ebp - 0x18]
mov cl, bh
and cl, 3
mov al, bl
shr al, 4
shl cl, 4
add cl, al
movzx eax, cl
mov ecx, edi
movzx eax, byte [ebp + eax - 0x60]
push eax
call fcn.10010bca
mov al, byte [ebp - 0x12]
mov cl, bl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
movzx eax, cl
mov ecx, edi
movzx eax, byte [ebp + eax - 0x60]
push eax
call fcn.10010bca
movzx eax, byte [ebp - 0x12]
mov ecx, edi
and eax, 0x3f
movzx eax, byte [ebp + eax - 0x60]
push eax
call fcn.10010bca
mov eax, dword [ebp + 0xc]
xor edi, edi
mov edx, dword [ebp - 0x18]
inc esi
cmp esi, eax
jne 0x1000f79b
test edi, edi
je 0x1000f8ad
movzx eax, bh
mov ecx, edx
shr eax, 2
movzx eax, byte [ebp + eax - 0x60]
push eax
call fcn.10010bca
mov esi, dword [ebp - 0x18]
and bh, 3
mov ecx, esi
cmp edi, 1
jne 0x1000f865
shl bh, 4
movzx eax, bh
movzx eax, byte [ebp + eax - 0x60]
push eax
call fcn.10010bca
push 4
inc edi
pop ebx
jmp 0x1000f89b
mov al, bl
shl bh, 4
shr al, 4
add bh, al
movzx eax, bh
movzx eax, byte [ebp + eax - 0x60]
push eax
call fcn.10010bca
and bl, 0xf
mov ecx, esi
shl bl, 2
movzx eax, bl
movzx eax, byte [ebp + eax - 0x60]
push eax
call fcn.10010bca
push 4
inc edi
pop ebx
cmp edi, ebx
jae 0x1000f8b0
sub ebx, edi
push 0x3d
mov ecx, esi
call fcn.10010bca
sub ebx, 1
jne 0x1000f89d
jmp 0x1000f8b0
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x10018656
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1005f010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10018736
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1001872f
push ebx
cmp dword [ebp - 0x20], 0x10
jb 0x10018714
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10018714
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10018714
mov edx, dword [esi]
test edx, edx
jne 0x100186e2
push 0x200
push edx
push dword [0x100641e0]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1001872e
lea ebx, [esi + 8]
jmp 0x1001870a
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x1001870a
shl eax, 3
push eax
push edx
push 0
push dword [0x100641e0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1001872e
shl dword [esi + 4], 1
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1001869a
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001b691
leave
ret

Function at 0x10018744
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.10018656
cmp dword [esi], ebx
je 0x100187a4
push edi
mov edi, ebx
cmp dword [esi + 8], ebx
jbe 0x100187a3
mov eax, dword [esi]
push dword [eax + edi*4]
push ebx
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1001879a
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.10018503
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
push 0
pop ebx
cmp edi, dword [esi + 8]
jb 0x1001876a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100187a8
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x100187f4
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x100187e3
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100187dc
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x100187b9
pop ebx
push dword [esi]
push 0
push dword [0x100641e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret
Function at 0x100187f6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
imul edi, ecx, 0x2c
add edi, dword [0x1006c220]
mov al, byte [edi + 0x14]
mov esi, dword [edi]
and al, 1
je 0x10018812
sub esi, 5
movzx eax, al
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10018833
push 0xa
pop eax
jmp 0x10018872
mov byte [esi], 0xe9
mov eax, dword [edi + 4]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
test byte [edi + 0x14], 1
je 0x1001884e
mov eax, dword [edi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [edi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10018db9
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x1006c210]
push esi
xor esi, esi
jmp 0x10018dcb
cmp dword [edx + 4], esi
jne 0x10018e1f
mov edx, dword [edx]
test edx, edx
jne 0x10018dc4
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10018e1b
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x10018df2
mov eax, dword [0x1006c210]
mov dword [edx], eax
mov dword [0x1006c210], edx
pop edi
test edx, edx
jne 0x10018e1f
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
Function at 0x10019eba
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 0x10019edb
jl 0x10019ed2
test edi, edi
jne 0x10019edb
xor eax, eax
xor edx, edx
jmp 0x10019f9c
cmp dword [ebx + 0x38], 0
je 0x10019ef0
push eax
push edi
push dword [ebp + 8]
call fcn.1000e9b3
jmp 0x10019f9c
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10019f37
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x10019f37
cmp eax, edi
jb 0x10019f11
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1001c690
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 0x10019f3d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x10019f91
mov ecx, ebx
call fcn.10019831
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x10019f7c
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10031cbe
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 0x10019f91
jmp 0x10019f4f
test edx, edx
je 0x10019f91
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10031cbe
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 0x1001a557
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.1001a533
pop esi
leave
ret 8

Function at 0x100394ea
Capabilities:
Print debug messages

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

Function at 0x10039c86
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004f138
push 0x1004f130
push str.FlsAlloc
push 0x1e
call fcn.10039ad0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10039cba
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004a1e0]
call esi
jmp 0x10039cc0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10039d04
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004f148
push 0x1004f140
push str.FlsGetValue
push 0x20
call fcn.10039ad0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10039d3b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004a1e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1003c039
Capabilities:
Read file on windows

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

Function at 0x1003c433
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1001beb0
mov eax, dword [0x1005f010]
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.10036355
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1003c475
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1003c5d1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100467d0
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 + 0x10063d58]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1003d1d2
mov ecx, dword [esi*4 + 0x10063d58]
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 0x1003c5ca
cmp eax, dword [edi + ecx + 0x24]
jne 0x1003c5ca
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 0x1003c5ca
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003d1d2
add esp, 0x14
test edx, edx
jl 0x1003c5ca
jg 0x1003c540
test eax, eax
jb 0x1003c5ca
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1003c5ca
jl 0x1003c55a
cmp dword [ebp - 0x1008], eax
ja 0x1003c5ca
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1003c578
test ebx, ebx
je 0x1003c5b1
cmp ecx, edi
jae 0x1003c5b1
mov al, byte [ecx]
cmp al, 0xd
jne 0x1003c592
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1003c59e
cmp byte [ecx + 1], 0xa
jne 0x1003c59e
inc ecx
jmp 0x1003c59e
movzx eax, al
movsx eax, byte [eax + 0x1005f2a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1003c578
cmp edx, ebx
jne 0x1003c578
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1003c5cf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1001b691
leave
ret
Function at 0x1003c670
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 + 0x10063d58]
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 0x1003c6b0
cmp byte [ebx], 0xa
jne 0x1003c6b0
or byte [eax + edi + 0x28], 4
jmp 0x1003c6b5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1003c7b3
mov al, byte [edx]
cmp al, 0x1a
je 0x1003c795
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1003c6e4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1003c709
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1003c713
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 0x1003c6c6
jmp 0x1003c7b3
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 0x1003c790
cmp dword [ebp - 0xc], 0
je 0x1003c790
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10063d58]
test byte [eax + edi + 0x28], 0x48
je 0x1003c76a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1003c755
mov byte [esi], dl
jmp 0x1003c766
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10063d58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003c7b3
cmp byte [ebp - 1], 0xa
jne 0x1003c779
cmp esi, ebx
jne 0x1003c779
mov byte [esi], 0xa
jmp 0x1003c7b2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003d1f0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003c7b3
mov byte [esi], 0xd
jmp 0x1003c7b2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10063d58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003c7af
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003c7b3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003c7bc
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 + 0x10063d58]
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 0x1003c7ff
cmp word [esi], dx
jne 0x1003c7ff
or byte [edi + eax + 0x28], 4
jmp 0x1003c804
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 0x1003c957
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 0x1003c937
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1003c846
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003c87c
cmp eax, edx
jae 0x1003c888
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 0x1003c81e
jmp 0x1003c957
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 0x1003c933
cmp dword [ebp - 0x14], 0
je 0x1003c933
mov eax, dword [ebx*4 + 0x10063d58]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1003c90b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1003c8d4
mov word [esi], cx
jmp 0x1003c907
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10063d58]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10063d58]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10063d58]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1003c957
pop ebx
cmp word [ebp - 4], bx
jne 0x1003c91c
cmp esi, dword [ebp + 0xc]
jne 0x1003c91c
mov word [esi], bx
jmp 0x1003c954
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003d1f0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1003c957
push 0xd
jmp 0x1003c950
mov ecx, dword [ebx*4 + 0x10063d58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003c94e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003c957
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 0x1003fe8b
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 0x1003ff28
push ebx
push esi
call fcn.1003fe54
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.1003ec2b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003fed5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003ff27
push edi
push eax
call fcn.1003542c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003fef5
call fcn.100353f2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003ff26
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003ec2b
add esp, 0x20
test eax, eax
jne 0x1003ff14
push edi
call fcn.100353f2
jmp 0x1003ff1c
push ebx
call fcn.100353f2
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 0x100465d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100465fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100465fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret