joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100296d0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov al, byte [ebp]
xor ebx, ebx
test al, al
je 0x100298cf
mov cl, byte [ebx + ebp + 1]
inc ebx
test cl, cl
jne 0x100296e6
test ebx, ebx
jbe 0x100298cf
mov edx, dword [esp + 0x14]
xor ecx, ecx
push esi
add edx, 8
push edi
mov dword [esp + 0x20], edx
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], 6
xor edx, edx
mov eax, ecx
div ebx
inc ecx
mov eax, ecx
and edi, 0xffffff
inc ecx
movsx esi, byte [edx + ebp]
xor edx, edx
div ebx
shl esi, 0x18
or esi, edi
movsx eax, byte [edx + ebp]
shl eax, 0x10
xor eax, esi
and eax, 0xff0000
xor esi, eax
xor edx, edx
mov eax, ecx
div ebx
inc ecx
mov eax, ecx
inc ecx
movsx edx, byte [edx + ebp]
shl edx, 8
xor edx, esi
and edx, 0xff00
xor esi, edx
xor edx, edx
div ebx
movsx eax, byte [edx + ebp]
xor eax, esi
and eax, 0xff
xor esi, eax
mov eax, dword [esp + 0x20]
xor dword [eax - 8], esi
xor edx, edx
mov eax, ecx
div ebx
inc ecx
mov eax, ecx
and esi, 0xffffff
inc ecx
movsx edi, byte [edx + ebp]
xor edx, edx
div ebx
shl edi, 0x18
or edi, esi
mov eax, ecx
inc ecx
mov esi, dword [esp + 0x20]
movsx edx, byte [edx + ebp]
shl edx, 0x10
xor edx, edi
and edx, 0xff0000
xor edi, edx
xor edx, edx
div ebx
movsx eax, byte [edx + ebp]
shl eax, 8
xor eax, edi
and eax, 0xff00
xor edi, eax
xor edx, edx
mov eax, ecx
div ebx
inc ecx
mov eax, ecx
movsx edx, byte [edx + ebp]
xor edx, edi
and edx, 0xff
xor edi, edx
xor edx, edx
div ebx
xor dword [esi - 4], edi
and edi, 0xffffff
movsx eax, byte [edx + ebp]
shl eax, 0x18
or edi, eax
inc ecx
mov eax, ecx
xor edx, edx
div ebx
inc ecx
mov eax, ecx
inc ecx
add esi, 0xc
mov dword [esp + 0x20], esi
movsx edx, byte [edx + ebp]
shl edx, 0x10
xor edx, edi
and edx, 0xff0000
xor edi, edx
xor edx, edx
div ebx
movsx eax, byte [edx + ebp]
shl eax, 8
xor eax, edi
and eax, 0xff00
xor edi, eax
xor edx, edx
mov eax, ecx
div ebx
inc ecx
movsx edx, byte [edx + ebp]
xor edx, edi
and edx, 0xff
xor edi, edx
xor dword [esi - 0xc], edi
sub dword [esp + 0x10], 1
jne 0x10029712
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
lea esp, [esp]
mov ebp, dword [esp + 0x1c]
lea esi, [esp + 0x10]
lea edi, [esp + 0x20]
mov eax, ebp
call fcn.10028e70
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [ebp + ebx*4], eax
mov dword [ebp + ebx*4 + 4], ecx
add ebx, 2
cmp ebx, 0x12
jb 0x10029850
mov ebx, ebp
add ebx, 0x4c
mov dword [esp + 0x14], 4
jmp 0x10029890
mov ebp, 0x80
jmp 0x100298a0
mov eax, dword [esp + 0x1c]
lea esi, [esp + 0x10]
lea edi, [esp + 0x20]
call fcn.10028e70
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov dword [ebx - 4], edx
mov dword [ebx], eax
add ebx, 8
sub ebp, 1
jne 0x100298a0
sub dword [esp + 0x14], 1
jne 0x10029890
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x10029900
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10029950
mov ecx, 0x1005d6a0
mov eax, esi
sub ecx, esi
mov edx, 0x12
push edi
mov edi, dword [ecx + eax]
xor edi, 0x25
mov dword [eax], edi
add eax, 4
sub edx, 1
jne 0x10029918
lea ecx, [esi + 0x48]
mov eax, 0x1005d6e8
lea esi, [edx + 4]
mov edx, 0x100
mov edi, dword [eax]
xor edi, 0x25
mov dword [ecx], edi
add eax, 4
add ecx, 4
sub edx, 1
jne 0x10029938
sub esi, 1
jne 0x10029933
pop edi
pop esi
ret

Function at 0x10029d6b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100a7914]
jne 0x10029d75
repz ret
jmp fcn.1002ba31

Function at 0x1003b90f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1002f70f
and dword [ebp - 4], 0
cmp dword [0x100bda4c], 0
mov ebx, eax
jne 0x1003b9c0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1003ba71
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10058d88
push edi
call esi
test eax, eax
je 0x1003ba71
push eax
call fcn.1002f69d
mov dword [esp], 0x10058d78
push edi
mov dword [0x100bda4c], eax
call esi
push eax
call fcn.1002f69d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100bda50], eax
call esi
push eax
call fcn.1002f69d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100bda54], eax
call esi
push eax
call fcn.1002f69d
pop ecx
mov dword [0x100bda5c], eax
test eax, eax
je 0x1003b9c0
push 0x10058d30
push edi
call esi
push eax
call fcn.1002f69d
pop ecx
mov dword [0x100bda58], eax
mov eax, dword [0x100bda58]
cmp eax, ebx
je 0x1003ba18
cmp dword [0x100bda5c], ebx
je 0x1003ba18
push eax
call fcn.1002f718
push dword [0x100bda5c]
mov esi, eax
call fcn.1002f718
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1003ba18
test edi, edi
je 0x1003ba18
call esi
test eax, eax
je 0x1003ba0f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1003ba0f
test byte [ebp - 0xc], 1
jne 0x1003ba18
or dword [ebp + 0x10], 0x200000
jmp 0x1003ba51
mov eax, dword [0x100bda50]
cmp eax, ebx
je 0x1003ba51
push eax
call fcn.1002f718
pop ecx
test eax, eax
je 0x1003ba51
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1003ba51
mov eax, dword [0x100bda54]
cmp eax, ebx
je 0x1003ba51
push eax
call fcn.1002f718
pop ecx
test eax, eax
je 0x1003ba51
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100bda4c]
call fcn.1002f718
pop ecx
test eax, eax
je 0x1003ba71
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1003ba73
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003dd01
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100a7914]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003ddd6
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003ddc5
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x1003ddaf
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x1003ddc5
push eax
push edi
push dword [ebp - 0x110]
call fcn.1003dc9e
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x1003ddd8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10029d6b
leave
ret 4
Function at 0x1003e260
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0xffffffff
je 0x1003e274
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
je 0x1003e28c
cmp dword [ebp + 0xc], 0xffffffff
je 0x1003e28c
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x1003e29c
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1003e2c5
cmp dword [ebp - 4], 0x103
jne 0x1003e2c5
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4019ae
Capabilities:
Access the windows event log
Clear file content
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x400
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp edi, 0x58ced85
jg 0x4019db
inc edi
cmp edi, 0x1f6502b1
jl 0x4019ba
cmp dword [0x285bac4], 0x400
jne 0x401a38
push str.sadahoziyofejonoh_niforapo_pihekezavokigubodatojup_rafepigojamulexiwodugaxexude_jam
push str.nelugidoneyari
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeKeepStringHandle]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
push 0x46ab10
push esi
call dword [sym.imp.ADVAPI32.dll_BackupEventLogW]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogW]
push esi
push esi
call fcn.00401fbd
push esi
push esi
call fcn.00401fbd
push esi
call fcn.00402127
push esi
call fcn.00402136
add esp, 0x18
xor edi, edi
cmp edi, 0xd0fe
jge 0x401a49
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
cmp edi, 0xd2ce6e
jg 0x401a70
inc edi
cmp edi, 0x26bcf
jl 0x401a3a
mov eax, dword [0x46dc14]
mov dword [0x285bac4], eax
call fcn.00401728
mov edi, 0x3078f
cmp dword [0x285bac4], 0x51f
jne 0x401a9c
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec edi
jne 0x401a84
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x404bbe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46d930]
jne 0x404bc8
repz ret
jmp fcn.004061fc
Function at 0x405afb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46d930]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402e15
and dword [ebp - 0x14], 0
cmp dword [0x478790], 0
mov dword [ebp - 0x18], eax
jne 0x405bae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405c56
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405c56
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x478790], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x478794], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x478798], eax
call edi
push eax
call esi
mov dword [0x4787a0], eax
test eax, eax
je 0x405bae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47879c], eax
mov eax, dword [0x47879c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405c07
cmp dword [0x4787a0], ecx
je 0x405c07
push eax
call esi
push dword [0x4787a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405c07
test ebx, ebx
je 0x405c07
call edi
test eax, eax
je 0x405bfe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405bfe
test byte [ebp - 8], 1
jne 0x405c07
or dword [ebp + 0x10], 0x200000
jmp 0x405c3a
mov eax, dword [0x478794]
cmp eax, dword [ebp - 0x18]
je 0x405c3a
push eax
call esi
test eax, eax
je 0x405c3a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405c3a
mov eax, dword [0x478798]
cmp eax, dword [ebp - 0x18]
je 0x405c3a
push eax
call esi
test eax, eax
je 0x405c3a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x478790]
call esi
test eax, eax
je 0x405c56
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405c58
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404bbe
leave
ret
Function at 0x402d20
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x404e18
call fcn.004029e0
push 1
call fcn.00402efb
pop ecx
test al, al
je 0x402d08
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00402ec9
mov byte [ebp - 0x24], al
mov eax, dword [0x4063f4]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x402d08
test eax, eax
jne 0x402c2c
mov dword [0x4063f4], ecx
push 0x404174
push 0x404168
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x402c0f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402cf8
push 0x404164
push 0x40415c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x4063f4], 2
jmp 0x402c31
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040304f
pop ecx
call fcn.004031dc
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x402c62
push esi
call fcn.00402fbb
pop ecx
test al, al
je 0x402c62
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x404158]
call esi
call fcn.004031e2
mov esi, eax
cmp dword [esi], edi
je 0x402c80
push esi
call fcn.00402fbb
pop ecx
test al, al
je 0x402c80
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00403302
movzx esi, ax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_winmain_command_line
push esi
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00403338
test al, al
je 0x402d0f
test bl, bl
jne 0x402cae
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040306c
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x402cf8
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.004031e8
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.00536000
jmp 0x402ba2
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
push ebx
pop eax
and eax, 0x1f
push ebx
pop edx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
sub eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
push eax
pop edi
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
mov esi, eax
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
or eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408e84
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x69746a51
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x38a25f1b
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40685a
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 0x40687b
jl 0x406872
test edi, edi
jne 0x40687b
xor eax, eax
xor edx, edx
jmp 0x40693c
cmp dword [ebx + 0x38], 0
je 0x406890
push eax
push edi
push dword [ebp + 8]
call fcn.00406942
jmp 0x40693c
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4068d7
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4068d7
cmp eax, edi
jb 0x4068b1
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408470
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 0x4068dd
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x406931
mov ecx, ebx
call fcn.004060f1
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40691c
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00410a96
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 0x406931
jmp 0x4068ef
test edx, edx
je 0x406931
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00410a96
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 0x407e13
Capabilities:
Parse pe header

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

Function at 0x4160ba
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a534
push 0x42a52c
push str.FlsAlloc
push 0x1e
call fcn.00415ee7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4160ee
push dword [ebp + 8]
mov ecx, esi
call dword [0x426168]
call esi
jmp 0x4160f4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x416138
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a544
push 0x42a53c
push str.FlsGetValue
push 0x20
call fcn.00415ee7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41616f
push dword [ebp + 8]
mov ecx, esi
call dword [0x426168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x419901
Capabilities:
Read file on windows

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

Function at 0x419cfb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407f80
mov eax, dword [0x47c500]
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.0041758b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419d3d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419e99
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424000
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 + 0x47e1b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041acf2
mov ecx, dword [esi*4 + 0x47e1b8]
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 0x419e92
cmp eax, dword [edi + ecx + 0x24]
jne 0x419e92
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 0x419e92
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041acf2
add esp, 0x14
test edx, edx
jl 0x419e92
jg 0x419e08
test eax, eax
jb 0x419e92
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x419e92
jl 0x419e22
cmp dword [ebp - 0x1008], eax
ja 0x419e92
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x419e40
test ebx, ebx
je 0x419e79
cmp ecx, edi
jae 0x419e79
mov al, byte [ecx]
cmp al, 0xd
jne 0x419e5a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419e66
cmp byte [ecx + 1], 0xa
jne 0x419e66
inc ecx
jmp 0x419e66
movzx eax, al
movsx eax, byte [eax + 0x47c7d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x419e40
cmp edx, ebx
jne 0x419e40
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419e97
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040720a
leave
ret