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

Disassembly:
sub esp, 0x20c
mov edx, dword [esp + 0x210]
lea eax, [esp]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 0x310]
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 0x20019
push ecx
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402d43
push ebp
push edi
push eax
push eax
push eax
push eax
mov ecx, dword [esp + 0x1c]
push eax
push eax
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x402d36
test eax, eax
jne 0x402d36
xor edi, edi
test ecx, ecx
jbe 0x402d36
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x28]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x100
mov byte [esp + 0x38], 0
call ebp
test eax, eax
jne 0x402d36
mov ecx, dword [esp + 0x21c]
lea edx, [esp + 0x118]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00402d50
test eax, eax
je 0x402d2d
mov eax, dword [esp + 0x220]
lea edx, [esp + 0x118]
push edx
push eax
mov ecx, esi
call fcn.004022f0
mov eax, dword [esi + 0x304]
test eax, eax
jne 0x402d36
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jb 0x402cc1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop esi
add esp, 0x20c
ret 8
Function at 0x402d50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov edx, ecx
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x120]
lea ebx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, dword [edx + 0x310]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
lea ebx, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d270
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x124]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
neg edx
sbb edx, edx
rep movsb byte es:[edi], byte [esi]
and edx, 0x100
lea ecx, [esp + 0x10]
add edx, 0x20019
push ecx
push edx
push eax
lea eax, [esp + 0x28]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402e87
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c], al
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.Driver
push ecx
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x402e87
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 0xc
Function at 0x407c3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40ddd0
cmp edx, dword [eax]
je 0x407c5f
add eax, 8
inc ecx
cmp eax, 0x40de60
jl 0x407c50
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40ddd0]
jne 0x407d8d
mov eax, dword [0x4102e0]
cmp eax, 1
je 0x407d67
test eax, eax
jne 0x407c90
cmp dword [0x40d994], 1
je 0x407d67
cmp edx, 0xfc
je 0x407d8d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407cc7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409fa0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409230
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407d0a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409230
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c588
push edi
call fcn.0040a6f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409fa0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409fb0
lea eax, [ebp - 0xa0]
push 0x40c568
push eax
call fcn.00409fb0
push dword [esi + 0x40ddd4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409fb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a65f
add esp, 0x2c
pop edi
jmp 0x407d8d
lea eax, [ebp + 8]
lea esi, [esi + 0x40ddd4]
push 0
push eax
push dword [esi]
call fcn.00409230
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]
pop esi
leave
ret
Function at 0x2ec64abc
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esp + 8], 2
push ebx
push esi
push edi
jl 0x2ec64cdb
mov ebx, dword [esp + 0x18]
cmp ebx, 2
jg 0x2ec64cdb
mov edi, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.bCanCompareEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba44], eax
je 0x2ec64cdb
push str.wAjouteEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba40], eax
je 0x2ec64cdb
push str.wSoustraitEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba38], eax
je 0x2ec64cdb
push str.wMultiplieEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba3c], eax
je 0x2ec64cdb
push str.wDiviseEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba34], eax
je 0x2ec64cdb
push str.wModuloEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba30], eax
je 0x2ec64cdb
push str.nComparaisonEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba2c], eax
je 0x2ec64cdb
push str.nEgaliteEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba28], eax
je 0x2ec64cdb
push str.nSuperieurEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba24], eax
je 0x2ec64cdb
push str.nInferieurEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba20], eax
je 0x2ec64cdb
push str.nPresqueEgalEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba1c], eax
je 0x2ec64cdb
push str.nSoupleEgalEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba18], eax
je 0x2ec64cdb
push str.nCommencePar
push edi
call esi
test eax, eax
mov dword [0x2ec7ba14], eax
je 0x2ec64cdb
push str.nCommenceParSoupleEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba10], eax
je 0x2ec64cdb
push str.nCommenceParTresSoupleEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba0c], eax
je 0x2ec64cdb
push str.nETLogiqueEx
push edi
call esi
test eax, eax
mov dword [0x2ec7b9f0], eax
je 0x2ec64cdb
push str.nOULogiqueEx
push edi
call esi
test eax, eax
mov dword [0x2ec7b9ec], eax
je 0x2ec64cdb
push str.nNONLogiqueEx
push edi
call esi
test eax, eax
mov dword [0x2ec7b9e8], eax
je 0x2ec64cdb
push str.nNegationEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba08], eax
je 0x2ec64cdb
push str.nAdditionEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba04], eax
je 0x2ec64cdb
push str.nSoustractionEx
push edi
call esi
test eax, eax
mov dword [0x2ec7ba00], eax
je 0x2ec64cdb
push str.nMultiplicationEx
push edi
call esi
test eax, eax
mov dword [0x2ec7b9fc], eax
je 0x2ec64cdb
push str.nDivisionEx
push edi
call esi
test eax, eax
mov dword [0x2ec7b9f8], eax
je 0x2ec64cdb
push str.nModuloEx
push edi
call esi
test eax, eax
mov dword [0x2ec7b9f4], eax
je 0x2ec64cdb
mov eax, dword [esp + 0x14]
mov dword [0x2ec7ba88], eax
xor eax, eax
mov dword [0x2ec7ba84], edi
mov dword [0x2ec7ba8c], ebx
inc eax
jmp 0x2ec64cdd
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x401cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401d28
cmp byte [esi + ebx - 1], 0xa
je 0x401cfc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4020f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x401f20
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x411901
Capabilities:
Resolve function by hash

Disassembly:
push 0x4012f0
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], al
dec ebp
xor eax, ebx
or al, 0x4c
push es
inc ebp
lcall 0xe566, 0xac73e783
cmp al, 0
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax + ebp*2 + 0x68], cl
pop ecx
imul ebp, dword fs:[ebp + eax*2], 0
add byte [eax], al
add byte cs:[eax], al
add byte [eax], al
push es
add byte [eax], al
add byte [eax + 0x37], bh
inc eax
add byte [edi], al
add byte [eax], al
add byte [eax], ah
das
inc eax
add byte [edi], al
add byte [eax], al
add ah, bl
inc eax
add byte [edi], al
add byte [eax], al
add byte [eax + 0x700402e], al
add byte [eax], al
add byte [esi + ebp], bh
inc eax
add byte [edi], al
add byte [eax], al
add ah, dh
sub eax, 0x70040
add byte [eax], al
mov al, 0x2d
inc eax
add byte [edi], al
add byte [eax], al
add byte [eax + 0x2d], ch
inc eax
add byte [edi], al
add byte [eax], al
add byte [ebp + 0x70040], ah
add byte [eax], al
shr byte [eax + eax*2], 1
add byte [edi], al
add byte [eax], al
add byte [esp + ebp + 0x70040], cl
add byte [eax], al
and al, 0x2c
inc eax
add byte [edi], al
add byte [eax], al
add al, bl
sub eax, dword [eax]
pop es
add byte [eax], al
add byte [ebx + ebp + 0x70040], dl
add byte [eax], al
cmp al, 0x2b
inc eax
add byte [edi], al
add byte [eax], al
add byte [eax + 0x2a], dh
inc eax
add byte [esi + 0x42], dl
xor eax, 0x2a263621
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
or al, byte [eax]
or dword [eax + eax], eax
add byte [eax], al
add byte [eax], al
add byte [esi + edx], ch
inc eax
add ah, bl
sbb dword [eax], eax
add al, 0xf8
xor byte [ecx], al
add bh, bh
invalid
push ebx
push esi
push edi
push ebp
cld
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x4118c7
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x4118be
cmp edi, 0x6a4abc5b
mov ebp, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x4118b6
call 0x411901
or eax, 0x776c6873
popal
jo 0x411951
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [ebx], dl
push ebx
dec edi
inc esi
push esp
push edi
inc ecx
push edx
inc ebp
pop esp
dec ebp
imul esp, dword [ebx + 0x72], 0x666f736f
je 0x411901
mov edi, 0xec0e4e8e
call fcn.00411a57
mov edx, dword [esp]
inc edx
push edx
call eax
push ebp
mov ebp, eax
mov edi, 0x2de87c46
call fcn.00411a57
pop ebp
call fcn.00411a49
mov edx, dword [esp]
inc edx
xor ebx, ebx
push ebx
push ebx
push ebx
push edx
call eax
test eax, eax
jne 0x41194e
mov edi, 0xca2bd06b
call fcn.00411a57
call fcn.00411958
xor ebx, ebx
push ebx
push ebx
push ebp
push ecx
push ebx
push ebx
call eax
pop eax
pop ebp
pop edi
pop esi
pop ebx
jmp 0x401220
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x44863e6a
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7992189a
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x405ce8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405cff
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405d34
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405d30
cmp edi, eax
jae 0x405d34
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405d22
cmp edi, eax
jb 0x405d38
xor eax, eax
jmp 0x405d42
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405f39
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x405fc7
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x405f70
cmp dword [ebp - 8], 2
jne 0x405fc6
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405bb2
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00405aa9
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x405fae
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x405fbe
push eax
call fcn.0048b5b5
pop ecx
mov edx, esi
call fcn.00405a65
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x406016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4a6eed
call fcn.004a5308
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00405bf2
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406061
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040596d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x406042
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x406042
lea ecx, [ebp - 0x10]
call fcn.00428329
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x406098
xor esi, esi
jmp 0x406045
push eax
call fcn.00406016
test eax, eax
pop ecx
je 0x406094
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x406042
call edi
cmp eax, ebx
jne 0x406094
jmp 0x406042
Function at 0x4082fe
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4a8103
call fcn.004a5308
sub esp, 0x2f4
push ebx
push esi
push edi
xor esi, esi
push 0xd2
lea eax, [ebp - 0xee]
push esi
push eax
mov word [ebp - 0xf0], si
call fcn.0048ad10
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x408349
xor eax, eax
jmp 0x40840d
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2fe]
push esi
push eax
sar edi, 2
mov word [ebp - 0x300], si
call fcn.0048ad10
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.004089e6
test edi, edi
jle 0x40840a
mov dword [ebp - 0x10], edi
and word [ebx + 4], 0
push 0x104
lea eax, [ebp - 0x300]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x408402
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00405bf2
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.0040898b
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040596d
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00405bf2
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.0040898b
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040596d
add ebx, 8
dec dword [ebp - 0x10]
jne 0x40838f
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x408444
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x4084c5
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x4084c5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.GetModuleFileNameExW
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.GetProcessImageFileNameW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x4084c0
cmp dword [esi + 4], ebx
je 0x4084c0
cmp dword [esi + 8], ebx
je 0x4084c0
cmp dword [esi + 0xc], ebx
je 0x4084c0
cmp eax, ebx
je 0x4084c0
xor eax, eax
inc eax
jmp 0x4084c2
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret
Function at 0x4085f4
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4a6f44
call fcn.004a5308
sub esp, 0x224
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x22e]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x230], si
call fcn.0048ad10
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040626b
push 0x4b6514
push eax
mov dword [ebp - 4], esi
call fcn.004054f3
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
inc bl
call fcn.0040596d
test bl, bl
je 0x4087ca
mov ebx, str.___
push ebx
call fcn.0048b5b5
mov esi, str.SystemRoot_
push esi
mov dword [ebp - 0x1c], eax
call fcn.0048b5b5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.0040626b
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.004054f3
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.0040596d
test bl, bl
je 0x4086e3
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.0040621b
mov dword [ebp - 4], 2
call fcn.00404ed3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x408799
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.0040626b
push esi
push eax
mov dword [ebp - 4], 3
call fcn.004054f3
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.0040596d
test bl, bl
je 0x4087a1
push 0x104
lea eax, [ebp - 0x230]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
inc ecx
mov eax, edi
call fcn.0040621b
mov esi, eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00405bf2
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004062a7
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.00404ed3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040596d
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040596d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.0040596d
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x4087b4
mov esi, edi
call fcn.00405bb2
jmp 0x4087d1
cmp ecx, 1
jge 0x4087c3
push 0x80070057
call fcn.00405a91
cmp word [eax + 2], 0x3a
jne 0x4087ab
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4087e3
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40880d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret