joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4106c0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x410761
push ebx
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x18]
mov ebx, eax
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410700
push ebp
push 0
sub eax, edx
add eax, ebx
push eax
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockFile]
mov eax, edi
lea ebp, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410720
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, ebp
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
lea edx, [eax + 1]
pop ebp
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410740
push 0
sub eax, edx
add eax, ebx
push eax
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
pop ecx
ret

Function at 0x410900
Capabilities:
Create directory
Get file attributes

Disassembly:
sub esp, 0x1c
push edi
mov edi, dword [esp + 0x24]
push edi
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
cmp dword [esp + 0x1c], 0x10
mov eax, dword [esp + 8]
jae 0x410922
lea eax, [esp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 8]
mov esi, eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, 0x10
pop esi
je 0x41094f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
pop edi
add esp, 0x1c
ret
mov al, 1
pop edi
add esp, 0x1c
ret
Function at 0x411420
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x416138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [esp + 0x4c]
mov ecx, dword [esi]
lea eax, [esp + 0x1c]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0xc]
call fcn.0041484a
mov eax, dword [esp + 0x44]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x3c], ebx
jne 0x411469
xor eax, eax
jmp 0x41146c
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x10]
call sub.MFC71.DLL_CDC::Attach
test eax, eax
je 0x4114a4
mov eax, dword [esi]
cmp eax, ebx
je 0x41149b
mov edx, dword [esp + 0x10]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp eax, ebx
mov dword [esp + 8], eax
jne 0x4114c8
lea ecx, [esp + 0xc]
call sub.MFC71.DLL_CDC::DeleteDC
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC71.DLL_CDC::CDC
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push ebp
push edi
mov edi, dword [esp + 0x50]
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
xor esi, esi
test ecx, ecx
jle 0x411545
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov ebp, dword [sym.imp.GDI32.dll_BitBlt]
sub eax, ecx
mov ecx, dword [esp + 0x28]
jmp 0x4114f0
test eax, eax
jle 0x411531
jmp 0x411500
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 4]
push ebx
push esi
push edx
call ebp
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + 8]
mov edx, dword [edi]
add esi, ecx
sub eax, edx
cmp esi, eax
jl 0x411500
add ebx, dword [esp + 0x2c]
mov edx, dword [edi + 0xc]
sub edx, dword [edi + 4]
xor esi, esi
cmp ebx, edx
jl 0x4114f0
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x14]
call sub.MFC71.DLL_CDC::DeleteDC
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC71.DLL_CDC::CDC
mov ecx, dword [esp + 0x3c]
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x411ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x416158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], 0x419024
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 4]
call sub.MFC71.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x20]
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [eax + 4]
lea edx, [esp + 0xc]
push edx
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], 0x417a4c
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4125a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push 0x300000
mov ebx, ecx
call sub.MFC71.DLL_operator_new
mov esi, eax
add esp, 4
test esi, esi
jne 0x4125be
pop esi
xor al, al
pop ebx
ret 4
mov eax, dword [esp + 0xc]
push edi
push 0x418f20
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4125e9
push esi
call sub.MFC71.DLL_operator_delete
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
ret 4
push edi
push 0x300000
push 1
push esi
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
push 0
push 0
push eax
push esi
mov ecx, ebx
call fcn.004121c0
push esi
mov bl, al
call sub.MFC71.DLL_operator_delete
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
ret 4

Function at 0x412cf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4161d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call sub.MFC71.DLL_CWnd::CWnd
xor ebx, ebx
mov dword [esi], 0x419228
mov dword [esp + 0x18], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x68], 0x417a60
lea ecx, [esi + 0x78]
mov byte [esp + 0x18], 1
call sub.MFC71.DLL_CToolTipCtrl::CToolTipCtrl
lea edi, [esi + 0xe8]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esi + 0xf4]
mov byte [esp + 0x18], 3
call fcn.0041484a
mov dword [esi + 0x108], ebx
mov dword [esi + 0x104], 0x417a60
lea ecx, [esi + 0x110]
mov byte [esp + 0x18], 5
call fcn.0041484a
mov dword [esi + 0x124], ebx
mov dword [esi + 0x120], 0x417a60
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0x28]
push edx
mov dword [esi + 0x64], ecx
push eax
mov ecx, esi
mov byte [esp + 0x20], 7
mov dword [esi + 0x60], 1
mov dword [esi + 0x58], 0xf
mov dword [esi + 0x98], ebx
mov dword [esi + 0x70], ebx
mov byte [esi + 0x74], bl
mov dword [esi + 0x128], ebx
call fcn.004127c0
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xf0], eax
mov dword [esi + 0x10c], ebx
mov byte [esi + 0x54], bl
mov byte [esi + 0x12c], bl
pop edi
mov dword [esi + 0xec], edx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x414edf
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x419698
call fcn.004150e0
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x414f1f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414f1f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x414f37
cmp eax, 0x20b
je 0x414f24
mov dword [ebp - 0x1c], ebx
jmp 0x414f4b
cmp dword [ecx + 0x84], 0xe
jbe 0x414f1f
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x414f45
cmp dword [ecx + 0x74], 0xe
jbe 0x414f1f
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x41e5fc], 0xffffffff
or dword [0x41e600], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x41e5b4]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x41e5b0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41e5f8], eax
call fcn.004151de
call fcn.0041527e
cmp dword [0x41d2e0], ebx
jne 0x414fab
push fcn.0041527e
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0041526c
push 0x41d028
push 0x41d024
call sub.MSVCR71.dll__initterm
push 0x415222
call fcn.00414cbd
mov eax, dword [0x41e5ac]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x41e5a8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x414fff
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x41d020
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x41507d
cmp al, bl
je 0x415029
cmp dword [ebp - 0x20], ebx
jne 0x41507d
mov al, byte [esi]
cmp al, bl
je 0x415039
cmp al, 0x20
ja 0x415039
inc esi
mov dword [ebp - 0x24], esi
jmp 0x415029
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x415055
movzx eax, word [ebp - 0x54]
jmp 0x415058
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.004153f2
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x415075
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4150d2
cmp al, 0x22
jne 0x41508c
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x41509f
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x415017
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0041511b
ret
Function at 0x404c98
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 0x404d18
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x404d17
push ebx
mov ebx, 0x47dbe8
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.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x425548
mov byte [edi + esi], al
call fcn.0040dc9e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x404cba
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00404815
pop edi
pop ebp
ret 0x14

Function at 0x407cba
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 0x407cdb
jl 0x407cd2
test edi, edi
jne 0x407cdb
xor eax, eax
xor edx, edx
jmp 0x407d9c
cmp dword [ebx + 0x38], 0
je 0x407cf0
push eax
push edi
push dword [ebp + 8]
call fcn.00407da2
jmp 0x407d9c
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407d37
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407d37
cmp eax, edi
jb 0x407d11
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00409520
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 0x407d3d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407d91
mov ecx, ebx
call fcn.00407554
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407d7c
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00410ee3
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 0x407d91
jmp 0x407d4f
test edx, edx
je 0x407d91
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00410ee3
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 0x40907c
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429640
push 0x429638
push str.FlsAlloc
push 0x1e
call fcn.0041713a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417301
push dword [ebp + 8]
mov ecx, esi
call dword [0x42517c]
call esi
jmp 0x417307
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41734b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429650
push 0x429648
push str.FlsGetValue
push 0x20
call fcn.0041713a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417382
push dword [ebp + 8]
mov ecx, esi
call dword [0x42517c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41a778
Capabilities:
Read file on windows

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

Function at 0x41ab72
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004094d0
mov eax, dword [0x47c000]
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.00418735
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41abb4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ad10
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424300
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 + 0x47e590]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b911
mov ecx, dword [esi*4 + 0x47e590]
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 0x41ad09
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ad09
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 0x41ad09
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b911
add esp, 0x14
test edx, edx
jl 0x41ad09
jg 0x41ac7f
test eax, eax
jb 0x41ad09
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ad09
jl 0x41ac99
cmp dword [ebp - 0x1008], eax
ja 0x41ad09
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41acb7
test ebx, ebx
je 0x41acf0
cmp ecx, edi
jae 0x41acf0
mov al, byte [ecx]
cmp al, 0xd
jne 0x41acd1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41acdd
cmp byte [ecx + 1], 0xa
jne 0x41acdd
inc ecx
jmp 0x41acdd
movzx eax, al
movsx eax, byte [eax + 0x47c2c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41acb7
cmp edx, ebx
jne 0x41acb7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ad0e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004088c2
leave
ret
Function at 0x41adaf
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 + 0x47e590]
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 0x41adef
cmp byte [ebx], 0xa
jne 0x41adef
or byte [eax + edi + 0x28], 4
jmp 0x41adf4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41aef2
mov al, byte [edx]
cmp al, 0x1a
je 0x41aed4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ae23
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ae48
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ae52
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 0x41ae05
jmp 0x41aef2
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 0x41aecf
cmp dword [ebp - 0xc], 0
je 0x41aecf
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47e590]
test byte [eax + edi + 0x28], 0x48
je 0x41aea9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ae94
mov byte [esi], dl
jmp 0x41aea5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47e590]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41aef2
cmp byte [ebp - 1], 0xa
jne 0x41aeb8
cmp esi, ebx
jne 0x41aeb8
mov byte [esi], 0xa
jmp 0x41aef1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b92f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41aef2
mov byte [esi], 0xd
jmp 0x41aef1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47e590]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41aeee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41aef2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41aefb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47e590]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41af3e
cmp word [esi], dx
jne 0x41af3e
or byte [edi + eax + 0x28], 4
jmp 0x41af43
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41b096
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41b076
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41af85
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41afbb
cmp eax, edx
jae 0x41afc7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41af5d
jmp 0x41b096
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b072
cmp dword [ebp - 0x14], 0
je 0x41b072
mov eax, dword [ebx*4 + 0x47e590]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b04a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b013
mov word [esi], cx
jmp 0x41b046
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47e590]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47e590]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47e590]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b096
pop ebx
cmp word [ebp - 4], bx
jne 0x41b05b
cmp esi, dword [ebp + 0xc]
jne 0x41b05b
mov word [esi], bx
jmp 0x41b093
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b92f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b096
push 0xd
jmp 0x41b08f
mov ecx, dword [ebx*4 + 0x47e590]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b08d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b096
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418a80
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x418aa9
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x418ab8
mov eax, 1
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219