joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437f69
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
je 0x437f7c
or dword [ebp + 0x14], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042c3f7
cmp dword [ebp + 8], ebx
je 0x437f9a
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [eax]
lea ecx, [ebp - 0x1c]
call fcn.0042c4b4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push edi
mov byte [eax], bl
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, dword [ebp - 0x20]
mov esi, eax
shl edi, 2
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042c29e
cmp esi, ebx
mov dword [ebp - 0x10], ebx
jne 0x4380ac
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
jle 0x4380ac
mov esi, dword [ebp - 0x18]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 0xc]
mov dword [ebp - 0x24], edi
mov byte [esi], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp byte [esi], 0x7b
jne 0x43806f
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jl 0x438038
cmp dword [ebp - 0x10], eax
jge 0x43807c
inc dword [ebp - 0x10]
cmp dword [ebp + 8], ebx
je 0x43806f
lea ecx, [ebp - 4]
call fcn.0042c3f7
push str.Name
push esi
lea esi, [ebp - 4]
call fcn.00437ec4
pop ecx
pop ecx
push dword [ebp - 0x1c]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x43808b
mov ecx, esi
call fcn.0042704a
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x43800a
jmp 0x4380ac
jne 0x4380ac
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push esi
call fcn.0042c332
jmp 0x4380ac
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
call fcn.00436274
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x18]
call fcn.0042c332
lea ecx, [ebp - 4]
call fcn.0042704a
cmp dword [ebp - 8], ebx
pop edi
je 0x4380bb
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp byte [eax], bl
je 0x4380db
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
cmp word [ecx], bx
jne 0x4380db
push str.Name
push eax
call fcn.00437ec4
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
lea ecx, [ebp - 0x18]
call fcn.0042704a
lea ecx, [ebp - 0x1c]
call fcn.0042704a
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43b906
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
and word [eax], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43b949
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x43b942
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00436246
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
ret
Function at 0x43c875
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
push 0x4975e4
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [esi + 0xb]
xor edi, edi
cmp dword [ebp + 0x10], edi
setl byte [ebp - 1]
and bl, 0x11
cmp byte [ebp - 1], 0
jne 0x43c8a9
test byte [ebp + 0x10], 0x40
je 0x43c8ab
xor bl, bl
mov esi, dword [ebp + 8]
push str.RANDOM
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x43c8ff
mov word [ebp - 0x4c], di
call fcn.00428bd8
and edx, 0x7fffffff
push edx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00435e9e
mov esi, dword [ebp + 0xc]
add esp, 0xc
push 3
mov ecx, esi
mov word [ebp - 0xe], di
call fcn.0042c43e
mov esi, dword [esi]
mov ax, word [ebp - 0x4c]
mov word [esi], ax
lea eax, [esi + 2]
jmp 0x43ca32
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp byte [ebp - 1], 0
mov edi, dword [ebp + 0xc]
movsx eax, bl
mov byte [ebp + 0x13], 0
mov dword [ebp - 8], eax
jne 0x43c92b
cmp word [esi], 0x26
je 0x43c9dd
test bl, bl
jne 0x43c9b6
push 0x52
mov ecx, edi
call fcn.0042c43e
mov esi, dword [edi]
and word [esi], 0
push 0
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
push 0x50
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jle 0x43c995
cmp word [esi], 0
jne 0x43c98d
lea eax, [ebx + 0xc]
push eax
mov ecx, edi
call fcn.0042c43e
mov esi, dword [edi]
and word [esi], 0
push 0
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
add ebx, 0xa
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jg 0x43ca2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x43ca2b
cmp byte [ebp + 0x13], 0
jne 0x43ca29
cmp byte [ebp - 1], 0
mov byte [ebp + 0x13], 1
jne 0x43ca29
mov ecx, dword [ebp - 0xc]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push dword [ebp + 8]
call fcn.0040f12a
cmp eax, ebx
jne 0x43c9ec
cmp dword [ebp - 8], ebx
jne 0x43c9fa
cmp byte [ebp + 0x13], bl
jne 0x43c9fa
mov byte [ebp + 0x13], 1
jmp 0x43c92b
add esi, 2
mov dword [ebp + 8], esi
mov dword [ebp - 8], 1
jmp 0x43c9b6
mov eax, dword [eax]
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebx + 2]
push eax
mov ecx, edi
call fcn.0042c43e
dec ebx
mov esi, dword [edi]
mov dword [ebp + 0xc], esi
js 0x43ca35
lea eax, [ebx + 1]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov cx, word [ecx]
add dword [ebp + 0xc], 2
add dword [ebp + 8], 2
dec eax
mov word [edx], cx
jne 0x43ca10
jmp 0x43ca35
xor ebx, ebx
test ebx, ebx
jle 0x43ca35
lea eax, [esi + ebx*2]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
and word [eax], 0
mov eax, 0x4975e4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43d4de
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x8a], 0
jne 0x43d4f6
test byte [ecx + 0xb], 0xf
jne 0x43d4f6
pop ebp
jmp fcn.0043d3e6
pop ebp
jmp fcn.0043c12f
Function at 0x43d84f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov eax, esi
call fcn.00434582
and word [ebp - 0xc], 0
and word [ebp - 2], 0
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x2a
mov word [ebp - 0x14], 0x20
mov word [ebp - 0x12], si
mov word [ebp - 0x10], 0x3a
mov word [ebp - 0xe], 0x2c
mov word [ebp - 8], si
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0x5c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x43d8af
cmp ebx, 2
je 0x43d8bf
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x496eb8
call fcn.0043aa21
pop ebx
leave
ret
Function at 0x44ac80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
cmp ebx, esi
jne 0x44ada9
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042c415
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x44ada1
push edi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
shl eax, 2
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov word [edi], si
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x44ad91
cmp word [edi], si
je 0x44ad91
mov eax, dword [ebp + 0x10]
push dword [eax]
lea ecx, [ebp - 4]
call fcn.004361de
push 0x480be8
lea ecx, [ebp - 4]
call fcn.0042c465
push edi
lea ecx, [ebp - 4]
call fcn.0042c465
push esi
push dword [ebp + 0xc]
push esi
push esi
push 4
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea eax, [ebp - 8]
push eax
movzx eax, word [0x496b68]
or eax, 0xf003f
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x44ad89
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0044ac80
add esp, 0xc
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x44ad89
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call fcn.0042704a
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x44acd7
pop edi
lea ecx, [ebp - 0x18]
call fcn.0042704a
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x45151b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, 0xb4
cmp esi, eax
jle 0x45153d
mov esi, eax
and dword [ebp - 0x2dc], 0
xor eax, eax
mov ecx, 0xb6
lea edi, [ebp - 0x2d8]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
lea eax, [esi + esi]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 0x274], 0x40
mov dword [ebp - 0x24c], edi
call fcn.0046c720
and word [ebp + esi*2 - 0x248], 0
add esp, 0xc
mov ebx, 0x4975bc
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x496b6c
push 0x10000
lea eax, [ebp - 0x2dc]
push eax
push 0x450c26
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x18], eax
je 0x451605
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x1c], 0x270f
cmp dword [ebp - 0x24c], edi
jne 0x4515fc
push 0
call esi
dec dword [ebp + 0x1c]
jns 0x4515dd
jmp 0x4515f4
push 1
call esi
cmp dword [ebp - 0x24c], edi
je 0x4515f0
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x454a66
Capabilities:
Hide graphical window

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x84
push ebx
push esi
xor ebx, ebx
cmp byte [ebp + 0x78], bl
push edi
mov edi, ecx
mov esi, dword [edi + 0x1c]
mov dword [ebp + 0x64], edi
mov word [ebp - 0x1c], bx
jne 0x454ad4
push dword [ebp + 0x70]
lea ebx, [esi + 0x70]
mov ecx, ebx
call fcn.00409e7a
and dword [ebp + 0x4c], 0
xor eax, eax
mov dword [ebp + 0x48], 1
lea edi, [ebp + 0x50]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x74]
mov edi, dword [esi + 0x7c]
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x70]
push 0x133d
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
mov edi, dword [ebp + 0x64]
mov eax, dword [ebp + 0x70]
inc eax
push eax
lea eax, [ebp - 0x1c]
push 0x488124
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x486fd4
lea ecx, [ebp + 0x78]
call fcn.004361de
push dword [edi + 8]
lea ecx, [ebp + 0x78]
call fcn.0042c465
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x78]
call fcn.0042c465
push dword [ebp + 0x74]
mov ecx, dword [edi + 0x30]
push dword [ebp + 0x78]
call fcn.0042af0d
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x454b34
mov ecx, dword [eax]
test ecx, ecx
je 0x454b34
and dword [eax], 0
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x454b48
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ebx
call esi
push 5
push ebx
call esi
lea ecx, [ebp + 0x78]
call fcn.0042704a
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10
Function at 0x466022
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x7c]
push 0x132f
push dword [esi + 0x18]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esi + 0x70]
mov edi, eax
mov eax, dword [ebp - 4]
cmp edi, eax
je 0x4660c0
test edi, edi
jl 0x4660c0
cmp edi, dword [esi + 0x78]
jge 0x4660c0
mov eax, dword [ebx + eax*4]
mov eax, dword [eax]
test eax, eax
je 0x46606c
push 0
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x7c], edi
mov eax, dword [ebx + edi*4]
mov eax, dword [eax]
test eax, eax
je 0x466083
push 5
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x486fd4
lea ecx, [ebp - 4]
call fcn.004361de
push dword [esi + 0x4c]
lea ecx, [ebp - 4]
call fcn.0042c465
push str..Select
lea ecx, [ebp - 4]
call fcn.0042c465
push dword [ebp - 4]
inc edi
push edi
push dword [esi + 0x50]
call fcn.0042e3da
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.0042704a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x466d6e
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0xfffffffffffffff0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x466d99
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x18]
call edi
push 5
push dword [esi + 0x18]
call edi
pop edi
pop esi
ret

Function at 0x46bfe7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and eax, 0xffdf
cmp ax, 0x41
je 0x46c005
cmp ax, 0x42
je 0x46c005
push 0xfffffffffffffffe
pop eax
leave
ret
and word [ebp - 4], 0
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x3a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 2
setne cl
mov eax, ecx
leave
ret

Function at 0x46c18a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret
Function at 0x46f722
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x489a70
call fcn.0046ecd8
mov edi, 0x94
mov eax, edi
call fcn.0046cf20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x497af0], ecx
mov eax, dword [esi + 4]
mov dword [0x497afc], eax
mov edx, dword [esi + 8]
mov dword [0x497b00], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x497af4], esi
cmp ecx, 2
je 0x46f782
or esi, 0x8000
mov dword [0x497af4], esi
shl eax, 8
add eax, edx
mov dword [0x497af8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x46f7bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46f7bd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x46f7d5
cmp eax, 0x20b
je 0x46f7c2
mov dword [ebp - 0x1c], esi
jmp 0x46f7e9
cmp dword [ecx + 0x84], 0xe
jbe 0x46f7bd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x46f7e3
cmp dword [ecx + 0x74], 0xe
jbe 0x46f7bd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00477f6c
pop ecx
test eax, eax
jne 0x46f7fd
push 0x1c
call fcn.0046f6fe
pop ecx
call fcn.004722a3
test eax, eax
jne 0x46f80e
push 0x10
call fcn.0046f6fe
pop ecx
call fcn.00479d14
mov dword [ebp - 4], esi
call fcn.00470fea
test eax, eax
jge 0x46f827
push 0x1b
call fcn.0046f6d9
pop ecx
call fcn.00479c75
mov dword [0x4984b0], eax
call fcn.00479b0b
mov dword [0x497ae4], eax
call fcn.00479a75
test eax, eax
jge 0x46f84c
push 8
call fcn.0046f6d9
pop ecx
call fcn.00479842
test eax, eax
jge 0x46f85d
push 9
call fcn.0046f6d9
pop ecx
push 1
call fcn.0046fafd
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x46f873
push eax
call fcn.0046f6d9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.004797fc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x46f894
movzx eax, word [ebp - 0x40]
jmp 0x46f897
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040968e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x46f8b5
push edi
call fcn.0046fc2a
call fcn.0046fc4c
jmp 0x46f8e7
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0046ed13
ret
Function at 0x46fb67
Capabilities:
Terminate process

Disassembly:
push 8
push 0x489aa8
call fcn.0046ecd8
push 8
call fcn.004715fa
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x497b30], esi
jne 0x46fb9b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x497b2c], esi
mov al, byte [ebp + 0x10]
mov byte [0x497b28], al
cmp dword [ebp + 0xc], edi
jne 0x46fbe5
cmp dword [0x4984a8], edi
je 0x46fbd5
mov eax, dword [0x4984a4]
sub eax, 4
mov dword [0x4984a4], eax
cmp eax, dword [0x4984a8]
jb 0x46fbd5
mov eax, dword [eax]
cmp eax, edi
je 0x46fbb6
call eax
jmp 0x46fbb6
push 0x4950b0
mov eax, 0x4950a8
call fcn.0046fae5
pop ecx
push 0x4950bc
mov eax, 0x4950b4
call fcn.0046fae5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x46fc16
cmp dword [ebp + 0x10], edi
jne 0x46fc24
mov dword [0x497b30], esi
push dword [ebp + 8]
call fcn.0046faa3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x46fc23
push 8
call fcn.00471545
pop ecx
ret
call fcn.0046ed13
ret
Function at 0x4719d2
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x496300]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x471a03
xor eax, eax
jmp 0x471b8c
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4983a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x471a3f
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0047a3a4
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x471b1a
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x471b58
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x471aa3
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x471a94
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x471a74
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x471ae3
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x471aec
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x471a65
jmp 0x471aee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x471b87
cmp dword [ebp - 0x6c], edi
je 0x471b58
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x471b4d
call fcn.0047194d
mov dword [eax], 9
call fcn.00471956
mov dword [eax], esi
jmp 0x471b82
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x471b42
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x471aee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x471aee
push dword [ebp - 0x6c]
call fcn.0047195f
pop ecx
jmp 0x471b82
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x471b70
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x471b70
xor eax, eax
jmp 0x471b8a
call fcn.0047194d
mov dword [eax], 0x1c
call fcn.00471956
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x471b8a
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0047a11b
add ebp, 0x3a0
leave
ret
Function at 0x477970
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x47799e
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4779a5
cmp ebx, dword [eax + 4]
jae 0x4779a5
xor eax, eax
jmp 0x477b95
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4779b6
xor eax, eax
inc eax
jmp 0x477b94
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4779cc
cmp ecx, edx
jae 0x477b11
cmp dword [eax + 4], 0
je 0x4779d5
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4779bd
cmp dword [ebp + 8], 0
je 0x4779f7
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x477b11
cmp eax, esi
jae 0x477b11
mov eax, dword [0x497d90]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x477a1c
cmp dword [esi*4 + 0x497d98], edi
je 0x477b15
inc esi
cmp esi, eax
jl 0x477a0a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x477b91
cmp dword [ebp - 8], 0x1000000
jne 0x477b91
test byte [ebp - 0xc], 0xcc
je 0x477a9a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x477b91
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x477b91
cmp word [eax + 0x18], 0x10b
jne 0x477b91
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x477b91
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x477a9a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x477a9a
test byte [ecx + 0x27], 0x80
jne 0x477b11
push 1
push 0x497dd8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4779ae
mov ecx, dword [0x497d90]
test ecx, ecx
mov edx, ecx
jle 0x477ace
lea eax, [ecx*4 + 0x497d94]
cmp dword [eax], edi
je 0x477ace
dec edx
sub eax, 4
test edx, edx
jg 0x477ac2
test edx, edx
jne 0x477aff
push 0xf
pop ebx
cmp ecx, ebx
jg 0x477adb
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x477af3
lea eax, [edx*4 + 0x497d98]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x477ae1
cmp ecx, 0x10
jge 0x477aff
inc ecx
mov dword [0x497d90], ecx
push 0
push 0x497dd8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4779ae
xor eax, eax
jmp 0x477b94
test esi, esi
jle 0x4779ae
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x497dd8
call ebx
test eax, eax
jne 0x4779ae
cmp dword [esi*4 + 0x497d98], edi
je 0x477b6b
mov eax, dword [0x497d90]
lea esi, [eax - 1]
test esi, esi
jl 0x477b59
cmp dword [esi*4 + 0x497d98], edi
je 0x477b55
dec esi
jns 0x477b49
test esi, esi
jge 0x477b69
cmp eax, 0x10
jge 0x477b64
inc eax
mov dword [0x497d90], eax
lea esi, [eax - 1]
jmp 0x477b6b
je 0x477b83
xor ecx, ecx
test esi, esi
jl 0x477b83
lea eax, [ecx*4 + 0x497d98]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x477b71
push 0
push 0x497dd8
call ebx
jmp 0x4779ae
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret