joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d1241f1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x5d124200
pop dword [ebp - 0x34]
mov eax, 0xaabe2a09
sub eax, 0x4dabe809
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x25b980c
add dword [ebp - 0x44], 0x4bf6ad3f
mov dword [ebp - 0x40], 0x268d2472
add dword [ebp - 0x40], 0xba627d3
mov dword [ebp - 0x3c], 0x88319e43
add dword [ebp - 0x3c], 0xc41aa5eb
mov dword [ebp - 0x38], 0x96339237
sub dword [ebp - 0x38], 0x96339237
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x8f5885c2
sub dword [ebp - 0x44], 0x1ae61c6c
mov dword [ebp - 0x40], 0x3693c6cd
sub dword [ebp - 0x40], 0xf5276558
mov dword [ebp - 0x3c], 0xfa94f63a
add dword [ebp - 0x3c], 0x68da7632
mov dword [ebp - 0x38], 0x524d09ce
add dword [ebp - 0x38], 0xadb2f632
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xc7db5031
sub eax, 0x6ac89fcd
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3a16d
push 0
call eax
mov ecx, 0x5273
mov ebx, eax
mov esi, 0x730d7272
add esi, 0xea05bb8e
add esi, dword [ebp - 0x34]
mov edi, 0x60f1a533
add edi, 0x72499f32
xor dword [ebp - 0x14], eax
mov edx, dword [esi]
add dword [ebp - 0x1c], edi
add edx, edi
xor dword [ebp - 0x24], 0x7d0e2360
mov dword [ebx], edx
xor dword [ebp - 0x1c], esi
add ebx, 0xf630859d
sub ebx, 0xf6308599
add esi, 0x7796166
add esi, 0xf8869e9e
loop 0x5d124317
add eax, 0x13c9f
xor ebx, ebx
add ebx, eax
add eax, 0xbe18863b
sub eax, 0xbe188636
mov ecx, sym.ATL70.DLL_Ordinal_16
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x5d1291a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
call fcn.5d1241f1
mov esi, dword [esp + 0x18]
push 5
push dword [esp + 0x20]
xor ebp, ebp
push esi
mov dword [esp + 0x18], ebp
call fcn.5d121b58
add esp, 0xc
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x5d129279
push ebx
push edi
push 0xf0
push dword [esp + 0x28]
push esi
call fcn.5d121b58
mov edi, dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, dword [sym.imp.kernel32.dll_LockResource]
add esp, 0xc
cmp eax, ebp
je 0x5d1291fe
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x5d12925c
push eax
call ebx
mov edi, eax
test edi, edi
je 0x5d12925c
push ebp
push edi
call fcn.5d1241f1
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x5d129248
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x5d129266
push ebx
call dword [sym.imp.kernel32.dll_GlobalHandle]
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
jmp 0x5d129266
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop edi
pop ebx
je 0x5d129279
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x5d1299d4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push esi
mov esi, ecx
call fcn.5d1299c6
and byte [esi + 0xc], 0
mov eax, sym.ATL70.DLL_Ordinal_16
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov dword [esi], 0x3c
call fcn.5d129e50
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x5d129a2e
cmp dword [ebp - 0x18], 5
jb 0x5d129a46
jmp 0x5d129a42
cmp dword [ebp - 0xc], 1
jne 0x5d129a46
cmp dword [ebp - 0x18], 4
ja 0x5d129a42
jne 0x5d129a46
cmp dword [ebp - 0x14], 0
jbe 0x5d129a46
mov byte [esi + 0xc], 1
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x5d12e234
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret
Function at 0x410e31
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040d2b2
mov dword [ebp - 0x14], eax
cmp dword [0x4210d8], edi
jne 0x410f22
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x410eaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x411002
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x411002
push 0x419318
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411002
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4210d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4210dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4210e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4210e8], eax
test eax, eax
je 0x410f1f
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4210e4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410f47
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410f3a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x410f5c
push 4
pop eax
jmp 0x411004
cmp dword [ebp - 0x14], edi
je 0x410f5c
push dword [0x4210d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410f41
mov eax, dword [0x4210e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x410fba
cmp dword [0x4210e8], esi
je 0x410fba
push eax
call ebx
push dword [0x4210e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x410fba
test eax, eax
je 0x410fba
call ecx
test eax, eax
je 0x410faf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x410faf
test byte [ebp - 8], 1
jne 0x410fba
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x410fea
mov eax, dword [0x4210dc]
cmp eax, esi
je 0x410fe7
push eax
call ebx
test eax, eax
je 0x410fe7
call eax
mov edi, eax
test edi, edi
je 0x410fe7
mov eax, dword [0x4210e0]
cmp eax, esi
je 0x410fe7
push eax
call ebx
test eax, eax
je 0x410fe7
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4210d8]
call ebx
test eax, eax
je 0x411002
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x411004
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407166
leave
ret
Function at 0x44d880
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0x6c078965
call fcn.0045f340
sub esp, 0xc
mov eax, dword [ebp - 8]
add esp, 0x14
pop ebp
ret 4

Function at 0x44de20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, esp
mov dword [esi + 0x10], ebp
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov edi, esp
mov dword [esi + 0x44], edi
mov dword [esi + 0x50], 0xffffffff
lea edi, [esi + 0x48]
mov dword [esi + 0x4c], 0x462d20
mov ebx, dword fs:[0]
mov dword [esi + 0x48], ebx
mov dword fs:[0], edi
mov dword [esi + 0x3c], edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], ecx
mov eax, dword [esi + 0x34]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], 0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
lea ecx, [esi + 0x28]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00460710
sub esp, 8
lea ecx, [esi + 0x28]
call fcn.00450510
test al, 1
jne 0x44deb0
jmp 0x44df65
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
sub ecx, 1
sbb eax, 0
jl 0x44df65
jmp 0x44dec7
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00450590
mov ecx, eax
mov edi, dword [esi + 0x38]
mov ebx, dword [esi + 0x3c]
mov edx, dword [ebp + 8]
mov dword [esi + 0x50], 1
mov eax, esp
mov dword [eax + 8], ebx
mov dword [eax + 4], edi
mov dword [eax], edx
call fcn.00461100
sub esp, 0xc
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
jmp 0x44df21
mov dword [esi + 0x50], 0
jmp 0x44df65
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ecx
movsd xmm0, qword [esi + 0x20]
movsd qword [eax + 8], xmm0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
xor ecx, edi
xor eax, edx
or eax, ecx
je 0x44df60
jmp 0x44df57
mov eax, dword [esi + 0x30]
or eax, 3
mov dword [esi + 0x30], eax
jmp 0x44df15
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [esi + 0x30]
mov dword [esi + 0x50], 0
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], 0
call fcn.00450660
sub esp, 8
jmp 0x44df91
lea ecx, [esi + 0x28]
call fcn.004609a0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x48]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x44ff10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x44ff58
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
movzx eax, byte [eax + ecx]
xor eax, dword [ebp + 8]
mov dword [ebp + 8], eax
imul eax, dword [ebp + 8], 0x1000193
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x44ff24
mov eax, dword [ebp + 8]
add esp, 4
pop ebp
ret
Function at 0x45f400
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp dword [eax], 0x270
jne 0x45f428
mov ecx, dword [ebp - 0xc]
call fcn.0045f4b0
jmp 0x45f445
mov ecx, dword [ebp - 0xc]
mov eax, 0x4e0
cmp eax, dword [ecx]
ja 0x45f440
mov ecx, dword [ebp - 0xc]
call fcn.0045f550
jmp 0x45f445
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov edx, eax
add edx, 1
mov dword [ecx], edx
mov eax, dword [ecx + eax*4 + 4]
and eax, 0xffffffff
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shr eax, 0xb
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0xffffffff
shr eax, 0x12
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebp
ret

Function at 0x45f4b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0x270
cmp dword [ebp - 0x10], 0x4e0
jae 0x45f542
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
sub ecx, 0x270
mov ecx, dword [eax + ecx*4 + 4]
and ecx, 0x80000000
mov edx, dword [ebp - 0x10]
sub edx, 0x270
mov edx, dword [eax + edx*4 + 8]
and edx, 0x7fffffff
or ecx, edx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
shr edx, 1
mov edi, dword [ebp - 0x14]
and edi, 1
xor ecx, ecx
mov esi, 0x9908b0df
cmp edi, 0
cmovne ecx, esi
xor edx, ecx
mov ecx, dword [ebp - 0x10]
sub ecx, 0x270
xor edx, dword [eax + ecx*4 + 0x638]
mov ecx, dword [ebp - 0x10]
mov dword [eax + ecx*4 + 4], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x45f4c8
add esp, 0x10
pop esi
pop edi
pop ebp
ret
Function at 0x45f550
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], 0x26f
mov dword [ebp - 0x14], 0xe3
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0xe3
jae 0x45f5e4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [eax + ecx*4 + 0x9c4]
and ecx, 0x80000000
mov edx, dword [ebp - 0x18]
mov edx, dword [eax + edx*4 + 0x9c8]
and edx, 0x7fffffff
or ecx, edx
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
shr edx, 1
mov edi, dword [ebp - 0x1c]
and edi, 1
xor ecx, ecx
mov esi, 0x9908b0df
cmp edi, 0
cmovne ecx, esi
xor edx, ecx
mov ecx, dword [ebp - 0x18]
xor edx, dword [eax + ecx*4 + 0xff8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + ecx*4 + 4], edx
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x45f576
mov dword [ebp - 0x20], 0xe3
cmp dword [ebp - 0x20], 0x26f
jae 0x45f65f
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [eax + ecx*4 + 0x9c4]
and ecx, 0x80000000
mov edx, dword [ebp - 0x20]
mov edx, dword [eax + edx*4 + 0x9c8]
and edx, 0x7fffffff
or ecx, edx
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
shr edx, 1
mov edi, dword [ebp - 0x24]
and edi, 1
xor ecx, ecx
mov esi, 0x9908b0df
cmp edi, 0
cmovne ecx, esi
xor edx, ecx
mov ecx, dword [ebp - 0x20]
sub ecx, 0x270
xor edx, dword [eax + ecx*4 + 0x638]
mov ecx, dword [ebp - 0x20]
mov dword [eax + ecx*4 + 4], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
jmp 0x45f5eb
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], 0x26f
mov ecx, dword [eax + 0x1380]
and ecx, 0x80000000
mov edx, dword [eax + 4]
and edx, 0x7fffffff
or ecx, edx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
shr ecx, 1
mov edi, dword [ebp - 0x2c]
and edi, 1
xor edx, edx
mov esi, 0x9908b0df
cmp edi, 0
cmovne edx, esi
xor ecx, edx
xor ecx, dword [eax + 0x634]
mov dword [eax + 0x9c0], ecx
mov dword [eax], 0
add esp, 0x28
pop esi
pop edi
pop ebp
ret
Function at 0x4627d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x463520
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x40], ecx
mov dword [eax], ecx
call fcn.00462910
mov ecx, dword [ebp - 0x40]
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x38], ecx
call fcn.00462980
sub esp, 4
mov ecx, dword [ebp - 0x40]
call fcn.004629e0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], 0x462a20
add eax, 4
mov dword [ebp - 0x34], eax
call fcn.004516d0
mov edx, dword [ebp - 0x34]
mov ecx, eax
mov dword [ebp - 0x10], 0
mov eax, esp
mov dword [eax + 0x14], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov dword [eax + 8], 0x462a20
mov dword [eax + 4], 0
mov dword [eax], 0
call fcn.00473532
mov dword [ebp - 0x30], eax
jmp 0x462891
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
cmp dword [eax], 0
je 0x4628c8
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x44], ecx
call fcn.00454f60
mov ecx, dword [ebp - 0x44]
call fcn.004629e0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [ebp - 0x3c]
mov dword [eax + 4], 0
mov eax, esp
mov dword [eax], 6
call fcn.00464807
jmp 0x4628e4
nop word cs:[eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
lea ecx, [ebp - 0x24]
call fcn.004629e0
add esp, 0x18
pop ebp
ret

Function at 0x464220
Capabilities:
Parse pe header

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

Function at 0x47855a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48f560
push 0x48f558
push str.FlsAlloc
push 0x1f
call fcn.00478385
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47858e
push dword [ebp + 8]
mov ecx, esi
call dword [0x48a20c]
call esi
jmp 0x478594
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4785d8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48f570
push 0x48f568
push str.FlsGetValue
push 0x21
call fcn.00478385
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47860f
push dword [ebp + 8]
mov ecx, esi
call dword [0x48a20c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x478617
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48f578
push 0x48f570
push str.FlsSetValue
push 0x22
call fcn.00478385
mov esi, eax
add esp, 0x10
test esi, esi
je 0x478651
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x48a20c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x47c47b
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 + 0x4c6440]
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 0x47c4bb
cmp byte [ebx], 0xa
jne 0x47c4bb
or byte [edi + eax + 0x28], 4
jmp 0x47c4c0
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 0x47c5bf
mov dl, byte [eax]
cmp dl, 0x1a
je 0x47c5a2
inc eax
cmp dl, 0xd
je 0x47c4ec
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x47c512
cmp eax, ecx
jae 0x47c520
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 0x47c4d4
jmp 0x47c5bf
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 0x47c59d
cmp dword [ebp - 0x10], 0
je 0x47c59d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4c6440]
test byte [eax + edi + 0x28], 0x48
je 0x47c577
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47c562
mov byte [esi], dl
jmp 0x47c573
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c6440]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x47c5bf
cmp byte [ebp - 1], 0xa
jne 0x47c586
cmp esi, ebx
jne 0x47c586
mov byte [esi], 0xa
jmp 0x47c5be
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0047d001
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47c5bf
mov byte [esi], 0xd
jmp 0x47c5be
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4c6440]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47c5bc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47c5bf
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47c5c8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4c6440]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x47c60e
cmp word [ebx], dx
jne 0x47c60e
or byte [eax + edi + 0x28], 4
jmp 0x47c613
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x47c776
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x47c756
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x47c654
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x47c68a
cmp eax, edx
jae 0x47c698
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x47c62f
jmp 0x47c776
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47c751
cmp dword [ebp - 0x18], 0
je 0x47c751
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4c6440]
test byte [eax + edi + 0x28], 0x48
je 0x47c727
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x47c6eb
mov word [esi], cx
jmp 0x47c722
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4c6440]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4c6440]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4c6440]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x47c776
pop eax
cmp word [ebp - 4], ax
jne 0x47c737
cmp esi, ebx
jne 0x47c737
mov word [esi], ax
jmp 0x47c773
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0047d001
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x47c776
push 0xd
pop eax
jmp 0x47c732
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4c6440]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x47c770
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x47c776
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret