joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300061c5
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x30006212
mov eax, dword [esi + 0xc]
test eax, eax
je 0x30006212
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x30006212
cmp dword [esi + 4], 0xffffffff
je 0x30006212
push eax
push 4
push esi
push 0x3000604e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x10], eax
je 0x30006212
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
ret

Function at 0x3000681c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x3000209c
push 0x30002080
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x30006851
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x3000207c
push ebx
call edi
test esi, esi
mov dword [0x3000207c], esi
jne 0x300068b5
mov dword [0x3000207c], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x3000b0a4], 0x44bf19b1
pop ebx
leave
ret
Function at 0x300068d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3000207c]
jne 0x300072ff
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x3000b638], eax
mov dword [0x3000b634], ecx
mov dword [0x3000b630], edx
mov dword [0x3000b62c], ebx
mov dword [0x3000b628], esi
mov dword [0x3000b624], edi
mov word [0x3000b650], ss
mov word [0x3000b644], cs
mov word [0x3000b620], ds
mov word [0x3000b61c], es
mov word [0x3000b618], fs
mov word [0x3000b614], gs
pushfd
pop dword [0x3000b648]
mov eax, dword [ebp]
mov dword [0x3000b63c], eax
mov eax, dword [ebp + 4]
mov dword [0x3000b640], eax
lea eax, [ebp + 8]
mov dword [0x3000b64c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x3000b588], 0x10001
mov eax, dword [0x3000b640]
mov dword [0x3000b53c], eax
mov dword [0x3000b530], 0xc0000409
mov dword [0x3000b534], 1
mov eax, dword [0x3000207c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x3000b0a4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x3000b580], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x300023f0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x3000b580], 0
jne 0x300073ef
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x300068dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x300020c8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30006935
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x300020c0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x30006935
mov al, 1
jmp 0x30006937
xor al, al
leave
ret 8
Function at 0x30007171
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x30009190
call fcn.3000753a
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x3000b8b4
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x30006f10
cmp eax, esi
jne 0x30006f03
xor esi, esi
inc esi
mov ebx, esi
jmp 0x30006f13
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30006eea
xor esi, esi
inc esi
mov eax, dword [0x3000b8b0]
cmp eax, esi
jne 0x30006f26
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30006f55
mov eax, dword [0x3000b8b0]
test eax, eax
jne 0x30006f4f
mov dword [0x3000b8b0], esi
push 0x30001284
push 0x3000127c
call fcn.300a5000
pop ecx
pop ecx
test eax, eax
je 0x30006f55
jmp 0x3000707d
mov dword [0x3000b528], esi
mov eax, dword [0x3000b8b0]
cmp eax, esi
jne 0x30006f79
push 0x30001278
push 0x30001268
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x3000b8b0], 2
test ebx, ebx
jne 0x30006f85
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x3000b8c0], 0
je 0x30006fa9
push 0x3000b8c0
call fcn.300074c2
pop ecx
test eax, eax
je 0x30006fa9
push 0
push 2
push 0
call dword [0x3000b8c0]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30007005
test al, al
je 0x30006fc3
cmp dword [ebp - 0x1c], 0
jne 0x30007005
mov al, byte [esi]
test al, al
je 0x30006fd3
cmp al, 0x20
ja 0x30006fd3
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30006fc3
test byte [ebp - 0x3c], 1
je 0x30006fdf
movzx eax, word [ebp - 0x38]
jmp 0x30006fe2
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x3000b524], eax
cmp dword [0x3000b518], 0
jne 0x30007059
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x30007014
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x30007027
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x30006fb0
cmp dword [0x3000b528], 0
jne 0x30007068
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3000b524]
jmp 0x30007089
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.3000757f
ret
call fcn.3000681c
jmp 0x30006eb0
Function at 0x3000766b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x300076da
mov eax, dword [ebp + 8]
test eax, 3
je 0x3000769c
cmp word [eax], 0
je 0x30007695
lea eax, [eax + 2]
test eax, 3
je 0x3000769c
jmp 0x30007683
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x300076d7
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x3000769c
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x300076d7
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x300076d7
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x3000769c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0xb6df20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3f9000]
push edi
or ebp, 0xffffffff
jmp 0xb6df42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb6df49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb6df38
mov eax, 1
add ebx, ebx
jne 0xb6df5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb6df50
jne 0xb6df6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
cld
adc ebx, ebx
jae 0xb6df50
xor ecx, ecx
sub eax, 3
jb 0xb6df80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb6dff2
mov ebp, eax
add ebx, ebx
jne 0xb6df8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xb6df98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xb6dfbc
inc ecx
add ebx, ebx
jne 0xb6dfa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb6df9d
jne 0xb6dfb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb6df9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb6dfdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb6dfcd
jmp 0xb6df3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb6dfdc
add edi, ecx
jmp 0xb6df3e
pop esi
mov edi, esi
mov ecx, 0x6704
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb6dffa
cmp byte [edi], 0x22
jne 0xb6dffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xb6dfff
lea edi, [esi + 0x76a000]
mov eax, dword [edi]
or eax, eax
je 0xb6e077
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x784f38]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7850a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb6e02c
mov ecx, edi
jns 0xb6e05b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7850a8]
or eax, eax
je 0xb6e071
mov dword [ebx], eax
add ebx, 4
jmp 0xb6e049
call dword [esi + 0x7850a4]
mov ebp, dword [esi + 0x7850ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xb6e0ab
sub esp, 0xffffff80
jmp 0x4e694e
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x1f342fbc
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x4304d8
nop
mov ecx, 0x5c9977d2
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4108e0
Capabilities:
Write file on windows

Disassembly:
push 0x44
mov eax, 0x441d65
call fcn.00429926
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x4109d2
cmp byte [esi + 0x41], bl
je 0x4109d2
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x410915
xor al, al
jmp 0x4109d4
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.00410571
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004101eb
mov edi, dword [eax + 4]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004101eb
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x18]
add ebx, edi
push ebx
push eax
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x410976
dec eax
je 0x41097a
dec eax
dec eax
je 0x4109ce
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00407cc4
mov al, bl
jmp 0x4109d4
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004101eb
mov edi, dword [ebp - 0x30]
sub edi, dword [eax + 4]
je 0x4109b0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004101eb
push dword [esi + 0x4c]
mov eax, dword [eax + 4]
push edi
push 1
push eax
call fcn.0042a92b
add esp, 0x10
cmp edi, eax
jne 0x410964
cmp byte [esi + 0x41], 0
je 0x4109ce
test edi, edi
jne 0x410923
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00410318
jmp 0x410923
mov bl, 1
jmp 0x410966
mov al, 1
call fcn.004299b8
ret
Function at 0x414999
Capabilities:
Create thread

Disassembly:
push 0x60
mov eax, 0x4440d0
call fcn.00429926
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
lea edi, [esi + 0x18]
mov dword [ebp - 0x6c], ecx
mov ecx, edi
cmp eax, ebx
jne 0x4149c8
push 0x401674
jmp 0x4149c9
push eax
call fcn.004089b3
push dword [ebp - 0x68]
lea ecx, [esi + 0x50]
mov byte [esi + 9], bl
mov byte [esi + 0xa], 1
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], ebx
call fcn.004089b3
cmp dword [esi + 0x2c], ebx
je 0x414aaf
cmp dword [edi + 0x18], 8
jb 0x4149fe
mov eax, dword [edi + 4]
jmp 0x414a01
lea eax, [edi + 4]
push ebx
push dword [ebp - 0x6c]
lea edi, [esi + 0x34]
push eax
push ebx
push edi
call fcn.00427f2a
add esp, 0x14
lea ecx, [ebp - 0x48]
call fcn.0040805d
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.0040805d
lea ecx, [ebp - 0x2c]
call fcn.0040805d
cmp dword [edi + 0x18], 8
mov byte [ebp - 4], 2
jb 0x414a3d
mov edi, dword [edi + 4]
jmp 0x414a40
add edi, 4
push ebx
push ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
push edi
call fcn.00427e1c
mov ecx, dword [ebp - 0x60]
add esp, 0x14
cmp dword [ebp - 0x4c], 8
jae 0x414a5f
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x414a6b
lea eax, [ebp - 0x44]
push ebx
push ebx
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00427f2a
mov eax, dword [ebp - 0x28]
add esp, 0x14
cmp dword [ebp - 0x14], 8
jae 0x414a87
lea eax, [ebp - 0x28]
push eax
call fcn.00428310
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00407d16
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00407d16
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00407d16
lea eax, [esi + 0x6c]
push eax
push ebx
push esi
push 0x414973
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x70], eax
call fcn.004299b8
ret 0xc
Function at 0x41bcf6
Capabilities:
Shutdown system

Disassembly:
push 0x20
mov eax, 0x443c13
call fcn.00429926
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00408032
and dword [ebp - 4], 0
push 0
mov ecx, esi
call fcn.00421a94
xor edi, edi
inc edi
push edi
mov ecx, esi
call fcn.00421c61
push edi
push edi
mov ecx, esi
call fcn.00421fe3
push edi
push edi
mov ecx, esi
call fcn.00421a26
call fcn.004252b8
test al, al
lea eax, [ebp - 0x2c]
je 0x41bdf3
push 0x3f0
push eax
call fcn.0042686b
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x41bd60
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.00421c3c
lea eax, [ebp - 0x2c]
push 0x3ee
push eax
call fcn.0042686b
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x41bd84
lea eax, [ebp - 0x28]
push eax
push edi
mov ecx, esi
call fcn.0042205e
push edi
push edi
mov ecx, esi
call fcn.00422022
lea eax, [ebp - 0x2c]
push 0x3ed
push eax
call fcn.0042686b
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x41bdb2
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, esi
call fcn.0042205e
push edi
push 2
mov ecx, esi
call fcn.00421fe3
push edi
push 2
mov ecx, esi
call fcn.00422022
mov ecx, esi
call fcn.004219c4
cmp eax, 2
jne 0x41be49
mov ecx, dword [0x44a13c]
call fcn.0041b41b
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x41be49
push 0x3f1
push eax
call fcn.0042686b
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x41be0c
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.00421c3c
lea eax, [ebp - 0x2c]
push 0x3ea
push eax
call fcn.0042686b
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x41be30
lea eax, [ebp - 0x28]
push eax
push edi
mov ecx, esi
call fcn.0042205e
push edi
push edi
mov ecx, esi
call fcn.00422022
mov ecx, esi
call fcn.004219c4
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.00421a26
push 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.00407cc4
call fcn.004299b8
ret
Function at 0x41be6a
Capabilities:
Get disk size

Disassembly:
push 0xb0
mov eax, 0x44321b
call fcn.00429926
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xbc], eax
call fcn.00408032
lea eax, [ebp - 0x48]
push eax
xor esi, esi
push 0x4033f4
mov dword [ebp - 4], esi
call fcn.0042622a
pop ecx
pop ecx
test al, al
jne 0x41bebf
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.00407cc4
mov al, 1
call fcn.004299b8
ret
lea eax, [ebp - 0x48]
push eax
call fcn.00424550
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
pop ecx
jae 0x41bed5
lea eax, [ebp - 0x44]
push esi
push esi
lea ecx, [ebp - 0xb8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x41befb
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00407cc4
mov al, bl
jmp 0x41beb9
mov ecx, dword [ebp - 0xb0]
xor ebx, ebx
xor edi, edi
call fcn.0041675d
test eax, eax
jle 0x41bee9
lea ecx, [ebp - 0x2c]
call fcn.00408032
lea ecx, [ebp - 0xac]
call fcn.00416b4a
mov ecx, dword [ebp - 0xb0]
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
mov byte [ebp - 4], 2
call fcn.00416f6b
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa0]
add eax, ecx
add ebx, eax
lea ecx, [ebp - 0xac]
adc esi, 0
call fcn.00416b79
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00407cc4
mov ecx, dword [ebp - 0xb0]
inc edi
call fcn.0041675d
cmp edi, eax
jl 0x41bf0e
mov eax, dword [ebp - 0xb4]
cmp esi, eax
jb 0x41bee9
ja 0x41bf96
cmp ebx, dword [ebp - 0xb8]
jbe 0x41bee9
mov ecx, dword [ebp - 0xb8]
shrd ecx, eax, 0x14
shrd ebx, esi, 0x14
shr esi, 0x14
mov esi, ecx
lea ecx, [ebp - 0x2c]
shr eax, 0x14
call fcn.00408032
lea ecx, [ebp - 0x64]
call fcn.00408032
mov eax, dword [ebp - 0xbc]
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 4
jb 0x41bfd1
mov eax, dword [eax + 4]
jmp 0x41bfd4
add eax, 4
push eax
lea eax, [ebp - 0x2c]
push 0x3f4
push eax
call fcn.0042686b
push esi
push ebx
lea eax, [ebp - 0x64]
push 0x421
push eax
call fcn.0042686b
mov ecx, dword [ebp - 0x28]
add esp, 0x1c
cmp dword [ebp - 0x14], 0x10
jae 0x41c002
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
jae 0x41c00e
lea eax, [ebp - 0x60]
push 0x31
push ecx
push eax
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
lea ecx, [ebp - 0x64]
push 1
cmp eax, 2
jne 0x41c03d
call fcn.00407cc4
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00407cc4
xor bl, bl
jmp 0x41beeb
call fcn.00407cc4
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00407cc4
jmp 0x41bee9
Function at 0x41d456
Capabilities:
Persist via run registry key

Disassembly:
push 0x60
mov eax, 0x4434c7
call fcn.00429926
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
je 0x41d582
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x68], esi
call fcn.0040805d
mov dword [ebp - 4], esi
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push 0x403880
lea eax, [ebp - 0x48]
push 0x403874
push eax
call fcn.00425e41
add esp, 0x10
lea ecx, [ebp - 0x2c]
call fcn.0040805d
lea ecx, [ebp - 0x64]
call fcn.0040805d
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.00428196
cmp dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x60]
pop ecx
jae 0x41d4c6
lea eax, [ebp - 0x60]
push esi
push eax
push edi
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00427f2a
add esp, 0x14
cmp ebx, esi
je 0x41d4e3
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040a1e3
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x403810
push 0x80000001
call dword [0x44b2d8]
xor edi, edi
inc edi
cmp eax, esi
je 0x41d513
push eax
push 0x4037c8
jmp 0x41d548
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x41d51f
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x41d52b
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x18]
add edx, edx
push edx
push ecx
push edi
push esi
push eax
push dword [ebp - 0x68]
call dword [0x44b2e8]
cmp eax, esi
je 0x41d556
push eax
push 0x403780
push dword [0x44a13c]
call fcn.004082bd
add esp, 0xc
cmp dword [ebp - 0x68], esi
je 0x41d564
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
lea ecx, [ebp - 0x64]
call fcn.00407d16
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.00407d16
push esi
push edi
lea ecx, [ebp - 0x48]
call fcn.00407d16
xor al, al
call fcn.004299b8
ret
Function at 0x42285c
Capabilities:
Write file on windows

Disassembly:
push 0x40
mov eax, 0x443b08
call fcn.00429926
mov eax, dword [ebp + 8]
mov esi, ecx
cmp eax, 3
jne 0x4229a0
lea ecx, [ebp - 0x2c]
call fcn.0040805d
xor edi, edi
cmp dword [esi + 0xa0], 8
mov dword [ebp - 4], edi
jb 0x422894
mov eax, dword [esi + 0x8c]
jmp 0x42289a
lea eax, [esi + 0x8c]
push edi
push 0x403e2c
push eax
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.00427f2a
mov eax, dword [ebp - 0x28]
add esp, 0x14
cmp dword [ebp - 0x14], 8
jae 0x4228ba
lea eax, [ebp - 0x28]
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
push eax
call dword [0x44b2b0]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42292e
lea ecx, [ebp - 0x48]
call fcn.00408032
lea eax, [ebp - 0x48]
push 0x59e
push eax
mov byte [ebp - 4], 1
call fcn.0042686b
lea eax, [esi + 0xa4]
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x422905
mov eax, dword [eax + 4]
jmp 0x422908
add eax, 4
cmp dword [ebp - 0x30], 0x10
mov ecx, dword [ebp - 0x44]
jae 0x422914
lea ecx, [ebp - 0x44]
push 0x10
push eax
push ecx
push dword [esi + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00407cc4
jmp 0x422993
cmp dword [esi + 0x84], 0x10
mov ecx, dword [esi + 0x80]
mov dword [ebp - 0x4c], edi
jb 0x422945
mov eax, dword [esi + 0x70]
jmp 0x422948
lea eax, [esi + 0x70]
push edi
lea edx, [ebp - 0x4c]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0xa0], 8
jb 0x42296e
mov eax, dword [esi + 0x8c]
jmp 0x422974
lea eax, [esi + 0x8c]
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x422980
lea ecx, [ebp - 0x28]
push 1
push eax
push edi
push ecx
push 0x403e20
push dword [esi + 8]
call dword [0x44b2ec]
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00407d16
jmp 0x4229b1
mov dword [esi + 0x68], eax
mov esi, dword [esi + 0x64]
test esi, esi
je 0x4229b1
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.004299b8
ret 4