joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4f90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50221d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5e0f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4a507d
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4a5073
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00424d00
add esp, 8
test al, al
je 0x4a5073
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4a5073
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
dec ecx
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
push 0x5c
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x28]
call fcn.00431680
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5046
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.004311c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00421b80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3b35
mov esp, ebp
pop ebp
ret
Function at 0x4a5370
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50226d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5e0f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, eax
mov ecx, dword [eax + 0x14]
cmp ecx, 0x10
jb 0x4a53aa
mov ebx, dword [eax]
cmp dword [eax + 0x10], 3
lea edx, [eax + 0x10]
mov edi, ebx
mov byte [ebp - 0x29], 0
mov dword [ebp - 0x30], edx
jb 0x4a53e8
mov edx, eax
cmp ecx, 0x10
jb 0x4a53c5
mov edx, dword [eax]
cmp byte [edx], 0x41
jl 0x4a53e8
mov edx, eax
cmp ecx, 0x10
jb 0x4a53d3
mov edx, dword [eax]
cmp byte [edx], 0x5a
jg 0x4a53e8
cmp ecx, 0x10
jb 0x4a53df
mov eax, dword [eax]
cmp byte [eax + 1], 0x3a
jne 0x4a53e8
lea edi, [ebx + 3]
push 0x5c
push edi
call fcn.004d5600
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a5404
mov eax, dword [ebp - 0x30]
mov byte [ebp - 0x29], 1
mov esi, dword [eax]
add esi, ebx
mov eax, esi
sub eax, edi
je 0x4a554a
mov al, byte [esi]
push 0
mov byte [ebp - 0x2a], al
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00493f50
add esp, 0xc
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4a5508
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x4a5508
call edi
mov ecx, ebx
mov dword [ebp - 0x54], 0
mov edi, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5481
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x54]
call fcn.00401720
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x6c]
call fcn.00404150
cmp dword [ebp - 0x58], 0x10
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x6c]
push eax
push str.path
call fcn.004a4430
add esp, 8
lea ecx, [ebp - 0x6c]
call fcn.00404db0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00404db0
push 0x5b67d0
push edi
push 3
sub esp, 0xc
mov dword [ebp - 0x3c], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov eax, esp
mov dword [ebp - 0x38], str.OS_MakeDirectory
movq xmm0, qword [ebp - 0x3c]
movq qword [eax], xmm0
mov dword [eax + 8], 0x237
call fcn.004a4b70
add esp, 0x18
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 8
jb 0x4a5545
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4a553b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a5573
push ecx
push edx
call fcn.004d36cd
add esp, 8
mov al, byte [ebp - 0x2a]
mov byte [esi], al
cmp byte [ebp - 0x29], 0
lea edi, [esi + 1]
je 0x4a53e8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3b35
mov esp, ebp
pop ebp
ret
call fcn.004d826f
int3
Function at 0x4ab950
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502385
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5e0f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
push 0
push 0
push eax
push ecx
push edx
push 0
mov dword [ebp - 4], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov byte [ebp - 0x11], 0
call fcn.004e5159
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x4abace
cmp dword [ebp + 0x2c], 0x10
lea ecx, [ebp + 0x18]
mov edx, dword [ebp + 0x28]
cmovae ecx, dword [ebp + 0x18]
mov byte [ebp - 0x11], 1
mov dword [edi + 4], ebx
mov byte [edi], 1
test edx, edx
jne 0x4aba34
mov esi, 0x503500
sub edx, 4
jb 0x4ab9f1
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4ab9f6
add ecx, 4
add esi, 4
sub edx, 4
jae 0x4ab9e0
cmp edx, 0xfffffffc
je 0x4aba2a
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x4aba23
cmp edx, 0xfffffffd
je 0x4aba2a
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x4aba23
cmp edx, 0xfffffffe
je 0x4aba2a
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x4aba23
cmp edx, 0xffffffff
je 0x4aba2a
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x4aba2a
sbb eax, eax
or eax, 1
jmp 0x4aba2c
xor eax, eax
test eax, eax
je 0x4abb07
cmp dword [0x607534], 0
je 0x4abaa6
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00493eb0
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x4aba59
mov eax, dword [eax]
push eax
push dword [edi + 4]
call dword [0x607534]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00421b80
test esi, esi
jns 0x4abb07
push str.SetThreadDescription
push esi
push 4
sub esp, 0xc
mov dword [ebp - 0x20], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov eax, esp
mov dword [ebp - 0x1c], str.OS_CreateThread
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x102
jmp 0x4abaff
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4abb07
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadId]
push eax
lea ecx, [ebp - 0x12]
call fcn.00480700
jmp 0x4abb07
mov dword [ebp - 0x20], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov dword [ebp - 0x1c], str.OS_CreateThread
call fcn.004e09ca
movq xmm0, qword [ebp - 0x20]
push str._beginthreadex
push dword [eax]
push 2
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0x12c
call fcn.004a4b70
add esp, 0x18
mov ecx, dword [ebp + 0x2c]
cmp ecx, 0x10
jb 0x4abb37
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4abb2d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4abb56
push ecx
push edx
call fcn.004d36cd
add esp, 8
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3b35
mov esp, ebp
pop ebp
ret
call fcn.004d826f
int3
Function at 0x4ae6d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50287e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5e0f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 2
push 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x4ae7c9
xor eax, eax
mov dword [ebp - 0x28], 0
push 0xffffffffffffffff
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
push edi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x2c], 1
call fcn.00493fd0
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push 0xa
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x4ae7bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 0x5b6c70
mov esi, eax
call fcn.004a4430
add esp, 8
mov dword [ebp - 0x38], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov dword [ebp - 0x34], str.OS_OpenWebsite
movq xmm0, qword [ebp - 0x38]
push 0x5b6c74
push esi
push 3
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0x8a0
call fcn.004a4b70
add esp, 0x18
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x28]
call fcn.00421b80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3b35
mov esp, ebp
pop ebp
ret
Function at 0x4b1320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5e0f00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xc], esi
mov edi, esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4b13b2
nop word [eax + eax]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b1379
mov eax, dword [ebp - 8]
test eax, eax
je 0x4b13b2
add edi, eax
sub esi, eax
jne 0x4b1350
jmp 0x4b13b2
push 0x5b6904
mov dword [ebp - 0x18], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov dword [ebp - 0x14], str.Read
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [ebp - 0x18]
push eax
push 3
sub esp, 0xc
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], 0x3a4
call fcn.004a4b70
add esp, 0x18
sub edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3b35
mov esp, ebp
pop ebp
ret
Function at 0x4bdfd0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x60752c]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x4218]
cmp ecx, 0xffffffff
jne 0x4bdfed
cmp dword [edx + 0x5c], ecx
cmovne ecx, dword [edx + 0x5c]
or eax, 0xffffffff
cmp ecx, dword [edx + 0x54]
cmove ecx, eax
test byte [edx + 4], 7
je 0x4be057
mov ax, word [edx + 0x60]
push esi
push edi
mov edi, dword [edx]
mov esi, 0x5b5c8d
not edi
mov byte [edx + 0x1c0], cl
mov word [edx + 0x62], ax
mov cl, 0x23
mov byte [edx + 0x1ce], 1
mov eax, edi
cmp cl, 0x23
jne 0x4be02f
cmp byte [esi], cl
jne 0x4be02f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x5965c0]
test cl, cl
jne 0x4be020
not eax
push 0
push eax
call fcn.004af280
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x4c3500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5e0f00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
push edi
mov edi, ebx
test esi, esi
je 0x4c3595
nop word [eax + eax]
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c355c
mov eax, dword [ebp - 8]
cmp eax, esi
jne 0x4c355c
add edi, eax
sub esi, eax
mov eax, dword [ebp - 0xc]
jne 0x4c3530
jmp 0x4c3595
push 0x5b6958
mov dword [ebp - 0x18], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov dword [ebp - 0x14], str.Write
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [ebp - 0x18]
push eax
push 3
sub esp, 0xc
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], 0x3d0
call fcn.004a4b70
add esp, 0x18
mov ecx, dword [ebp - 4]
sub edi, ebx
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004d3b35
mov esp, ebp
pop ebp
ret

Function at 0x4c49f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5e0f00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, 1
mov esi, 0x607610
xchg dword [esi], eax
test eax, eax
je 0x4c4a1a
push esi
call fcn.004c8100
add esp, 4
cmp dword [0x607614], 0
jne 0x4c4a95
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0xc]
lea eax, [edx - 1]
test edx, eax
jne 0x4c4aad
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 1]
test ecx, eax
jne 0x4c4aad
mov dword [0x60761c], edx
mov dword [0x607618], ecx
mov dword [0x607620], 0x40000
mov dword [0x607624], 0x200000
mov dword [0x607628], 7
mov dword [0x6077ec], 7
mov dword [0x6077f0], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, 0x55555550
and eax, 0xfffffff8
or eax, 8
mov dword [0x607614], eax
xor ecx, ecx
xchg dword [esi], ecx
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004d3b35
mov esp, ebp
pop ebp
ret
call fcn.004e4cee
int3
Function at 0x4d05b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
and edi, 0x1f
mov dword [ebp + 0x14], edi
cmp edi, 8
jb 0x4d06e6
mov eax, edi
shr eax, 3
cmp dword [ebp + 0x18], 1
jne 0x4d0668
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [eax + 4]
push dword [eax]
call fcn.004d3c00
add dword [ebp + 0x10], 8
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.004d3c00
mov ecx, eax
xor edx, esi
xor ecx, ebx
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.004d3c00
mov ebx, eax
mov esi, edx
mov eax, dword [ebp + 0x10]
add ebx, 0xc2b2ae63
adc esi, 0x85ebca77
sub edi, 8
sub dword [ebp - 4], 1
jne 0x4d05f0
mov dword [ebp + 0x14], edi
jmp 0x4d06ec
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [eax + 4]
push dword [eax]
call fcn.004d3c00
add dword [ebp + 0x10], 8
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.004d3c00
mov ecx, eax
xor edx, esi
xor ecx, ebx
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.004d3c00
mov ebx, eax
mov esi, edx
mov eax, dword [ebp + 0x10]
add ebx, 0xc2b2ae63
adc esi, 0x85ebca77
sub edi, 8
sub dword [ebp - 4], 1
jne 0x4d0671
mov dword [ebp + 0x14], edi
jmp 0x4d06ec
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
mov ecx, eax
cmp edi, 4
jb 0x4d0743
add eax, 4
mov dword [ebp + 0x10], eax
mov eax, 0x9e3779b1
mul dword [ecx]
push 0xc2b2ae3d
mov edi, eax
mov eax, 0x85ebca87
mul dword [ecx]
push 0x27d4eb4f
add edi, edx
xor eax, ebx
xor edi, esi
mov ecx, eax
shld ecx, edi, 0x17
shld edi, eax, 0x17
push edi
push ecx
call fcn.004d3c00
mov edi, dword [ebp + 0x14]
mov ebx, eax
mov eax, dword [ebp + 0x10]
add ebx, 0x9e3779f9
mov esi, edx
adc esi, 0x165667b1
sub edi, 4
test edi, edi
je 0x4d078a
movzx eax, byte [eax]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.004d3c00
inc dword [ebp + 0x10]
xor ebx, eax
xor esi, edx
mov eax, ebx
push 0x9e3779b1
shld eax, esi, 0xb
push 0x85ebca87
shld esi, ebx, 0xb
push esi
push eax
call fcn.004d3c00
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov esi, edx
sub edi, 1
jne 0x4d0747
push 0xc2b2ae3d
xor ecx, ecx
mov edi, esi
push 0x27d4eb4f
xor ecx, esi
shr edi, 1
push ecx
xor edi, ebx
push edi
call fcn.004d3c00
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.004d3c00
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d1990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ca110
Function at 0x4d4c46
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4d4c85
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4d4c85
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4d4c85
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4d4c85
cmp dword [ecx + 0x74], 0xe
jbe 0x4d4c85
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4e2d95
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004d3c40
mov eax, dword [0x5e0f00]
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.004e2205
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4e2dd7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4e2f33
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004d3b50
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 + 0x612d08]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004efaa0
mov ecx, dword [esi*4 + 0x612d08]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4e2f2c
cmp eax, dword [ecx + edi + 0x24]
jne 0x4e2f2c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e2f2c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004efaa0
add esp, 0x14
test edx, edx
jl 0x4e2f2c
jg 0x4e2ea2
test eax, eax
jb 0x4e2f2c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4e2f2c
jl 0x4e2ebc
cmp dword [ebp - 0x1008], eax
ja 0x4e2f2c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4e2eda
test ebx, ebx
je 0x4e2f13
cmp ecx, edi
jae 0x4e2f13
mov al, byte [ecx]
cmp al, 0xd
jne 0x4e2ef4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4e2f00
cmp byte [ecx + 1], 0xa
jne 0x4e2f00
inc ecx
jmp 0x4e2f00
movzx eax, al
movsx eax, byte [eax + 0x5e1138]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4e2eda
cmp edx, ebx
jne 0x4e2eda
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4e2f31
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004d3b35
leave
ret

Function at 0x4ea5b1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5bc41c
push 0x5bc414
push str.FlsAlloc
push 0x1f
call fcn.004ea3dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ea5e5
push dword [ebp + 8]
mov ecx, esi
call dword [0x503444]
call esi
jmp 0x4ea5eb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4ea62f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5bc42c
push 0x5bc424
push str.FlsGetValue
push 0x21
call fcn.004ea3dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ea666
push dword [ebp + 8]
mov ecx, esi
call dword [0x503444]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4ea66e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5bc434
push 0x5bc42c
push str.FlsSetValue
push 0x22
call fcn.004ea3dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ea6a8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x503444]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4eef38
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x612d08]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4eef78
cmp byte [ebx], 0xa
jne 0x4eef78
or byte [edi + eax + 0x28], 4
jmp 0x4eef7d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4ef07c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4ef05f
inc eax
cmp dl, 0xd
je 0x4eefa9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4eefcf
cmp eax, ecx
jae 0x4eefdd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4eef91
jmp 0x4ef07c
push 0
lea eax, [ebp - 0x10]
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 0x4ef05a
cmp dword [ebp - 0x10], 0
je 0x4ef05a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x612d08]
test byte [eax + edi + 0x28], 0x48
je 0x4ef034
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ef01f
mov byte [esi], dl
jmp 0x4ef030
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x612d08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4ef07c
cmp byte [ebp - 1], 0xa
jne 0x4ef043
cmp esi, ebx
jne 0x4ef043
mov byte [esi], 0xa
jmp 0x4ef07b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004efabe
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ef07c
mov byte [esi], 0xd
jmp 0x4ef07b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x612d08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ef079
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ef07c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret