joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7c633757
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7a4]
sub esp, 0x824
mov eax, dword [0x7c6451a0]
xor eax, ebp
mov dword [ebp + 0x7a0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x7ac]
mov esi, ecx
call dword [str.cN]
xor ebx, ebx
push ebx
push 1
push 3
push ebx
push ebx
push 0x80000000
push edi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x6c], eax
jne 0x7c6337d4
call fcn.7c631837
mov edi, eax
lea ecx, [ebp - 0x78]
call fcn.7c631958
mov ecx, dword [ebp + 0x7a0]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7c63c62c
add ebp, 0x7a4
leave
ret 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea esi, [edi + 1]
push esi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
call fcn.7c632978
cmp dword [ebp - 0x68], ebx
jne 0x7c6337fc
mov edi, 0x8007000e
jmp 0x7c6338a9
push ebx
lea eax, [ebp - 0x74]
push eax
push edi
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x7c633821
call fcn.7c631837
mov edi, eax
cmp edi, ebx
jl 0x7c6338a9
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x68]
mov byte [eax + ecx], bl
push esi
lea ecx, [ebp + 0x39c]
mov dword [ebp + 0x39c], ebx
call fcn.7c63295c
mov eax, dword [ebp + 0x39c]
cmp eax, ebx
jne 0x7c633855
lea eax, [ebp + 0x3a0]
mov edi, 0x8007000e
test eax, eax
jmp 0x7c63389c
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x70], eax
call dword [str.cN]
push esi
push dword [ebp - 0x70]
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x7c63387a
call fcn.7c631837
jmp 0x7c63388e
push dword [ebp + 0x7b0]
lea ecx, [ebp - 0x80]
push dword [ebp + 0x39c]
call fcn.7c633330
mov edi, eax
lea eax, [ebp + 0x3a0]
cmp dword [ebp + 0x39c], eax
je 0x7c6338a9
lea ecx, [ebp + 0x39c]
call fcn.7c63255b
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x7c6337b0
lea ecx, [ebp - 0x68]
call fcn.7c63255b
jmp 0x7c6337b0
Function at 0x7c63ac29
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call sym.ATL80.DLL_AtlAxWinInit
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push dword [esp + 0x24]
xor ebp, ebp
push esi
mov dword [esp + 0x1c], ebp
call edi
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x7c63acf9
push ebx
push pe_nt_image_headers32
push dword [esp + 0x28]
push esi
call edi
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
je 0x7c63ac7f
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 0x7c63acdd
push eax
call ebx
mov edi, eax
test edi, edi
je 0x7c63acdd
push ebp
push edi
call fcn.7c6344e1
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_CreateDialogIndirectParamW]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x7c63acc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x7c63ace7
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x7c63ace7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop ebx
je 0x7c63acf9
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x7c63ad04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call sym.ATL80.DLL_AtlAxWinInit
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push dword [esp + 0x24]
xor ebp, ebp
push esi
mov dword [esp + 0x1c], ebp
call edi
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x7c63add4
push ebx
push pe_nt_image_headers32
push dword [esp + 0x28]
push esi
call edi
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
je 0x7c63ad5a
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 0x7c63adb8
push eax
call ebx
mov edi, eax
test edi, edi
je 0x7c63adb8
push ebp
push edi
call fcn.7c6344e1
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 0x7c63ada4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x7c63adc2
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x7c63adc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop ebx
je 0x7c63add4
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x7c63be0c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x7c6454cc], 0
push esi
jne 0x7c63bd7f
call fcn.7c63bcaa
test eax, eax
je 0x7c63bdc2
mov eax, dword [0x7c6454cc]
cmp eax, 1
jne 0x7c63bda0
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x7c63bdc2
pop esi
ret
push eax
call dword [0x7c6454d4]
test eax, eax
jne 0x7c63be0a
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x7c63bdc6
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x7c6454cc]
call dword [0x7c6454d4]
mov edi, eax
test edi, edi
je 0x7c63bded
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x7c63be09
lea edi, [esi + 0xff0]
push esi
push dword [0x7c6454cc]
call dword [0x7c6454d0]
add esi, 0x10
cmp esi, edi
jb 0x7c63bdf3
mov eax, esi
pop edi
pop esi
ret
jmp 0x7c63bd6c

Function at 0x7c63c62c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x7c6451a0]
jne 0x7c63c636
repz ret
jmp fcn.7c63eac5
Function at 0x40af50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4364fd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44b0c0]
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 dword [ebp - 4], 0
lea ecx, [ebp + 8]
mov edi, dword [ebp + 0x1c]
lea esi, [ebp + 8]
mov edx, dword [ebp + 8]
cmp edi, 0xf
mov eax, dword [ebp + 0x18]
cmova ecx, edx
cmova esi, edx
add eax, ecx
mov dword [ebp - 0x14], eax
cmp esi, eax
je 0x40b030
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax]
cmp byte [esi], 0x5c
jne 0x40b025
lea eax, [ebp + 8]
mov byte [esi], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00415e10
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
push 0
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40afe9
call edi
cmp eax, 0xb7
je 0x40afe9
xor bl, bl
jmp 0x40afeb
mov bl, 1
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x40b01b
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b011
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b086
push ecx
push edx
call fcn.004173b0
add esp, 8
test bl, bl
je 0x40b054
mov eax, dword [ebp - 0x14]
mov byte [esi], 0x5c
inc esi
cmp esi, eax
jne 0x40afb0
mov edi, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
mov bl, 1
cmp edi, 0xf
jbe 0x40b068
inc edi
mov eax, edx
cmp edi, 0x1000
jb 0x40b05e
mov edx, dword [eax - 4]
add edi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b086
jmp 0x40b05e
mov edi, dword [ebp + 0x1c]
xor bl, bl
mov edx, dword [ebp + 8]
jmp 0x40b032
push edi
push edx
call fcn.004173b0
add esp, 8
mov al, bl
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.004173a2
mov esp, ebp
pop ebp
ret
call fcn.0041c28f
int3

Function at 0x40b180
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43653d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x44b0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x40b207
mov eax, dword [esi + 0xc]
push 8
mov byte [esi + 8], 1
mov dword [esi + 0x10], eax
call fcn.004173be
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], esi
mov dword [eax + 4], 0x40b140
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x4148d0
push 0
push 0
call fcn.0041fb57
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x40b223
cmp dword [esi + 4], 0
jne 0x40b231
mov eax, dword [ebp - 0x18]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004173a2
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [ebp - 0x18], 0
call fcn.004163b4
call fcn.0041c573
int3
Function at 0x40d120
Capabilities:
Hide graphical window
Log keystrokes via application hook

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438f0d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x44b0c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0
push str.ConsoleWindowClass
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x38]
call fcn.00414d20
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x7ffffff2
jg 0x40d1a9
mov eax, dword [ebp - 0x38]
jl 0x40d199
cmp eax, 0x7b8a7ff
jae 0x40d1a9
add eax, 0xf8475800
mov dword [ebp - 0x38], eax
adc ecx, 0xd
mov dword [ebp - 0x34], ecx
jmp 0x40d1b7
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x34], 0x7fffffff
lea ecx, [ebp - 0x38]
call fcn.004137b0
sub esp, 0x18
mov ecx, esp
call fcn.0040add0
call fcn.0040af50
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
add esp, 0x18
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax]
push 0x1d
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
push str.Hook_started..._Timer_started
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
call fcn.00416020
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040a3d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x40d24e
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d244
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d342
push ecx
push edx
call fcn.004173b0
add esp, 8
push ecx
mov ecx, 0x44bbd0
call fcn.0040b180
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x40ce80
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
push 0
push 0
mov dword [0x44d2a8], eax
lea eax, [ebp - 0x30]
push 0
push eax
call esi
test eax, eax
je 0x40d2a6
lea eax, [ebp - 0x30]
push eax
call edi
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
jne 0x40d286
cmp dword [0x44bbd4], 0
mov byte [0x44bbd8], 0
je 0x40d355
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [0x44bbd4]
cmp ecx, eax
je 0x40d34e
push 0
push ecx
push dword [0x44bbd0]
call fcn.00416418
add esp, 0xc
test eax, eax
jne 0x40d347
xorps xmm0, xmm0
lea ecx, [ebp - 0x40]
movlpd qword [0x44bbd0], xmm0
call fcn.00414d20
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x7ffffff2
jg 0x40d327
mov eax, dword [ebp - 0x40]
jl 0x40d30c
cmp eax, 0x7b8a7ff
jae 0x40d327
add eax, 0xf8475800
mov dword [ebp - 0x38], eax
adc ecx, 0xd
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x38]
call fcn.004137b0
jmp 0x40d1e0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x34], 0x7fffffff
call fcn.004137b0
jmp 0x40d1e0
call fcn.0041c28f
push 2
call fcn.004163b4
push 5
call fcn.004163b4
push 1
call fcn.004163b4
int3
Function at 0x40dcb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x40dce2
jl 0x40dcd5
test ecx, ecx
jne 0x40dce2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40ddbf
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40dd12
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x40dd14
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x40dd68
jg 0x40dd25
test esi, esi
je 0x40dd68
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x40dd39
jl 0x40dd33
cmp ecx, esi
jae 0x40dd39
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.00418b50
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x40dd8c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x40dda8
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x40dcf7
jl 0x40dda8
test ecx, ecx
jne 0x40dcf7
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40de03
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40de03
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00418b50
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x40de6c
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40de29
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x40de57
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0041d3db
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40de6c
cmp edi, eax
ja 0x40de35
test edi, edi
je 0x40de6c
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0041d3db
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40fd90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439100
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x44b0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004173be
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041674d
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0040fd30
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417411
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x417446
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x417443
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x41744f
add edx, 0x28
cmp edx, esi
jne 0x417431
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x41744c

Function at 0x418243
Capabilities:
Parse pe header

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

Function at 0x424a5c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43daf4
push 0x43daec
push str.FlsAlloc
push 0x1f
call fcn.00424887
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424a90
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a1a0]
call esi
jmp 0x424a96
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x424ada
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43db04
push 0x43dafc
push str.FlsGetValue
push 0x21
call fcn.00424887
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424b11
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a1a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x424b19
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43db0c
push 0x43db04
push str.FlsSetValue
push 0x22
call fcn.00424887
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424b53
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43a1a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x427754
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004184a0
mov eax, dword [0x44b0c0]
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.004264f1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x427796
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4278f2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00435bb0
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 + 0x44d028]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004272dd
mov ecx, dword [esi*4 + 0x44d028]
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 0x4278eb
cmp eax, dword [ecx + edi + 0x24]
jne 0x4278eb
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 0x4278eb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004272dd
add esp, 0x14
test edx, edx
jl 0x4278eb
jg 0x427861
test eax, eax
jb 0x4278eb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4278eb
jl 0x42787b
cmp dword [ebp - 0x1008], eax
ja 0x4278eb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x427899
test ebx, ebx
je 0x4278d2
cmp ecx, edi
jae 0x4278d2
mov al, byte [ecx]
cmp al, 0xd
jne 0x4278b3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4278bf
cmp byte [ecx + 1], 0xa
jne 0x4278bf
inc ecx
jmp 0x4278bf
movzx eax, al
movsx eax, byte [eax + 0x44b540]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x427899
cmp edx, ebx
jne 0x427899
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4278f0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004173a2
leave
ret
Function at 0x427f02
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 + 0x44d028]
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 0x427f42
cmp byte [ebx], 0xa
jne 0x427f42
or byte [edi + eax + 0x28], 4
jmp 0x427f47
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 0x428046
mov dl, byte [eax]
cmp dl, 0x1a
je 0x428029
inc eax
cmp dl, 0xd
je 0x427f73
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x427f99
cmp eax, ecx
jae 0x427fa7
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 0x427f5b
jmp 0x428046
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 0x428024
cmp dword [ebp - 0x10], 0
je 0x428024
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x44d028]
test byte [eax + edi + 0x28], 0x48
je 0x427ffe
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x427fe9
mov byte [esi], dl
jmp 0x427ffa
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x44d028]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x428046
cmp byte [ebp - 1], 0xa
jne 0x42800d
cmp esi, ebx
jne 0x42800d
mov byte [esi], 0xa
jmp 0x428045
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004272fb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x428046
mov byte [esi], 0xd
jmp 0x428045
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x44d028]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x428043
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x428046
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret