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

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x23c]
sub esp, 0x23c
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4063de
xor eax, eax
test eax, eax
je 0x4063f1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4063f1
xor ecx, ecx
jmp 0x4063f4
xor ecx, ecx
inc ecx
lea eax, [ebp + eax*2 - 0x23c]
lea ecx, [ecx*2 + 0x40a014]
push dword [ebp + 8]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x23c]
add esp, 0x10
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x406512
xor ecx, ecx
mov eax, ecx
push 8
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4064ec
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x4064e7
mov eax, dword [esp + 8]
not eax
mov edx, dword [esp + 0x10]
test edx, edx
jbe 0x406543
mov ecx, dword [esp + 0xc]
push edi
mov esi, eax
and esi, 0xff
movzx edi, byte [ecx]
xor esi, edi
mov esi, dword [esi*4 + 0x4318e8]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x406525
pop edi
pop esi
not eax
ret 0xc
Function at 0x1002bcd0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1002bd06
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
push 0x64e2
push dword [ebp - 8]
push 0xade
push dword [ebp - 0xc]
push 0
call fcn.1004155f
add esp, 0x14
jmp 0x1002bd42
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1002bd22
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
jmp 0x1002bd42
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1002bd42
push 0x1c86
push 0
push 0
push 0x1d5a
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov esp, ebp
pop ebp
ret
Function at 0x10038fff
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10039069
lea eax, [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x1003902d
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x10039067
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1003904f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xfffffff9
je 0x10039067
mov dword [ebp - 8], 0xc0fa
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
jmp 0x10039044
jmp 0x100390c5
lea eax, [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x2527
cmp dword [ebp - 0x18], 0x7c9
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x100390a4
push 0x72e
push 0x1726
push 0x24f6
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x100390c5
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x100390c5
push 0x7c6
call dword [sym.imp.USER32.dll_GetParent]
mov esp, ebp
pop ebp
ret
Function at 0x1003d695
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1003d712
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x1003d6f4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
lea eax, [eax*4 + 4]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [eax + 8]
call fcn.1005eb81
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [ecx + 8], eax
jmp 0x1003d710
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x1003d710
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
jmp 0x1003d745
lea eax, [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x1003d72c
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x1003d745
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1003d745
push 1
push 0x1cad
call dword [sym.imp.USER32.dll_ShowOwnedPopups]
mov esp, ebp
pop ebp
ret
Function at 0x10043425
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x10043486
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
push 0x69b9
push dword [ebp - 0x10]
push 0x5d9c
push 0x55b1
push 0x6224
push 0x9e7
push 0x49a5
push 0x5da7
push 1
push 0xd36
push dword [ebp - 0x14]
push 0x39c
push 0x3083
call fcn.10043522
add esp, 0x34
jmp 0x1004351e
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x10043514
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0x3717
je 0x100434e0
mov dword [ebp - 8], 1
jmp 0x100434e4
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0xe327
jle 0x100434f6
mov dword [ebp - 0xc], 1
jmp 0x100434fa
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
imul eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
jmp 0x1004351e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esp, ebp
pop ebp
ret

Function at 0x100440ea
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x2c]
test eax, eax
je 0x10044141
lea eax, [ebp + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x10044123
push 0xce0
push 0x570
push 0
push 0x253e
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
jmp 0x1004413f
push 0x2104
push 0
push 0x1628
push 0x1c8e
push 0x20ba
call dword [sym.imp.GDI32.dll_ExtFloodFill]
jmp 0x1004419d
mov eax, dword [ebp + 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
push 0x70ed
push 0
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x2488
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.10041c9c
add esp, 0x2c
mov esp, ebp
pop ebp
ret
Function at 0x10045848
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100458ae
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x10045890
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1004588e
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
jmp 0x100458a9
push 0xce0
push 0x570
push 0
push 0x253e
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
jmp 0x1004592e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x28], eax
push 0x4dcd
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 1
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push 0x687
call fcn.1002c89d
add esp, 0x3c
mov esp, ebp
pop ebp
ret
Function at 0x1004fc95
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov dword [esp + 4], 0x2ea6
cmp dword [esp + 4], 0x3256
push esi
push edi
jle 0x1004fcfb
xor esi, esi
mov edi, esi
mov ebx, 0x4aeb
mov eax, edi
lea ecx, [esp + 0x10]
cdq
push edx
push eax
call fcn.1004d5c3
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1004fcd4
mov eax, dword [eax]
push eax
call fcn.1005dc93
pop ecx
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.1001b673
dec edi
dec ebx
jne 0x1004fcbc
inc esi
cmp esi, 0x670b
jl 0x1004fcb5
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [esp + 0xc], 0x2d48
jge 0x1004fd10
push 0x10008828
call fcn.1005dc93
pop ecx
fldz
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100714a5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007b758]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10062158
mov dword [ebp - 0x14], eax
cmp dword [0x10667c58], esi
jne 0x10071598
push 0x800
push esi
push 0x1000806c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10071525
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10071678
push esi
push esi
push 0x1000806c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10071678
push 0x10008084
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10071678
push eax
call ebx
push 0x10008090
push edi
mov dword [0x10667c58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100080a0
push edi
mov dword [0x10667c5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100080b4
push edi
mov dword [0x10667c60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10667c68], eax
test eax, eax
je 0x10071595
push 0x100080d0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10667c64], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100715bd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100715b0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x100715d2
push 4
pop eax
jmp 0x1007167a
cmp dword [ebp - 0x14], esi
je 0x100715d2
push dword [0x10667c58]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x100715b7
mov eax, dword [0x10667c64]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10071630
cmp dword [0x10667c68], edi
je 0x10071630
push eax
call ebx
push dword [0x10667c68]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10071630
test eax, eax
je 0x10071630
call ecx
test eax, eax
je 0x10071625
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 0x10071625
test byte [ebp - 8], 1
jne 0x10071630
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10071660
mov eax, dword [0x10667c5c]
cmp eax, edi
je 0x1007165d
push eax
call ebx
test eax, eax
je 0x1007165d
call eax
mov esi, eax
test esi, esi
je 0x1007165d
mov eax, dword [0x10667c60]
cmp eax, edi
je 0x1007165d
push eax
call ebx
test eax, eax
je 0x1007165d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10667c58]
call ebx
test eax, eax
je 0x10071678
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007167a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005f88c
mov esp, ebp
pop ebp
ret
Function at 0x4022bc
Capabilities:
Create thread
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x42a040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
push 4
call fcn.00407033
pop ecx
lea ecx, [esp + 0x10]
xor ebx, ebx
push ecx
push ebx
push eax
push 0x4038dc
push ebx
push ebx
mov dword [eax], 0x4021f1
call fcn.0040b8bf
add esp, 0x18
mov dword [esp + 0xc], eax
test eax, eax
je 0x402416
call dword [sym.imp.KERNEL32.dll_FreeConsole]
cmp dword [esp + 0x10], ebx
je 0x40241e
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esp + 0x10], eax
jne 0x402327
push 5
jmp 0x402420
push ebx
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.00406a9a
add esp, 0xc
test eax, eax
je 0x402343
push 2
jmp 0x402420
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
xorps xmm0, xmm0
push 0xf
pop esi
movlpd qword [esp + 0xc], xmm0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov byte [esp + 0x1c], bl
call fcn.004026a7
lea edx, [esp + 0x1c]
call fcn.0040292e
cmp dword [esp + 0x2c], ebx
jbe 0x40239e
cmp dword [esp + 0x30], esi
lea edx, [esp + 0x1c]
push dword [esp + 0x2c]
cmova edx, dword [esp + 0x20]
call fcn.004033a2
pop ecx
push eax
call fcn.00402ad5
pop ecx
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetClipBox]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov eax, dword [esp + 0x30]
cmp eax, esi
jbe 0x4023f0
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
cmp eax, 0x1000
jb 0x4023e7
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040130c
mov eax, dword [esp + 0x1c]
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00407063
pop ecx
pop ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x10], ebx
jne 0x402425
mov ecx, dword [esp + 0x34]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407020
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], ebx
push 6
jmp 0x402420
push 1
call fcn.00403c48
call fcn.0040b950
int3
Function at 0x404cdb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x404cfc
jl 0x404cf3
test edi, edi
jne 0x404cfc
xor eax, eax
xor edx, edx
jmp 0x404dbd
cmp dword [ebx + 0x38], 0
je 0x404d11
push eax
push edi
push dword [ebp + 8]
call fcn.00404dc3
jmp 0x404dbd
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404d58
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404d58
cmp eax, edi
jb 0x404d32
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00407e70
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x404d5e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x404db2
mov ecx, ebx
call fcn.00404572
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x404d9d
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040d580
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x404db2
jmp 0x404d70
test edx, edx
je 0x404db2
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040d580
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x407c4f
Capabilities:
Parse pe header

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

