joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4770c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c3628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.004774b0
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x6d6d8c
call fcn.00491281
mov ecx, dword [0x5b5770]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.004747e0
mov esi, 0x5b57c8
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x477167
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x47715e
cmp al, 0xff
je 0x47715e
dec al
mov byte [ecx], al
jmp 0x477167
push ecx
call fcn.004b1e1e
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004adbe0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x4771ad
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4771a4
cmp al, 0xff
je 0x4771a4
dec al
mov byte [ecx], al
jmp 0x4771ad
push ecx
call fcn.004b1e1e
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00491308
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x4a8200
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4c4cc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0049d282
mov eax, dword [0x680d58]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0049d1b4
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004a8d10
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4a82a7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4a829e
cmp al, 0xff
je 0x4a829e
dec al
mov byte [ecx], al
jmp 0x4a82a7
push ecx
call fcn.004b1e1e
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4a82d8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4a82cf
cmp al, 0xff
je 0x4a82cf
dec al
mov byte [ecx], al
jmp 0x4a82d8
push ecx
call fcn.004b1e1e
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4b4571
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b45a9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b255b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b2533
jmp 0x4b45b5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b5c68
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b5caa
call fcn.004bbc0b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b5caa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b5ca1
xor eax, eax
jmp 0x4b5cb2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b5cb8
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bc13b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4bc169
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bc187
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004bc0a1
jmp 0x4bc187
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bc187
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004bc0a1
test edi, edi
mov eax, edi
jne 0x4bc171
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404897
Capabilities:
Create thread

Disassembly:
mov eax, 0x408e5c
call fcn.00408710
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x14], ebx
call fcn.004040ba
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
je 0x4048bf
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [0x40e144]
push dword [0x40e140]
push 0x4c
call dword [sym.imp.WkWbl.dll_void____cdecl_operator_new_unsigned_int__void___unsigned_long_int_]
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x18], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x4048e9
call fcn.00402389
jmp 0x4048eb
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov dword [esi + 0x4c], eax
jne 0x404909
push dword [esi + 0x40]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x40], ebx
mov eax, 0x8007000e
jmp 0x40497e
mov ecx, eax
call fcn.00403474
cmp eax, ebx
mov dword [ebp - 0x10], eax
jge 0x404935
push dword [esi + 0x40]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
mov dword [esi + 0x40], ebx
je 0x404930
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x4c], ebx
jmp 0x40497b
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx]
push edi
lea edx, [ebp - 0x1c]
push edx
call dword [eax + 0x3c]
mov edi, dword [eax]
jmp 0x404960
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [edi]
push 0x404099
push ebx
push ebx
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
add edi, 4
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
call dword [eax + 0x4c]
cmp edi, dword [eax]
jb 0x404946
add esi, 0x54
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4049f7
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call sub.WkWinUni.dll_Ordinal_17
cmp eax, edi
mov dword [esi + 0x30], eax
jne 0x404a12
xor eax, eax
jmp 0x404a26
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x4040ea
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ecx
ret
Function at 0x40625f
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x408f4c
call fcn.00408710
sub esp, 0x30
push esi
push edi
push dword [0x40e144]
mov esi, ecx
push dword [0x40e140]
push 0x4c
call dword [sym.imp.WkWbl.dll_void____cdecl_operator_new_unsigned_int__void___unsigned_long_int_]
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x14], ecx
xor edi, edi
cmp ecx, edi
mov dword [ebp - 4], edi
je 0x40629c
call fcn.00402389
jmp 0x40629e
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, edi
mov dword [esi + 0x4c], eax
jne 0x4062b3
mov eax, 0x8007000e
jmp 0x4063ad
push ebx
lea ecx, [ebp - 0x10]
push ecx
push 4
pop ebx
push ebx
push eax
push 0x40486b
push edi
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x50], eax
je 0x4062fc
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4062fc
int3
cmp dword [esi + 0x50], edi
jne 0x406337
mov ecx, esi
call fcn.004040ba
mov ecx, dword [esi + 0x4c]
call fcn.00403474
mov dword [ebp - 0x14], eax
lea eax, [esi + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x14], edi
jge 0x406337
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
je 0x40632f
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x4c], edi
jmp 0x4063ac
mov eax, dword [0x40e1ec]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x3c]
mov ebx, str.FontCacheWndClass
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0x405203
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call sub.WkWinUni.dll_Ordinal_135
test ax, ax
jne 0x406378
mov eax, 0x80004005
jmp 0x4063ac
push esi
push dword [0x40e1ec]
mov eax, SysReAllocString
push edi
push edi
push eax
push eax
push eax
push eax
push 0x8000000
push str.Works_Font_Cache
push ebx
push edi
call sub.WkWinUni.dll_Ordinal_26
mov dword [esi + 0x40], eax
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40781c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x409096
call fcn.00408710
sub esp, 0x420
mov eax, dword [0x40e0e4]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x40e020]
xor edi, edi
mov dword [ebp - 0x41c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push dword [ebp + 8]
mov byte [ebp - 4], 1
call sub.WkWinUni.dll_Ordinal_104
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x420], ebx
jne 0x407886
call fcn.0040376b
mov esi, eax
jmp 0x407941
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call sub.WkWinUni.dll_Ordinal_45
mov esi, eax
cmp esi, edi
je 0x40790e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x424], eax
je 0x40790e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + esi + 2]
push eax
lea ecx, [ebp - 0x418]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
call fcn.004045ab
jmp 0x4078d8
cmp dword [ebp - 0x418], edi
mov dword [ebp - 4], 1
jne 0x4078ee
mov esi, 0x8007000e
jmp 0x407935
call dword [0x40e020]
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x424]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x407915
call fcn.0040376b
jmp 0x407933
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [eax + esi*2], di
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.0040693c
mov esi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40795a
lea ecx, [ebp - 0x418]
call fcn.0040406d
lea ecx, [ebp - 0x41c]
call fcn.00403fa4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.004086fc
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4089aa
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x40aff8
call fcn.00408818
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x4089ea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4089ea
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x408a02
cmp eax, 0x20b
je 0x4089ef
mov dword [ebp - 0x1c], edi
jmp 0x408a16
cmp dword [ecx + 0x84], 0xe
jbe 0x4089ea
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x408a10
cmp dword [ecx + 0x74], 0xe
jbe 0x4089ea
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40e260], 0xffffffff
or dword [0x40e264], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40e258]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40e254]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40e25c], eax
call fcn.00408c3e
call fcn.00403743
cmp dword [0x40e110], edi
jne 0x408a76
push fcn.00403743
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00408ccc
push 0x40e01c
push 0x40e018
call sub.MSVCR71.dll__initterm
push 0x408c82
call fcn.004088da
mov eax, dword [0x40e250]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40e24c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x408aca
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40e014
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x408af4
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x408bae
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x408b63
cmp ax, di
je 0x408b0a
cmp dword [ebp - 0x20], edi
jne 0x408b63
mov ax, word [esi]
cmp ax, di
je 0x408b1f
cmp ax, 0x20
ja 0x408b1f
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x408b0a
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x408b3b
movzx eax, word [ebp - 0x54]
jmp 0x408b3e
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00407e0a
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x408b5b
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x408ba8
cmp ax, 0x22
jne 0x408b74
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x408af4
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00408853
ret
Function at 0x406624
Capabilities:
Get common file path

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

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

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x7954ce
Capabilities:
Encode data using xor

Disassembly:
push eax
sal bh, 1
xor edi, dword [ecx + 0x65dd3af2]
push ecx
push esi
loop fcn.007954ce
aam 0x8c
pop ss
pop ebx
mov esp, 0xaaf23a2c
xor eax, 0x85c800ef
or al, 0x93
inc ebx
add ah, dh
invalid

Function at 0xb01214
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00b01214
ret
Function at 0x403550
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x40357a
add eax, dword [0x472e18]
push edi
push edi
push eax
push dword [0x40b014]
mov dword [0x42f1e4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004033d2
cmp eax, edi
jl 0x403673
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40b014]
call ebx
test eax, eax
je 0x40366f
cmp dword [ebp - 4], esi
jne 0x40366f
push dword [ebp + 8]
add dword [0x42f1e4], esi
call fcn.004033d2
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x403672
cmp dword [ebp + 0x10], edi
jne 0x40363e
cmp dword [ebp + 8], edi
jle 0x40366a
mov esi, 0x42f1e8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4035ee
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40b014]
call ebx
test eax, eax
je 0x40366f
cmp edi, dword [ebp - 4]
jne 0x40366f
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40363a
cmp dword [ebp + 0x14], edi
jne 0x40363a
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42f1e4], eax
cmp dword [ebp + 8], 0
jg 0x4035e1
jmp 0x40366a
push 0xfffffffffffffffe
jmp 0x403671
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403649
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40b014]
call ebx
test eax, eax
je 0x40366f
mov eax, dword [ebp - 4]
add dword [0x42f1e4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403672
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10

Function at 0x403e18
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x403e45
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00403b57
sahf
xor eax, 0x458d7d84
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x402a36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423f50]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
cmp dword [ebp + 0x10], ebx
jne 0x402abe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a36
test eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405e78
cmp eax, ebx
je 0x402ad1
push ebx
push dword [0x423f50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423f50], ebx
jne 0x402ac7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac7
jmp 0x402aca
Function at 0x40303a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x417044]
sub esi, dword [0x40afb0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423eac], eax
jle 0x4031a4
push dword [0x41f054]
call fcn.004031e8
push ebx
push ebx
push dword [0x40afb0]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f050], esi
mov dword [0x417040], ebx
mov ebp, 0x40b040
mov eax, dword [0x417048]
mov edi, 0x4000
sub eax, dword [0x41f054]
cmp eax, edi
jg 0x4030af
mov edi, eax
mov esi, 0x413040
push edi
push esi
call fcn.004031b6
test eax, eax
je 0x403196
add dword [0x41f054], edi
mov dword [0x40afd0], esi
mov dword [0x40afd4], edi
cmp dword [0x423eb0], ebx
je 0x403106
cmp dword [0x423f40], ebx
jne 0x403106
mov eax, dword [0x41f050]
push ebx
sub eax, dword [0x417044]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40afb0]
mov dword [0x417040], eax
call fcn.00402bd3
pop ecx
mov ecx, 0x40afb8
mov dword [0x40afd8], ebp
mov dword [0x40afdc], 0x8000
call fcn.00405f72
test eax, eax
jl 0x40319f
mov esi, dword [0x40afd8]
sub esi, ebp
je 0x403160
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40319b
cmp esi, dword [esp + 0x10]
jne 0x40319b
add dword [0x40afb0], esi
cmp dword [0x40afd4], ebx
jne 0x4030d5
jmp 0x40316c
cmp dword [0x40afd4], ebx
jne 0x40319f
cmp edi, ebx
je 0x40319f
mov eax, dword [0x417044]
mov ecx, eax
sub ecx, dword [0x40afb0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403099
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031a4
or eax, 0xffffffff
jmp 0x4031ae
push 0xfffffffffffffffe
jmp 0x4031a1
push 0xfffffffffffffffd
pop eax
jmp 0x4031ae
push 1
call fcn.00402bd3
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4