joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449920
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x44f7f0
mov esi, edx
mov edi, ecx
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
movzx eax, byte [0x45f57c]
mov eax, dword [0x45f508]
test eax, eax
jne 0x449973
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x449a2e
mov dword [0x45f508], eax
push 8
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x449a2e
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
push 0
push 0x10000
push ebx
push 0x449ac0
push esi
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x4499b5
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x449a1d
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x20], eax
push eax
mov dword [ebp - 0x24], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
cmp dword [eax + 4], 0
je 0x449a02
cmp dword [eax + 8], 9
jae 0x4499ed
mov eax, dword [ebp - 0x20]
jmp 0x4499f3
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x45f508]
call dword [sym.imp.kernel32.dll_HeapFree]
push edi
push 0
push dword [0x45f508]
call dword [sym.imp.kernel32.dll_HeapFree]
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 8
mov dword [ebp - 0x10], 0
call fcn.00450740
ud2
Function at 0x449c20
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x44f810
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x449c9e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
lea edx, [esi + 8]
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], 0x45b0f4
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], edx
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x30]
mov edx, 0x45b120
mov dword [esi + 0x2c], fcn.004439d0
mov dword [esi + 0x3c], 1
call fcn.00450840
ud2

Function at 0x449d70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x45f094]
test eax, eax
je 0x449e14
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x449d93
cmp byte [eax + 4], 0
mov esi, eax
jne 0x449e0d
mov eax, dword [0x45f094]
test eax, eax
je 0x449e33
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x449e4d
mov esi, eax
test eax, eax
jne 0x449e07
movzx eax, byte [0x45f57c]
mov eax, dword [0x45f508]
test eax, eax
jne 0x449dda
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x449e5f
mov dword [0x45f508], eax
push 8
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x449e5f
mov dword [eax], 0x45f094
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x45f094]
test eax, eax
je 0x449e53
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
mov eax, esi
pop esi
ret
mov ecx, 0x45f094
call fcn.004525d0
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x449d8b
jmp 0x449d93
mov ecx, 0x45f094
call fcn.004525d0
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x449db1
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x45f094
call fcn.004525d0
jmp 0x449dff
mov ecx, 4
mov edx, 8
call fcn.00450740
int3
Function at 0x44cef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x44f8f0
movaps xmm0, xmmword [0x4534c0]
mov edi, ecx
lea ebx, [esi + 0x20]
lea ecx, [esi + 0xc]
mov eax, dword fs:[0]
mov dword [esi + 0x50], eax
lea eax, [esi + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov word [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x30], 7
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
movups xmmword [esi + 0x20], xmm0
push ebx
push eax
call fcn.00444700
add esp, 8
movzx eax, byte [esi + 0xc]
cmp al, 4
jne 0x44cfae
mov eax, ebx
mov ebx, dword [esi + 0x10]
xorps xmm0, xmm0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
movaps xmmword [esi + 0x30], xmm0
movaps xmmword [esi + 0x20], xmm0
mov dword [esi + 8], ebx
push 0x28
push eax
push 0
push ebx
call sub.kernel32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x44cfca
test byte [esi + 0x40], 0x10
jne 0x44cfdc
mov byte [edi], 0
mov eax, 0x10b
jmp 0x44cfd6
movzx ecx, byte [esi + 0xf]
movzx ebx, word [esi + 0xd]
mov edx, dword [esi + 0x10]
mov byte [edi + 3], cl
mov word [edi + 1], bx
mov byte [edi], al
mov dword [edi + 4], edx
jmp 0x44d057
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], 0
mov dword [edi + 4], eax
push ebx
jmp 0x44d051
mov dword [esi + 4], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x58], 0
lea ecx, [esi + 0x14]
lea edx, [esi + 8]
push 0x44d0c0
call fcn.0044d110
add esp, 4
cmp byte [esi + 0x14], 4
mov ecx, dword [esi + 0x1c]
jne 0x44d010
movsd xmm0, qword [esi + 0x14]
movsd qword [ecx], xmm0
jmp 0x44d04d
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
test al, al
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], eax
je 0x44d027
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x44d04d
cmp edx, 1
je 0x44d036
cmp edx, 0x57
je 0x44d036
cmp edx, 0x32
jne 0x44d020
mov dword [esi + 0x58], 1
lea edx, [esi + 8]
push 0x44dae0
call fcn.0044d110
add esp, 4
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44de90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
sub esp, 8
mov eax, dword [0x45f0a4]
test eax, eax
je 0x44debc
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x44ded2
cmp dword [eax + 4], 0
mov esi, eax
je 0x44ded2
add esi, 8
mov eax, esi
add esp, 8
pop esi
ret
mov ecx, 0x45f0a4
call fcn.004525d0
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x44deaa
mov eax, dword [0x45f0a4]
test eax, eax
je 0x44df4d
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
xor esi, esi
cmp eax, 1
jne 0x44def1
mov eax, esi
add esp, 8
pop esi
ret
test eax, eax
mov esi, eax
jne 0x44df62
movzx eax, byte [0x45f57c]
mov eax, dword [0x45f508]
test eax, eax
jne 0x44df1a
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x44dfa5
mov dword [0x45f508], eax
push 0xc
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x44dfa5
mov dword [eax], 0x45f0a4
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x45f0a4]
test eax, eax
jne 0x44df59
mov ecx, 0x45f0a4
call fcn.004525d0
jmp 0x44df5a
mov ecx, 0x45f0a4
call fcn.004525d0
jmp 0x44dedc
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
call fcn.00452aa0
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
test edx, edx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esi + 4], 1
mov dword [esi + 8], eax
je 0x44deb2
test ecx, ecx
je 0x44deb2
lock dec dword [ecx]
jne 0x44deb2
lea ecx, [esp + 4]
call fcn.0044dfc0
jmp 0x44deb2
mov ecx, 4
mov edx, 0xc
call fcn.00450740
int3

Function at 0x45015a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x450199
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x450199
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x450199
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x450199
cmp dword [ecx + 0x74], 0xe
jbe 0x450199
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4525d0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x452641
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x452678
cmp dword [esp + 4], 0
je 0x45265f
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x45268b
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x45f510]
nop dword [eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0x45f510], esi
jne 0x452620
mov byte [0x45f50c], 1
push 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
jmp 0x45266f
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x4526cc
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x452663
mov edi, dword [esp]
jmp 0x45266f
mov edi, dword [esi]
jmp 0x45266e
mov edi, eax
push dword [esp]
call dword [sym.imp.kernel32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0
call fcn.00452700
push 0
push 4
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0x45b470
mov dword [esp + 8], 0x45b438
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x4595d0
mov dword [esp + 0x14], 0
call fcn.00450840
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x45b438
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x4595d0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00452730
int3
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 0x4229f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x422a01
pop dword [ebp - 0x50]
mov eax, 0x422a01
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3cf0b
push 0
mov eax, 0x6dcd0658
add eax, 0x92754ac8
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x4a1a
xor edx, edx
add edx, eax
mov ebx, 0x7050528a
sub ebx, 0x700d248a
add ebx, dword [ebp - 0x50]
mov esi, 0xffcabe1b
xor dword [ebp - 0x10], 0x74cf3096
mov edi, dword [ebx]
mov dword [ebp - 0x34], 0xef9e7bd3
xor edi, esi
sub dword [ebp - 0xc], eax
mov dword [edx], edi
sub dword [ebp - 0x24], 0x68037a0
add edx, 0xa86e87e8
add edx, 0x5791781c
add ebx, 0x23a3e5bf
add ebx, 0xdc5c1a45
loop 0x422a51
add eax, 0x9cf5c5b9
add eax, 0x630b5582
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe0b93e4c
sub ecx, 0xe0793e4c
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401af1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b30
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b30
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b30
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b30
cmp dword [ecx + 0x74], 0xe
jbe 0x401b30
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407668
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 0x407705
push ebx
push esi
call fcn.00407631
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.0040757a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4076b2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x407704
push edi
push eax
call fcn.00405833
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4076d2
call fcn.004057f9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x407703
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040757a
add esp, 0x20
test eax, eax
jne 0x4076f1
push edi
call fcn.004057f9
jmp 0x4076f9
push ebx
call fcn.004057f9
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 0x407970
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422820
push 0x422818
push str.FlsAlloc
push 0x1e
call fcn.0040788e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4079a4
push dword [ebp + 8]
mov ecx, esi
call dword [0x421474]
call esi
jmp 0x4079aa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4079ee
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422830
push 0x422828
push str.FlsGetValue
push 0x20
call fcn.0040788e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407a25
push dword [ebp + 8]
mov ecx, esi
call dword [0x421474]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40d3f0
Capabilities:
Parse pe header

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

Function at 0x4126e1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
or ebx, 0xffffffff
push edi
mov edi, ecx
cmp esi, 8
jb 0x412789
mov eax, esi
shr eax, 3
mov dword [ebp - 4], eax
movzx edx, byte [edi + 2]
mov eax, ebx
movzx ecx, byte [edi + 1]
sub esi, 8
shr eax, 0x10
movzx eax, al
xor edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, ebx
mov edx, dword [edx*4 + 0x4275c0]
shr eax, 0x18
xor edx, dword [ecx*4 + 0x426060]
movzx ecx, byte [edi + 3]
xor ecx, eax
movzx eax, byte [edi]
xor edx, dword [ecx*4 + 0x426dc0]
movzx ecx, bl
xor ecx, eax
movzx eax, byte [edi + 7]
xor edx, dword [ecx*4 + 0x426940]
xor edx, dword [eax*4 + 0x427a90]
movzx eax, byte [edi + 6]
xor edx, dword [eax*4 + 0x426480]
movzx eax, byte [edi + 5]
xor edx, dword [eax*4 + 0x427eb0]
movzx eax, byte [edi + 4]
add edi, 8
xor edx, dword [eax*4 + 0x4271c0]
sub dword [ebp - 4], 1
mov ebx, edx
jne 0x412700
test esi, esi
je 0x4127a5
movzx eax, byte [edi]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x427a90]
inc edi
sub esi, 1
jne 0x41278d
pop edi
not ebx
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x100efff5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x100f0023
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x100f002a
cmp ebx, dword [eax + 4]
jae 0x100f002a
xor eax, eax
jmp 0x100f021a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100f003b
xor eax, eax
inc eax
jmp 0x100f0219
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100f0051
cmp ecx, edx
jae 0x100f0196
cmp dword [eax + 4], 0
je 0x100f005a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100f0042
cmp dword [ebp + 8], 0
je 0x100f007c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100f0196
cmp eax, esi
jae 0x100f0196
mov eax, dword [0x10112688]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100f00a1
cmp dword [esi*4 + 0x10112690], edi
je 0x100f019a
inc esi
cmp esi, eax
jl 0x100f008f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
cld
call 0x101192bd
test eax, eax
je 0x100f0216
cmp dword [ebp - 8], 0x1000000
jne 0x100f0216
test byte [ebp - 0xc], 0xcc
je 0x100f011f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100f0216
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100f0216
cmp word [eax + 0x18], 0x10b
jne 0x100f0216
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100f0216
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100f011f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100f011f
test byte [ecx + 0x27], 0x80
jne 0x100f0196
push 1
push 0x101126d0
dec edx
call 0x101192ac
test eax, eax
jne 0x100f0033
mov ecx, dword [0x10112688]
test ecx, ecx
mov edx, ecx
jle 0x100f0153
lea eax, [ecx*4 + 0x1011268c]
cmp dword [eax], edi
je 0x100f0153
dec edx
sub eax, 4
test edx, edx
jg 0x100f0147
test edx, edx
jne 0x100f0184
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100f0160
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x100f0178
lea eax, [edx*4 + 0x10112690]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100f0166
cmp ecx, 0x10
jge 0x100f0184
inc ecx
mov dword [0x10112688], ecx
push 0
push 0x101126d0
inc edx
call 0x101192ac
jmp 0x100f0033
xor eax, eax
jmp 0x100f0219
test esi, esi
jle 0x100f0033
push 0x101186ac
pop ebx
push 1
push 0x101126d0
call ebx
test eax, eax
jne 0x100f0033
cmp dword [esi*4 + 0x10112690], edi
je 0x100f01f0
mov eax, dword [0x10112688]
lea esi, [eax - 1]
test esi, esi
jl 0x100f01de
cmp dword [esi*4 + 0x10112690], edi
je 0x100f01da
dec esi
jns 0x100f01ce
test esi, esi
jge 0x100f01ee
cmp eax, 0x10
jge 0x100f01e9
inc eax
mov dword [0x10112688], eax
lea esi, [eax - 1]
jmp 0x100f01f0
je 0x100f0208
xor ecx, ecx
test esi, esi
jl 0x100f0208
lea eax, [ecx*4 + 0x10112690]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100f01f6
push 0
push 0x101126d0
call ebx
jmp 0x100f0033
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10011bd6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov dword [esp + 4], 0x6410
cmp dword [esp + 4], 0x67c9
push esi
push edi
jle 0x10011c41
xor esi, esi
xor edi, edi
mov eax, edi
lea ecx, [esp + 0x10]
or eax, esi
cdq
push edx
push eax
call fcn.1000fab4
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10011c11
mov eax, dword [eax]
push eax
call fcn.10050c2e
pop ecx
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.10013483
inc edi
cmp edi, 0x5fa4
jl 0x10011bf7
inc esi
cmp esi, 0x6e0d
jl 0x10011bf5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0xc], 0x62d9
jge 0x10011c56
push 0x1000ddec
call fcn.10050c2e
pop ecx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100138f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1006b6d7
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x40], 0
je 0x10013a14
cmp byte [ebx + 0x45], 0
je 0x10013a14
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x1001393a
xor al, al
jmp 0x10013a16
xor eax, eax
mov dword [esp + 0x24], 0xf
push eax
push 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov byte [esp + 0x18], al
call fcn.10014c0e
and dword [esp + 0x34], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
lea eax, [esp + 0xc]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
lea esi, [esp + 0x14]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1001399f
dec eax
je 0x100139a3
dec eax
dec eax
je 0x10013a01
xor bl, bl
jmp 0x10013a03
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x10]
cmp ecx, 0x10
mov esi, dword [esp + 0xc]
cmovae eax, edx
sub esi, eax
je 0x100139e2
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x14]
push esi
cmovae eax, edx
push 1
push eax
call fcn.1005115a
add esp, 0x10
cmp esi, eax
jne 0x1001399b
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
cmp byte [ebx + 0x45], 0
je 0x10013a01
test esi, esi
jne 0x10013965
push esi
push 8
lea ecx, [esp + 0x18]
call fcn.10013293
jmp 0x1001395d
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.10013483
mov al, bl
jmp 0x10013a16
mov al, 1
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10017a1c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [ecx], 0
push ebx
push edi
push 0
pop ebx
mov edi, 0x71f
je 0x10017a3d
push ebx
push edi
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0xc], 0x1928c176
mov dword [ebp - 0xc], ebx
jmp 0x10017aa0
mov dword [ebp - 8], 0xcfe04822
mov dword [ebp - 8], ebx
jmp 0x10017a63
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x1c], 0xfffffff8
inc dword [ebp - 8]
cmp dword [ebp - 8], 4
jl 0x10017a55
mov dword [ebp - 8], 3
cmp dword [ebp - 8], ebx
jl 0x10017a9d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + eax*4 - 0x1c]
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x1c], ecx
mov byte [ebp - 1], bl
cmp byte [ebp - 1], 0
je 0x10017a98
push ebx
push edi
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
dec dword [ebp - 8]
jns 0x10017a75
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xfffffffe
jne 0x10017a49
pop edi
pop ebx
mov esp, ebp
pop ebp
ret