Function at 0x412a48
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423064
push 0x42305c
push str.FlsAlloc
push 0x1e
call fcn.00412875
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412a7c
push dword [ebp + 8]
mov ecx, esi
call dword [0x420174]
call esi
jmp 0x412a82
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412ac6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423074
push 0x42306c
push str.FlsGetValue
push 0x20
call fcn.00412875
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412afd
push dword [ebp + 8]
mov ecx, esi
call dword [0x420174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4147b8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041445a

Function at 0x4147c3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004145e9

Function at 0x414bbd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407dc0
mov eax, dword [0x42a040]
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.0041364f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x414bff
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x414d5b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041ead0
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 + 0x477320]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00415d8d
mov ecx, dword [esi*4 + 0x477320]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x414d54
cmp eax, dword [edi + ecx + 0x24]
jne 0x414d54
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414d54
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00415d8d
add esp, 0x14
test edx, edx
jl 0x414d54
jg 0x414cca
test eax, eax
jb 0x414d54
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x414d54
jl 0x414ce4
cmp dword [ebp - 0x1008], eax
ja 0x414d54
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x414d02
test ebx, ebx
je 0x414d3b
cmp ecx, edi
jae 0x414d3b
mov al, byte [ecx]
cmp al, 0xd
jne 0x414d1c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x414d28
cmp byte [ecx + 1], 0xa
jne 0x414d28
inc ecx
jmp 0x414d28
movzx eax, al
movsx eax, byte [eax + 0x42a2f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x414d02
cmp edx, ebx
jne 0x414d02
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x414d59
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407020
leave
ret
Function at 0x41522b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x477320]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41526b
cmp byte [ebx], 0xa
jne 0x41526b
or byte [eax + edi + 0x28], 4
jmp 0x415270
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41536e
mov al, byte [edx]
cmp al, 0x1a
je 0x415350
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41529f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4152c4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4152ce
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x415281
jmp 0x41536e
push 0
lea eax, [ebp - 0xc]
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 0x41534b
cmp dword [ebp - 0xc], 0
je 0x41534b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x477320]
test byte [eax + edi + 0x28], 0x48
je 0x415325
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x415310
mov byte [esi], dl
jmp 0x415321
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x477320]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41536e
cmp byte [ebp - 1], 0xa
jne 0x415334
cmp esi, ebx
jne 0x415334
mov byte [esi], 0xa
jmp 0x41536d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415dab
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41536e
mov byte [esi], 0xd
jmp 0x41536d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x477320]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41536a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41536e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret