joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b74f
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.10008a6c
and dword [ebp - 4], 0
cmp dword [0x101763f8], 0
mov ebx, eax
jne 0x1000b800
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000b8b1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000b8b1
push eax
call fcn.100089fa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101763f8], eax
call esi
push eax
call fcn.100089fa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101763fc], eax
call esi
push eax
call fcn.100089fa
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10176400], eax
call esi
push eax
call fcn.100089fa
pop ecx
mov dword [0x10176408], eax
test eax, eax
je 0x1000b800
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100089fa
pop ecx
mov dword [0x10176404], eax
mov eax, dword [0x10176404]
cmp eax, ebx
je 0x1000b858
cmp dword [0x10176408], ebx
je 0x1000b858
push eax
call fcn.10008a75
push dword [0x10176408]
mov esi, eax
call fcn.10008a75
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000b858
test edi, edi
je 0x1000b858
call esi
test eax, eax
je 0x1000b84f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000b84f
test byte [ebp - 0xc], 1
jne 0x1000b858
or dword [ebp + 0x10], 0x200000
jmp 0x1000b891
mov eax, dword [0x101763fc]
cmp eax, ebx
je 0x1000b891
push eax
call fcn.10008a75
pop ecx
test eax, eax
je 0x1000b891
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000b891
mov eax, dword [0x10176400]
cmp eax, ebx
je 0x1000b891
push eax
call fcn.10008a75
pop ecx
test eax, eax
je 0x1000b891
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101763f8]
call fcn.10008a75
pop ecx
test eax, eax
je 0x1000b8b1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000b8b3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000d7d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, 0xde1
lea ecx, [fcn.1000d7d0]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x1000d7e9
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
jne 0x1000d824
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp dword [eax + ecx], 0x4550
jne 0x1000d824
mov eax, dword [ebp - 0x10]
mov dword [0x101745e4], eax
mov eax, dword [ebp - 0xc]
add esp, 0x14
pop ebp
ret
mov eax, 0x1eb3
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x1000d7e9
Function at 0x1000db00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x101745ec], 0
mov dword [0x101745f0], 0
mov dword [0x101745fc], 0
cmp eax, 0
sete bl
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x1d], bl
xor eax, eax
mov cl, byte [ebp - 0x1d]
test cl, 1
mov dword [ebp - 0x24], eax
jne 0x1000db59
jmp 0x1000db61
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov ecx, 0x100
mov dword [0x101745e8], 0x341
mov edx, dword [0x101745ec]
add edx, 1
mov dword [ebp - 0x28], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x101745ec], edx
mov dword [0x101745e4], 0x2e9
mov esi, dword [0x101745f0]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x101745f0], edx
mov ecx, dword [0x101745ec]
mov bl, byte [edi + ecx]
mov byte [0x101745f4], bl
mov dword [0x101745e8], 0x15f7
mov bl, byte [edi + edx]
mov ecx, dword [0x101745ec]
mov byte [edi + ecx], bl
mov dword [0x101745e4], 0xeac
mov bl, byte [0x101745f4]
mov ecx, dword [0x101745f0]
mov byte [edi + ecx], bl
mov ecx, dword [0x101745ec]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x101745f0]
movzx edx, byte [edi + edx]
add edx, ecx
mov dword [0x101745e4], 0x2123
and edx, 0xff
mov dword [0x101745fc], edx
mov ecx, dword [0x101745e8]
add ecx, 0xffffdc8e
mov dword [0x101745e8], ecx
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov bl, byte [ecx + esi]
xor bl, byte [edi + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], bl
add esi, 1
mov ecx, dword [ebp - 0x10]
cmp esi, ecx
mov dword [ebp - 0x24], esi
je 0x1000db59
jmp 0x1000db61
Function at 0x1000dc60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [0x101745e4]
add esi, 0xfffff334
mov dword [0x101745e4], esi
mov dword [0x101745f0], 0
mov byte [0x101745f4], 0
mov dword [0x101745ec], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x1000dd5c
mov eax, 0x100
mov dword [0x101745f8], 0
mov ecx, dword [0x101745f0]
mov edx, dword [0x101745ec]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x1c], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x101745f8], edi
mov dword [0x101745e4], 0x253d
mov eax, edi
cdq
mov edi, dword [ebp - 0x1c]
idiv edi
mov dword [0x101745f0], edx
mov dword [0x101745e8], 0x2618
mov ecx, dword [0x101745ec]
mov bl, byte [esi + ecx]
mov byte [0x101745f4], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov dword [0x101745e4], 0x1673
mov bl, byte [0x101745f4]
mov ecx, dword [0x101745f0]
mov byte [esi + ecx], bl
mov ecx, dword [0x101745ec]
add ecx, 1
mov dword [0x101745ec], ecx
cmp ecx, 0x100
jl 0x1000dcad
jmp 0x1000dda4
mov eax, dword [0x101745ec]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101745e4], 0x4fb
mov eax, dword [0x101745ec]
add eax, 1
mov dword [0x101745ec], eax
cmp eax, 0x100
jl 0x1000dd5c
mov dword [0x101745e8], 0x1cd8
mov dword [0x101745ec], 0
jmp 0x1000dcad
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000ddb0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [0x101745e4], 0x26ad
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov dword [0x101745e8], 0xd73
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov edx, dword [0x101745e4]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xffffeba1
mov edx, dword [ebp - 0x10]
add edx, 0x739
mov dword [0x101745e4], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
jmp 0x1000de58
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1000df2d
jmp 0x1000df56
mov dword [0x101745e8], 0x1c0d
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp word [eax], 0x6f
je 0x1000de78
jmp 0x1000df56
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
je 0x1000debf
jmp 0x1000dea1
mov eax, dword [ebp - 0x2c]
add esp, 0x38
pop ebp
ret
mov dword [0x101745e8], 0x636
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
sete dl
mov byte [ebp - 0x2d], dl
mov al, byte [ebp - 0x2d]
test al, 1
jne 0x1000deea
jmp 0x1000df56
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, 0x104
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
jl 0x1000de58
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [0x101745e8], ecx
mov dword [0x101745e4], 0x2024
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
je 0x1000de2c
jmp 0x1000df56
mov dword [0x101745e8], 0xcfa
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1000df56
mov dword [0x101745e4], 0x18db
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
sete dl
mov byte [ebp - 0x35], dl
mov al, byte [ebp - 0x35]
test al, 1
jne 0x1000de14
jmp 0x1000df56
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0xe], 0x6c
sete dl
mov byte [ebp - 0x36], dl
mov eax, 1
mov cl, byte [ebp - 0x36]
test cl, 1
mov dword [ebp - 0x2c], eax
jne 0x1000de70
jmp 0x1000df56
mov dword [0x101745e4], 0x224d
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x1000de70
Function at 0x1000e000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
call fcn.1000d7a0
xor ecx, ecx
mov edx, dword [0x101745e4]
add edx, 0xffffd978
mov dword [0x101745e8], edx
mov dword [0x101745e4], 0x1c86
mov edx, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
jmp 0x1000e0d8
lea eax, [0x100104cc]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [0x101745e4], 0x18e9
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
call fcn.1000d480
mov dword [0x101745e4], 0x1dfa
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.1000d970
mov ecx, eax
mov dword [0x10174604], eax
mov eax, esp
mov edx, dword [ebp - 0x48]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
mov ecx, dword [0x101745e8]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
xor eax, eax
mov ecx, dword [ebp - 0x50]
add ecx, 0x8af
mov dword [0x101745e4], ecx
mov ecx, eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], eax
jmp 0x1000e12c
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
lea edx, section..data
imul esi, eax, 0x130
mov edi, edx
add edi, esi
add edi, 0x12c
mov esi, eax
add esi, 1
imul eax, eax, 0x130
add edx, eax
add edx, 0x12a
mov eax, dword [edi]
movzx edx, word [edx]
xor edx, eax
add edx, ecx
cmp esi, 0x1cf
mov eax, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x3c], esi
je 0x1000e042
jmp 0x1000e0d8
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
lea edx, section..data
imul esi, eax, 0x130
mov edi, edx
add edi, esi
add edi, 0x12c
mov esi, dword [edi]
imul edi, eax, 0x130
mov ebx, edx
add ebx, edi
add ebx, 0x120
mov edi, dword [ebx]
imul ebx, eax, 0x130
add edx, ebx
add edx, 0x12a
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x4c]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], edx
call fcn.1000df80
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
add eax, ecx
mov edx, dword [ebp - 0x5c]
add edx, 1
cmp edx, 0x1cf
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], edx
jne 0x1000e12c
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x48]
mov dword [esp + 8], ecx
call fcn.1000d5e0
xor eax, eax
mov dword [0x101745e4], 0x1ca4
mov ecx, dword [ebp - 0x4c]
add ecx, 0xc9958
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov dword [edx + 4], 0x143a00
mov ecx, dword [ebp - 0x4c]
add ecx, 0x67dba
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f60
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401200
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
je 0x4012e2
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4012e2
push 0x80
push edi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
mov eax, dword [ebp + 0x14]
push 0
push 0x80
push eax
push 0
push 2
push 0x40000000
push edi
call dword [esi + 0x21c]
mov edi, eax
cmp edi, 0xffffffff
je 0x4012e2
mov eax, dword [ebp + 0x18]
cmp eax, 0xffffffff
jne 0x40127c
push 2
push 0
push 0
jmp 0x401281
push 0
push 0
push eax
push edi
call dword [esi + 0x22c]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4012a5
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401294
push 0
lea ecx, [ebp + 8]
sub eax, edx
push ecx
jmp 0x4012ab
push 0
lea edx, [ebp + 8]
push edx
push eax
push ebx
push edi
call dword [esi + 0x224]
test eax, eax
jne 0x4012bf
mov dword [ebp + 8], 0xffffffff
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x402742
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40a348
call fcn.00404788
mov edi, 0x94
mov eax, edi
call fcn.004023e0
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 [0x40d788], ecx
mov eax, dword [esi + 4]
mov dword [0x40d794], eax
mov edx, dword [esi + 8]
mov dword [0x40d798], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40d78c], esi
cmp ecx, 2
je 0x4027a2
or esi, 0x8000
mov dword [0x40d78c], esi
shl eax, 8
add eax, edx
mov dword [0x40d790], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4027dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4027dd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4027f5
cmp eax, 0x20b
je 0x4027e2
mov dword [ebp - 0x1c], esi
jmp 0x402809
cmp dword [ecx + 0x84], 0xe
jbe 0x4027dd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x402803
cmp dword [ecx + 0x74], 0xe
jbe 0x4027dd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004054d3
pop ecx
test eax, eax
jne 0x402835
cmp dword [0x40d730], 1
jne 0x402822
call fcn.00404c7c
push 0x1c
call fcn.00404b05
push 0xff
call fcn.00404936
pop ecx
pop ecx
call fcn.00405431
mov dword [ebp - 4], esi
call fcn.00405286
test eax, eax
jge 0x40284e
push 0x1b
call fcn.0040271d
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x40ecf0], eax
call fcn.00405164
mov dword [0x40d728], eax
call fcn.004050c2
test eax, eax
jge 0x402874
push 8
call fcn.0040271d
pop ecx
call fcn.00404e8f
test eax, eax
jge 0x402885
push 9
call fcn.0040271d
pop ecx
call fcn.00404966
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x402898
push eax
call fcn.0040271d
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.00404e26
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4028b9
movzx eax, word [ebp - 0x34]
jmp 0x4028bc
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00401450
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4028da
push edi
call fcn.00404a8d
call fcn.00404aaf
jmp 0x40290c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004047c3
ret
Function at 0x4042f8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004023e0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x40438d
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x40d788]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40438d
cmp eax, 1
je 0x4043a5
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x40438d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x404362
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x404389
xor eax, eax
inc eax
jmp 0x4043c1
cmp esi, ebx
jae 0x404391
xor eax, eax
jmp 0x4043c1
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x40d788]
jmp 0x4043a7
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4049cb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40d7c8], esi
push edi
jne 0x4049eb
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40d7c4], esi
mov byte [0x40d7c0], al
jne 0x404a51
mov ecx, dword [0x40ece8]
test ecx, ecx
je 0x404a32
mov eax, dword [0x40ece4]
sub eax, 4
cmp eax, ecx
jmp 0x404a2b
mov eax, dword [eax]
test eax, eax
je 0x404a1d
call eax
mov eax, dword [0x40ece4]
sub eax, 4
cmp eax, dword [0x40ece8]
mov dword [0x40ece4], eax
jae 0x404a15
mov eax, 0x40c02c
mov esi, 0x40c034
cmp eax, esi
mov edi, eax
jae 0x404a51
mov eax, dword [edi]
test eax, eax
je 0x404a4a
call eax
add edi, 4
cmp edi, esi
jb 0x404a42
mov eax, 0x40c038
mov esi, 0x40c040
cmp eax, esi
mov edi, eax
jae 0x404a70
mov eax, dword [edi]
test eax, eax
je 0x404a69
call eax
add edi, 4
cmp edi, esi
jb 0x404a61
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x404a8b
push dword [ebp + 8]
mov dword [0x40d7c8], 1
call fcn.00404936
pop ecx
pop ebp
ret
Function at 0x404b05
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40c4c0]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40c0c8]
je 0x404b32
inc eax
cmp eax, 0x12
jb 0x404b23
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40c0c8]
jne 0x404c66
mov eax, dword [0x40d730]
cmp eax, 1
je 0x404c41
cmp eax, edx
jne 0x404b62
cmp dword [0x40c084], 1
je 0x404c41
cmp ecx, 0xfc
je 0x404c66
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404b9b
lea eax, [ebp - 0x10c]
push 0x40a81c
push eax
call fcn.00404200
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00406a10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x404bdd
lea eax, [ebp - 0x10c]
push eax
call fcn.00406a10
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a818
push edi
call fcn.00407c70
add esp, 0x10
push edi
call fcn.00406a10
push dword [esi + 0x40c0cc]
mov ebx, eax
call fcn.00406a10
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004023e0
mov ebx, esp
push 0x40a7fc
push ebx
call fcn.00404200
push edi
push ebx
call fcn.00404210
push 0x40a7f8
push ebx
call fcn.00404210
push dword [esi + 0x40c0cc]
push ebx
call fcn.00404210
push 0x12010
push 0x40a7d0
push ebx
call fcn.00407b6c
add esp, 0x2c
jmp 0x404c66
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x40c0cc]
push dword [esi]
call fcn.00406a10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0040721d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405286
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x44
push 0x100
call fcn.0040298d
test eax, eax
pop ecx
jne 0x4052a0
or eax, 0xffffffff
jmp 0x40542d
mov dword [0x40ebe0], eax
mov dword [0x40ebc8], 0x20
lea ecx, [eax + 0x100]
jmp 0x4052d1
and byte [eax + 4], 0
or dword [eax], 0xffffffff
mov byte [eax + 5], 0xa
mov ecx, dword [0x40ebe0]
add eax, 8
add ecx, 0x100
cmp eax, ecx
jb 0x4052b7
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
cmp word [esp + 0x3e], 0
je 0x4053b6
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4053b6
mov esi, dword [eax]
push ebp
lea ebp, [eax + 4]
mov eax, 0x800
cmp esi, eax
lea ebx, [esi + ebp]
jl 0x40530f
mov esi, eax
cmp dword [0x40ebc8], esi
jge 0x405369
mov edi, 0x40ebe4
push 0x100
call fcn.0040298d
test eax, eax
pop ecx
je 0x405363
add dword [0x40ebc8], 0x20
mov dword [edi], eax
lea ecx, [eax + 0x100]
jmp 0x405352
and byte [eax + 4], 0
or dword [eax], 0xffffffff
mov byte [eax + 5], 0xa
mov ecx, dword [edi]
add eax, 8
add ecx, 0x100
cmp eax, ecx
jb 0x40533c
add edi, 4
cmp dword [0x40ebc8], esi
jl 0x40531c
jmp 0x405369
mov esi, dword [0x40ebc8]
xor edi, edi
test esi, esi
jle 0x4053b5
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x4053ac
mov cl, byte [ebp]
test cl, 1
je 0x4053ac
test cl, 8
jne 0x40538e
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x4053ac
mov eax, edi
sar eax, 5
mov eax, dword [eax*4 + 0x40ebe0]
mov ecx, edi
and ecx, 0x1f
lea eax, [eax + ecx*8]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov cl, byte [ebp]
mov byte [eax + 4], cl
inc edi
inc ebp
add ebx, 4
cmp edi, esi
jl 0x40536f
pop ebp
xor ebx, ebx
mov eax, dword [0x40ebe0]
lea esi, [eax + ebx*8]
cmp dword [esi], 0xffffffff
jne 0x405412
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x4053d2
push 0xfffffffffffffff6
pop eax
jmp 0x4053dc
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x405401
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x405401
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x405407
or byte [esi + 4], 0x40
jmp 0x405416
cmp eax, 3
jne 0x405416
or byte [esi + 4], 8
jmp 0x405416
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x4053b8
push dword [0x40ebc8]
call dword [sym.imp.kernel32.dll_LockResource]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x44
ret