joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bdba
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x45c368
cmp edx, dword [eax]
je 0x41bddc
add eax, 8
inc ecx
cmp eax, 0x45c3f8
jl 0x41bdcd
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x45c368]
jne 0x41bf0a
mov eax, dword [0x460f50]
cmp eax, 1
je 0x41bee4
test eax, eax
jne 0x41be0d
cmp dword [0x45bc64], 1
je 0x41bee4
cmp edx, 0xfc
je 0x41bf0a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41be44
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041d540
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00417580
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41be87
lea eax, [ebp - 0x1a4]
push eax
call fcn.00417580
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x44efc8
push edi
call fcn.00415f30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041d540
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041d550
lea eax, [ebp - 0xa0]
push 0x44efa8
push eax
call fcn.0041d550
push dword [esi + 0x45c36c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041d550
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041f979
add esp, 0x2c
pop edi
jmp 0x41bf0a
lea eax, [ebp + 8]
lea esi, [esi + 0x45c36c]
push 0
push eax
push dword [esi]
call fcn.00417580
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x424020
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00416210
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4240eb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4240eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42409e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4240a9
or bh, 8
and edi, 0x8000000
je 0x4240c4
mov eax, dword [0x46271c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4240eb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4244c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4244eb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42450f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42452a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x42702f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0043e97d
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x427060
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00427073
pop edi
pop esi
pop ebx
ret 8
Function at 0x42a0eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42a12d
call fcn.0043e97d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42a12d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42a124
xor eax, eax
jmp 0x42a135
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042a13b
pop edi
pop esi
pop ebx
ret 4

Function at 0x42bdab
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x42bddb
push edi
call ebx
push eax
call fcn.0042dfbb
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x42be05
test byte [ebp - 4], 1
je 0x42be05
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42be05
push edi
call ebx
push eax
call fcn.0042dfbb
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x42beab
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0042bcf8
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x42be37
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0042bcf8
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x42be4d
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0042bcf8
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42be77
push 0
call ebx
push eax
call fcn.0042dfbb
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x42be95
push eax
call ebx
push eax
call fcn.0042dfbb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x42bea9
push eax
call ebx
push eax
call fcn.0042dfbb
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x42bed2
test byte [ebp - 4], 1
jne 0x42bed2
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42bed2
push edi
call ebx
push eax
call fcn.0042dfbb
pop edi
pop ebx
leave
ret 8
Function at 0x440887
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4408b5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4408d3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004407ed
jmp 0x4408d3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4408d3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004407ed
test edi, edi
mov eax, edi
jne 0x4408bd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100053f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
xor esi, esi
lea eax, [edx + eax*2]
mov dword [ebp - 0x10], eax
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea edi, [esi + eax]
jne 0x10005440
cmp edi, esi
jb 0x100054ab
cmp edi, dword [ebp + 0x10]
ja 0x100054be
add esi, dword [ebp + 0xc]
nop word [eax + eax]
test eax, eax
je 0x10005442
dec eax
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x10005430
jmp 0x1000549f
ja 0x10005449
cmp edx, dword [ebp - 0x10]
mov esi, edi
jne 0x10005405
mov edi, dword [ebp + 0x18]
movzx ecx, cx
mov al, 1
add edi, ebx
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebx]
lea esi, [ebx + 1]
test dl, dl
js 0x10005480
mov ebx, esi
sub ecx, edx
jns 0x10005497
jmp 0x100054a1
cmp esi, edi
je 0x100054d2
movzx esi, byte [ebx + 1]
and edx, 0x7f
add ebx, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x100054a1
xor al, 1
cmp ebx, edi
jne 0x10005460
jmp 0x100054a1
xor eax, eax
and al, 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x1036521c
call fcn.10004170
add esp, 4
ud2
mov edx, dword [ebp + 0x10]
mov ecx, edi
push 0x1036521c
call fcn.10003a80
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x1036522c
call fcn.10003da0
add esp, 4
ud2
Function at 0x1000f030
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x1000f047
test eax, eax
jne 0x1000f1a8
mov edi, dword [0x1036e07c]
test edi, edi
je 0x1000f1a8
mov dword [ebp - 0x10], 0
jmp 0x1000f067
mov edi, dword [edi + 8]
test edi, edi
je 0x1000f096
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1000f1e7
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1000f060
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x1000f060
test byte [ebp - 0x10], 1
je 0x1000f1a8
mov edi, dword [0x1036e07c]
test edi, edi
je 0x1000f1a8
mov dword [ebp - 0x10], 0
jmp 0x1000f0c7
mov edi, dword [edi + 8]
test edi, edi
je 0x1000f0f6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1000f1e7
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1000f0c0
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x1000f0c0
test byte [ebp - 0x10], 1
je 0x1000f1a8
mov edi, dword [0x1036e07c]
test edi, edi
je 0x1000f1a8
mov dword [ebp - 0x10], 0
jmp 0x1000f127
mov edi, dword [edi + 8]
test edi, edi
je 0x1000f156
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1000f1e7
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1000f120
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x1000f120
test byte [ebp - 0x10], 1
je 0x1000f1a8
mov edi, dword [0x1036e07c]
test edi, edi
je 0x1000f1a8
mov dword [ebp - 0x10], 0
jmp 0x1000f177
mov edi, dword [edi + 8]
test edi, edi
je 0x1000f1a2
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1000f1e7
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1000f170
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x1000f170
test byte [ebp - 0x10], 1
jne 0x1000f1b2
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x1036e07c]
jmp 0x1000f1bd
mov edi, dword [edi + 8]
test edi, edi
je 0x1000f1a8
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1000f1e7
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1000f1ba
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x1000f1ba
mov edx, 0x2b
mov ecx, str.called__Option::unwrap____on_a__None__value
push 0x10367b14
call fcn.10003da0
add esp, 4
ud2
Function at 0x1000f540
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov eax, dword [0x1003f010]
test eax, eax
je 0x1000f56c
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x1000f581
cmp dword [eax], 0
mov edi, eax
je 0x1000f581
add edi, 4
jmp 0x1000f64e
mov ecx, 0x1003f010
call fcn.1000f750
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x1000f55d
mov eax, dword [0x1003f010]
test eax, eax
je 0x1000f633
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x1000f64c
mov esi, eax
test eax, eax
jne 0x1000f605
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0x1003f010
mov eax, dword [0x1036e078]
test eax, eax
jne 0x1000f5cd
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x1000f663
mov dword [0x1036e078], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1000f663
movsd xmm0, qword [ebp - 0x18]
movsd xmm1, qword [ebp - 0x10]
mov esi, eax
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [0x1003f010]
test eax, eax
je 0x1000f657
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov ecx, dword [esi + 8]
movsd xmm0, qword [0x10040300]
cmp dword [esi], 0
lea edi, [esi + 4]
movsd qword [esi], xmm0
mov dword [esi + 8], 0
je 0x1000f64e
test ecx, ecx
je 0x1000f64e
lock dec dword [ecx]
jne 0x1000f64e
call fcn.1000f6a0
jmp 0x1000f64e
mov ecx, 0x1003f010
call fcn.1000f750
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x1000f59e
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebp
ret
mov ecx, 0x1003f010
call fcn.1000f750
jmp 0x1000f5fe
mov ecx, 0x10
mov edx, 4
call fcn.10002c00
ud2
Function at 0x1000f750
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x1000f7b9
lea ebx, [esi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x1000f7ef
cmp dword [ebp - 0x14], 0
je 0x1000f7d6
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1000f803
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x1036e07c]
nop dword [eax + eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0x1036e07c], esi
jne 0x1000f7a0
push 0
push 0
push ebx
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x1000f7e5
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x1000f83f
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x1000f7da
mov edi, dword [ebp - 0x10]
jmp 0x1000f7e5
mov edi, dword [esi]
jmp 0x1000f7e4
mov edi, eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], 0
call fcn.1000f890
ud2
push 0
push 4
push ebx
call sub.KERNEL32.dll_InitOnceComplete
lea ecx, [ebp - 0x2c]
mov edx, 0x10367af0
mov dword [ebp - 0x24], 0x10367ae8
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], str.Index_out_of_bounds
mov dword [ebp - 0x18], 0
call fcn.100032d0
ud2
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0x10367ae8
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], str.Index_out_of_bounds
mov dword [ebp - 0x18], 0
call fcn.1000f8f0
ud2
Function at 0x10010d30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x1003f020]
test eax, eax
je 0x10010dd4
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x10010d54
cmp dword [eax], 0
mov esi, eax
jne 0x10010dcc
mov eax, dword [0x1003f020]
test eax, eax
je 0x10010df2
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x10010e0b
mov esi, eax
test eax, eax
jne 0x10010dc0
mov eax, dword [0x1036e078]
test eax, eax
jne 0x10010d92
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10010e1e
mov dword [0x1036e078], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x10010e1e
mov dword [eax], 0
mov dword [eax + 8], 0x1003f020
mov esi, eax
mov eax, dword [0x1003f020]
test eax, eax
je 0x10010e12
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
movsd xmm0, qword [0x100403a0]
movsd qword [esi], xmm0
add esi, 4
mov eax, esi
pop esi
pop ebp
ret
mov ecx, 0x1003f020
call fcn.1000f750
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x10010d4d
jmp 0x10010d54
mov ecx, 0x1003f020
call fcn.1000f750
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x10010d71
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret
mov ecx, 0x1003f020
call fcn.1000f750
jmp 0x10010db9
mov ecx, 0xc
mov edx, 4
call fcn.10002c00
ud2
Function at 0x10013570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
movzx eax, byte [edx + 0x1c]
mov edi, edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], ecx
cmp al, 1
mov byte [ebp - 0x10], al
mov eax, 0
setne dl
sbb eax, eax
or al, dl
call 0x1001359f
pop edx
mov dword [ebp - 0x14], edx
cmp al, 0xff
movzx edx, al
je 0x100135ae
test edx, edx
jne 0x100135d5
movzx ebx, byte [edi + 0x1e]
cmp al, 0xff
mov esi, ebx
je 0x100135bc
test edx, edx
jne 0x100135c9
mov ecx, edi
call fcn.10013480
movzx eax, al
mov dword [ebp - 0x1c], eax
mov edx, esi
xor ebx, ebx
cmp byte [ebp - 0x10], 0
jne 0x1001363e
jmp 0x100135df
xor edx, edx
xor ebx, ebx
cmp byte [ebp - 0x10], 0
jne 0x1001363e
xor ebx, ebx
cmp byte [edi + 8], 6
lea eax, [edi + 8]
cmove eax, ebx
je 0x1001363e
movzx ecx, byte [eax]
mov esi, dword [ebp - 0x14]
mov ebx, 6
add esi, dword [ecx*4 + 0x10013768]
jmp esi
mov eax, dword [ebp - 0x1c]
movzx ecx, dl
mov edx, dword [edi + 4]
mov dword [ebp - 0x24], ecx
add ecx, eax
add ecx, ebx
cmp edx, ecx
jb 0x10013752
mov esi, edi
mov edi, dword [edi]
cmp edx, ecx
mov eax, edi
lea eax, [edi + ecx]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], eax
mov eax, edx
jne 0x10013686
movzx edx, byte [esi + 8]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
xor esi, esi
mov byte [ebp - 0x14], dl
mov edx, eax
sub edx, ecx
jne 0x1001370c
jmp 0x100136ed
movzx edx, byte [esi + 8]
cmp dl, 3
mov byte [ebp - 0x14], dl
jae 0x100136bb
add ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
mov edx, eax
add ebx, dword [ebp - 0x24]
lea esi, [eax + esi - 1]
sub ebx, eax
nop word cs:[eax + eax]
nop dword [eax]
cmp byte [esi], 0x5c
je 0x100136f1
dec esi
inc ebx
jne 0x100136b0
jmp 0x100136e1
add ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
mov edx, eax
add ebx, dword [ebp - 0x24]
lea esi, [eax + esi - 1]
sub ebx, eax
nop dword [eax]
movzx edi, byte [esi]
cmp edi, 0x2f
je 0x100136f1
cmp edi, 0x5c
je 0x100136f1
dec esi
inc ebx
jne 0x100136d0
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
xor esi, esi
sub edx, ecx
jne 0x1001370c
mov al, 0xa
jmp 0x1001373d
not ebx
lea ecx, [ecx + ebx + 1]
cmp edx, ecx
jb 0x10013759
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
mov esi, 1
add ebx, ecx
sub edx, ecx
je 0x100136ed
movzx ecx, byte [ebp - 0x14]
mov al, 9
cmp edx, 2
je 0x1001372f
cmp edx, 1
jne 0x1001373d
cmp byte [ebx], 0x2e
jne 0x1001373d
xor eax, eax
cmp cl, 3
setae al
lea eax, [eax + eax*2 + 7]
jmp 0x1001373d
cmp byte [ebx], 0x2e
jne 0x1001373d
cmp byte [ebx + 1], 0x2e
sete al
xor al, 9
add esi, edx
mov dword [edi], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], edx
mov byte [edi + 0xc], al
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x103670b0
jmp 0x1001375e
push 0x103670c0
call fcn.10003a10
add esp, 4
ud2
Function at 0x10014230
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x350
mov dword [esp + 0x28], ecx
mov ecx, dword [0x1036e088]
call fcn.1001424e
Function at 0x1003ab80
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.100357f0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.100357f0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x1003abe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x1036eaa4]
test esi, esi
jle 0x1003ad00
mov eax, dword [0x1036eaa8]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x1003ac14
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x1003ac97
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x1003ac00
mov dword [esp], ebx
call fcn.1003b340
mov edi, eax
test eax, eax
je 0x1003ad27
mov eax, dword [0x1036eaa8]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.1003b480
mov edx, dword [0x1036eaa8]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x1003ad07
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x1003ac90
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x1003aca0
add dword [0x1036eaa4], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x1036eaa8]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x1003ac90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.1003ab80
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x1003ac1e
mov eax, dword [0x1036eaa8]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.1003ab80
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.1003ab80
lea esi, [esi]
nop