joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4df794
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4df8b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x52eed8], 0x821
mov dl, 1
mov eax, dword [0x4220f8]
call fcn.004286fc
mov ebx, eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
push esi
mov eax, ebx
call fcn.00428cc4
xor ecx, ecx
xor edx, edx
call fcn.00423b28
lea edx, [ebp - 8]
mov eax, 0x105
call fcn.004a802c
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, dword [0x537288]
call fcn.00404860
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, ebx
call fcn.00403750
lea edx, [ebp - 0xc]
mov eax, 0x106
call fcn.004a802c
mov eax, dword [ebp - 0xc]
push eax
lea edx, [ebp - 0x10]
mov eax, 0xb0
call fcn.004a802c
mov eax, dword [ebp - 0x10]
mov ecx, 0x4df8cc
pop edx
call fcn.0046ae00
lea edx, [ebp - 0x14]
mov eax, 0x107
call fcn.004a802c
mov eax, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
mov eax, 0xb0
call fcn.004a802c
mov eax, dword [ebp - 0x18]
mov ecx, 0x4df8d8
pop edx
call fcn.0046ae00
push 3
lea eax, [ebp - 4]
call fcn.00404a64
push eax
push 0
push 0x14
call sub.user32.dll_SystemParametersInfoA
xor eax, eax
mov dword [0x52eed8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df8be
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00404580
ret
Function at 0x4e298c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4e2994
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049fc
xor eax, eax
push ebp
push 0x4e2b73
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00408d5c
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x18]
call fcn.00404e18
mov eax, dword [0x5372e0]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4e2b33
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [0x5372e0]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 1]
and eax, 0xff
sub eax, 0x30
mov dword [0x537588], eax
cmp dword [0x537588], 4
je 0x4e2b27
lea eax, [ebp - 0xc]
mov ecx, 3
mov edx, 1
call fcn.00404aac
mov eax, dword [ebp - 0xc]
mov edx, 0x4e2b8c
call fcn.00404958
jne 0x4e2a46
mov byte [0x52f604], 1
jmp 0x4e2a4d
mov byte [0x52f604], 0
cmp byte [0x52f604], 0
je 0x4e2ae8
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.004045f4
mov esi, 1
jmp 0x4e2a96
mov eax, dword [ebp - 0x14]
mov al, byte [eax + esi - 1]
cmp al, 0x61
jb 0x4e2a81
mov edx, dword [ebp - 0x14]
cmp al, 0x7a
ja 0x4e2a81
inc esi
jmp 0x4e2a96
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x400
mov edx, esi
mov eax, dword [ebp - 0x14]
call fcn.00404a6c
jmp 0x4e2aa2
mov eax, dword [ebp - 0x14]
call fcn.00404814
cmp esi, eax
jl 0x4e2a6c
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, 0x4e2ba0
call fcn.00404860
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x10]
call fcn.00405ac4
mov esi, eax
cmp dword [ebp - 0x10], 0
jne 0x4e2ae8
cmp esi, 0x3e8
jbe 0x4e2ae8
call sub.kernel32.dll_GetTickCount
cmp esi, eax
jae 0x4e2ae8
call sub.kernel32.dll_GetTickCount
sub eax, 0x30d40
cmp esi, eax
jbe 0x4e2ae8
mov bl, 1
jmp 0x4e2b33
cmp byte [0x52f604], 0
je 0x4e2b02
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
call fcn.00404958
jne 0x4e2b02
mov bl, 1
jmp 0x4e2b33
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.00404e18
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.0040514c
test eax, eax
jle 0x4e2b27
mov byte [0x52f604], 0
mov bl, 1
jmp 0x4e2b33
inc dword [ebp - 8]
dec dword [ebp - 0x24]
jne 0x4e29ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e2b7a
lea eax, [ebp - 0x28]
call fcn.0040455c
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404c90
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404580
lea eax, [ebp - 0xc]
call fcn.0040455c
lea eax, [ebp - 4]
call fcn.0040455c
ret
Function at 0x4e3094
Capabilities:
Enumerate gui resources
Get graphical window text
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004049fc
xor eax, eax
push ebp
push 0x4e3187
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4143a4]
call fcn.00403720
mov edi, eax
push edi
push 0x4e2c5c
call sub.user32.dll_EnumWindows
mov ebx, dword [edi + 8]
dec ebx
test ebx, ebx
jl 0x4e316a
inc ebx
xor esi, esi
push 0x7f
lea eax, [ebp - 0x8c]
push eax
mov edx, esi
mov eax, edi
call fcn.00416cc0
push eax
call sub.user32.dll_GetWindowTextA
test eax, eax
jle 0x4e3162
lea eax, [ebp - 4]
call fcn.00404a64
mov edx, eax
lea eax, [ebp - 0x8c]
call fcn.00409cb4
test eax, eax
jne 0x4e3162
lea eax, [ebp - 8]
push eax
mov edx, esi
mov eax, edi
call fcn.00416cc0
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
cmp edx, 0xffffffff
jne 0x4e3146
cmp eax, 0xffffffff
je 0x4e3162
cmp dword [ebp - 0xc], 0
je 0x4e3162
push 0x31
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
inc esi
dec ebx
jne 0x4e30e1
mov eax, edi
call fcn.00403750
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e318e
lea eax, [ebp - 4]
call fcn.0040455c
ret

Function at 0x4e3198
Capabilities:
Terminate process

Disassembly:
push ebx
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
mov eax, ebx
xor edx, edx
cmp edx, 0xffffffff
jne 0x4e31b1
cmp eax, 0xffffffff
je 0x4e31c5
test ebx, ebx
je 0x4e31c5
push 0x31
push ebx
call sub.kernel32.dll_TerminateProcess
push ebx
call sub.kernel32.dll_CloseHandle_1
pop ebx
ret
Function at 0x4eba80
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov ebp, edx
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov dl, 1
mov eax, dword [0x4143a4]
call fcn.00403720
mov esi, eax
push esi
push 0x4eba68
call sub.user32.dll_EnumWindows
mov edi, dword [esi + 8]
dec edi
test edi, edi
jl 0x4ebb00
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, esi
call fcn.00416cc0
cmp ebp, eax
je 0x4ebafc
push 0x50
lea eax, [esp + 0xc]
push eax
mov edx, ebx
mov eax, esi
call fcn.00416cc0
push eax
call sub.user32.dll_GetClassNameA
test eax, eax
jle 0x4ebafc
lea eax, [esp + 8]
mov edx, dword [esp]
call fcn.00409cb4
test eax, eax
jne 0x4ebafc
mov edx, ebx
mov eax, esi
call fcn.00416cc0
mov dword [esp + 4], eax
jmp 0x4ebb00
inc ebx
dec edi
jne 0x4ebab6
mov eax, esi
call fcn.00403750
mov eax, dword [esp + 4]
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4ebb7c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
xor edx, edx
mov dword [ebp - 0x88], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ebc01
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x21
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x83]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4ebbe8
lea eax, [ebp - 0x83]
call fcn.00409bb4
mov byte [ebp - 0x84], al
lea eax, [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.004047b8
mov eax, dword [ebp - 0x88]
mov edx, ebx
call fcn.00408d5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ebc08
lea eax, [ebp - 0x88]
call fcn.0040455c
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
jmp loc.00401219

Function at 0x401d45
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401d84
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401d84
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401d84
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401d84
cmp dword [ecx + 0x74], 0xe
jbe 0x401d84
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x10080ea3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x10080eb9
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x10080eca
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.10080f0b
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x10083277
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x100831c0
add ebx, 0
push ecx
call 0x100831d5
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6c15735e
sub ebx, dword [0x6c176b9d]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6c176b8d
call fcn.1007ec9f
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1007e1ad
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x10083333
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x10083333
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x100832ea
mov eax, 1
lock xchg dword [0x6c176b99], eax
push 0x3dd1fc71
call 0x10083277
push esi
add esp, 8
cmp eax, 0
jne 0x10083260
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x10083286
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1008329b
cmp ecx, edx
cmp eax, 0
je 0x100832c0
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x100832aa
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.100832d9
dec eax
loope 0x100832dc
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6c176b99], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x10083310
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x10083325
jmp 0x10083330
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x1008321e
Function at 0x1008a398
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1008a66e
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c163811
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6c15a7d7
push 0xffffffffffffffff
call fcn.10081598
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1008a402
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1008a41a
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x1008a662
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1008a636
Function at 0x40602f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x4060af
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x4060ae
push ebx
mov ebx, 0x4617c8
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.00402703
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.00402703
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x42a5b8
mov byte [edi + esi], al
call fcn.0041122e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x406051
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00405b46
pop edi
pop ebp
ret 0x14

Function at 0x409fe2
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 0x40a003
jl 0x409ffa
test edi, edi
jne 0x40a003
xor eax, eax
xor edx, edx
jmp 0x40a0c4
cmp dword [ebx + 0x38], 0
je 0x40a018
push eax
push edi
push dword [ebp + 8]
call fcn.0040a0ca
jmp 0x40a0c4
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40a05f
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40a05f
cmp eax, edi
jb 0x40a039
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040c900
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 0x40a065
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40a0b9
mov ecx, ebx
call fcn.0040987c
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40a0a4
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00414fb3
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 0x40a0b9
jmp 0x40a077
test edx, edx
je 0x40a0b9
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00414fb3
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 0x40c45f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c49e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40c49e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c49e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40c49e
cmp dword [ecx + 0x74], 0xe
jbe 0x40c49e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41ba7d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e910
push 0x42e908
push str.FlsAlloc
push 0x1e
call fcn.0041b8ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bab1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a17c]
call esi
jmp 0x41bab7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41bafb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e920
push 0x42e918
push str.FlsGetValue
push 0x20
call fcn.0041b8ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bb32
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a17c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41f341
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041efe3

Function at 0x41f34c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f172

Function at 0x41f746
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c8b0
mov eax, dword [0x45fa00]
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.0041cf56
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41f788
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41f8e4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428ed0
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 + 0x462230]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004204e5
mov ecx, dword [esi*4 + 0x462230]
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 0x41f8dd
cmp eax, dword [edi + ecx + 0x24]
jne 0x41f8dd
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 0x41f8dd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004204e5
add esp, 0x14
test edx, edx
jl 0x41f8dd
jg 0x41f853
test eax, eax
jb 0x41f8dd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41f8dd
jl 0x41f86d
cmp dword [ebp - 0x1008], eax
ja 0x41f8dd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41f88b
test ebx, ebx
je 0x41f8c4
cmp ecx, edi
jae 0x41f8c4
mov al, byte [ecx]
cmp al, 0xd
jne 0x41f8a5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41f8b1
cmp byte [ecx + 1], 0xa
jne 0x41f8b1
inc ecx
jmp 0x41f8b1
movzx eax, al
movsx eax, byte [eax + 0x45fcc8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41f88b
cmp edx, ebx
jne 0x41f88b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41f8e2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040bcc9
leave
ret
Function at 0x41f983
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 + 0x462230]
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 0x41f9c3
cmp byte [ebx], 0xa
jne 0x41f9c3
or byte [eax + edi + 0x28], 4
jmp 0x41f9c8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41fac6
mov al, byte [edx]
cmp al, 0x1a
je 0x41faa8
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41f9f7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41fa1c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41fa26
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 0x41f9d9
jmp 0x41fac6
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 0x41faa3
cmp dword [ebp - 0xc], 0
je 0x41faa3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x462230]
test byte [eax + edi + 0x28], 0x48
je 0x41fa7d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41fa68
mov byte [esi], dl
jmp 0x41fa79
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x462230]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41fac6
cmp byte [ebp - 1], 0xa
jne 0x41fa8c
cmp esi, ebx
jne 0x41fa8c
mov byte [esi], 0xa
jmp 0x41fac5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420503
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41fac6
mov byte [esi], 0xd
jmp 0x41fac5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x462230]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41fac2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41fac6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret