joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11dfc25
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100928f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
cmp dword [ebp + 8], 0
je 0x11dfc4f
cmp dword [ebp + 0xc], 0
jne 0x11dfc49
cmp dword [ebp + 0x10], 0
je 0x11dfc4f
cmp dword [ebp + 0x14], 0
jne 0x11dfc53
xor al, al
jmp 0x11dfcb7
mov byte [ebp - 5], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
push 0x33
call fcn.011dfc6a
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.012226b9
mov esp, ebp
pop ebp
ret

Function at 0x11e00b5
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100928f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
cmp dword [ebp + 8], 0
je 0x11e00df
cmp dword [ebp + 0xc], 0
jne 0x11e00d9
cmp dword [ebp + 0x10], 0
je 0x11e00df
cmp dword [ebp + 0x14], 0
jne 0x11e00e1
jmp 0x11e0134
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
push 0x33
call 0x11e00f4
add dword [esp], 5
retf
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.012226b9
mov esp, ebp
pop ebp
ret

Function at 0x11e0195
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100928f0]
xor eax, ebp
mov dword [ebp - 4], eax
xorpd xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
push 0x33
call 0x11e01b5
add dword [esp], 5
retf

Function at 0x11e7c15
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x11e7c5e
mov al, byte [esi]
push eax
call fcn.011f5005
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x11e7c3c
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x11f0ca5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x71e], 0
je 0x11f0d28
cmp dword [edi + 0x1b0], 0
je 0x11f0cf2
push esi
push 1
push edi
call fcn.011e3b85
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1b0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.011e3b85
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x11f0d28
push dword [edi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x10081650
push 2
push eax
call fcn.0122332a
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0122332a
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x11f33a5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.011d6245
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.0122f3d7
Function at 0x11f8e15
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x11f8e33
cmp dword [esi + 0x78], 0
je 0x11f8e33
push 2
push 3
push esi
call fcn.011f5625
add esp, 0xc
push dword [ebp + 0xc]
call fcn.011f8815
add esp, 4
test esi, esi
je 0x11f8e53
cmp dword [esi + 0x78], 0
je 0x11f8e53
push 3
push esi
call fcn.011f5665
add esp, 8
pop esi
pop ebp
ret
Function at 0x12049d5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.01227fb9
add esp, 0x18
test eax, eax
je 0x12049f7
cmp eax, 0xffffffff
jne 0x12049f9
xor eax, eax
pop ebp
ret

Function at 0x120a6b5
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 0x51eb851f
imul ecx
push ebx
sar edx, 5
push esi
mov esi, dword [ebp + 8]
mov eax, edx
shr eax, 0x1f
push edi
add eax, edx
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 2
je 0x120a6f2
push 0x100861ec
push esi
call fcn.011f0d35
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x120a709
push ecx
push 0x10086208
push esi
call fcn.011f0df5
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x120a722
push ebx
push esi
call fcn.0120a375
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x120a737
push esi
call fcn.012093a5
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x120a74c
push esi
call fcn.0120a355
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x120a75c
push esi
call fcn.0120a595
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1220e85
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x100928cc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1220eb2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x1220ef9
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x1220eff
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x1220f5f
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
lea ebx, [ebx]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
dec dword [ebp + 0x10]
jne 0x1220f25
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x1220f8c
nop
mov eax, dword [esi + 4]
push 1
push 0x10089165
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x10089164
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x1220f65
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x129ace1
Capabilities:
Encode data using xor

Disassembly:
and byte [eax], 0x59
sub byte [esi], dh
dec esp
sahf
into
adc al, al
inc esp
cld
lahf
mov eax, 0xe84b7018
mov ecx, dword [esi + 0x54990562]
mov dword [ebp - 0x1047e341], esp
jecxz 0x129acd1
popfd
push ds
pop edx
sub byte [edx - 0xa396914], ah
ficomp word [edi]
mov dh, 0x95
sbb byte [edx - 0x3de40a0e], bl
insd dword es:[edi], dx
adc al, 0x5f
std
push edi
test dword [edx - 0x5c5a4280], eax
pop ebx
cmpsb byte [esi], byte es:[edi]
cdq
fcmovnu st(0), st(4)
ja 0x129ac52
sar esp, 1
test al, 0xa5
enter 0xffffffffffffb1ec, 0xffffffffffffffc9
add bl, byte [esi + eax*2 - 0x4ea24d65]
std
mov byte [esi - 0x22044e88], dl
movsd dword es:[edi], dword [esi]
jns 0x129ac9c
mov edx, 0x7ab2efa5
in al, dx
test ebx, ebx
push eax
pop edx
pop edx
rep lodsb al, byte [esi]
push es
cmp al, 0x5a
mov eax, 0x22bf7160
int 0x72
out dx, eax
insd dword es:[edi], dx
jge 0x129ac33
sub byte [eax], ch
adc byte [ebx], dh
in eax, dx
sbb dword [eax + 0x5a], eax
hlt
inc esp
test cl, ah
xchg esp, eax
mov bh, 0x5c
jns 0x129ac6b
lodsd eax, dword [esi]
nop
xor ecx, dword [ebx + esi*2 - 0x67]
jb 0x129ad10
invalid
pop ecx
pop ecx
test al, 0x53
push esp
or byte [edi + ecx*2], bh
mov dword [0xd9225a5f], eax
cmp al, 0xeb
cmp dword [edi - 0xe], edx
aas
loopne 0x129ace5
jg 0x129ac9e
leave
sub eax, 0x3759159a
salc
aad 0xb0
movsd dword es:[edi], dword [esi]
push ebp
insb byte es:[edi], dx
xchg ebp, eax
push esp
mov ch, 0x2e
xor eax, 0xc22b5a34
push es
xor byte [edx + edx*8 - 0x62], dh
lahf
add eax, dword [ecx]
pop esi
rcr byte [esi + 0x5e01039f], cl
invalid
Function at 0x4024b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x70]
test ebx, ebx
jne 0x402530
mov dword [esp], 0xffffffff
mov ebp, 0x2b
mov ebx, 0x10
xor esi, esi
call fcn.004036b0
mov edi, dword [esi*4 + 0x411060]
test edi, edi
je 0x402581
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x4025c8
lea esi, [eax + 0x1b]
and esi, 0xfffffff0
mov dword [esi - 0xc], edi
mov dword [esi - 8], eax
mov dword [esi - 4], ebx
mov dword [esp], 0xffffffff
call fcn.004036f0
add esp, 0x5c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
add ebx, 0xf
mov dword [esp], 0xffffffff
and ebx, 0xfffffff0
lea ebp, [ebx + 0x1b]
call fcn.004036b0
cmp ebx, 0x3ff
jbe 0x4025e8
mov esi, 1
cmp ebx, 0x1fff
jbe 0x4024d7
xor eax, eax
cmp ebx, 0xffff
seta al
mov esi, eax
add esi, 2
mov edi, dword [esi*4 + 0x411060]
test edi, edi
jne 0x4024e6
lea eax, [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
sub esp, 4
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0
mov dword [esp], 0
shl eax, 5
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_HeapCreate]
sub esp, 0xc
mov edi, eax
mov dword [esi*4 + 0x411060], eax
jmp 0x4024e6
mov dword [esp], 0xffffffff
mov dword [esp + 0x1c], eax
call fcn.004036f0
mov eax, dword [esp + 0x1c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
xor esi, esi
jmp 0x4024d7

Function at 0x403b40
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00409dd0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00409dd0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x403ba0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x411444]
test esi, esi
jle 0x403cc0
mov eax, dword [0x411448]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x403bd4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x403c57
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x403bc0
mov dword [esp], ebx
call fcn.00404310
mov edi, eax
test eax, eax
je 0x403ce7
mov eax, dword [0x411448]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00404450
mov edx, dword [0x411448]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x403cc7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x403c50
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x403c60
add dword [0x411444], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x411448]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x403c50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00403b40
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x403bde
mov eax, dword [0x411448]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00403b40
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00403b40
lea esi, [esi]
nop

Function at 0x404310
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x404335
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x404340
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x404335
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x404388
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40437e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40438a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x404370
xor eax, eax
pop ebx
pop esi
ret
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40d6d0
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x438
push ebx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push edi
call fcn.00401f80
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
jne 0x431a9d
mov eax, dword [0x4a7cfc]
test eax, eax
je 0x431ab6
mov byte [esp + 0xf], 0
mov esi, 0x4a8e80
cmp eax, 1
je 0x431aca
push 0x4a7cfc
lea ecx, [esp + 0x13]
mov eax, 0x4a7d14
call fcn.0040f3b0
test al, al
je 0x431aeb
mov dl, byte [0x4a8e80]
mov bl, byte [0x4a8e81]
push 0x4a7cf8
lea eax, [esp + 0x234]
push eax
push 0x104
push 0x4a7d14
mov byte [0x4a7d00], dl
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
mov ecx, dword [0x4a7cfc]
push ecx
push 0x4a7d14
call fcn.00401440
test eax, eax
jne 0x431aff
cmp bl, 1
je 0x431b23
call fcn.004101f0
call fcn.004103e0
cmp byte [0x4a7d00], 0
jne 0x40d7a8
mov esi, 0x4a84b8
call fcn.0040e1e0
push 1
mov ecx, 0x4a7f20
call fcn.00409560
cmp byte [0x4a7d00], 0
jne 0x40d7c7
mov ecx, 0x4a84b8
call fcn.00401000
mov ebx, 0x4a8e80
call fcn.0040ebc0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
pop edi
pop esi
pop ebx
add esp, 0x438
ret
push 0x10
push 0x4846d6
push str.This_is_a_compiled_AutoIt_script._AV_researchers_please_email_avsupport_autoitscript.com_for_support.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40d7dc
lea ecx, [esp + 0x20]
mov dword [0x49729c], 0xffffffff
push ecx
jmp 0x40d7d6
mov edx, dword [0x4a7d04]
push 0xffffffffffffffff
push edx
push 1
xor bl, bl
call fcn.00403e90
mov al, byte [0x497290]
mov byte [0x4a8e83], al
jmp 0x40d769
lea ecx, [esp + 0x20]
mov dword [0x49729c], 1
push ecx
jmp 0x40d7d6
mov ebx, 0x4a8e80
call fcn.0040ebc0
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov dword [0x49729c], 1
jmp 0x40d7dc
call fcn.0043604b
test al, al
jne 0x40d78b
push 0x104
lea eax, [esp + 0x234]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
cmp byte [esp + 0xf], 0
je 0x431ba4
mov edi, 0x484740
lea esi, [esp + 0x10]
call fcn.00401b70
mov edi, 0x4a7d14
mov eax, esi
call fcn.0040d330
mov edi, 0x484740
mov eax, esi
call fcn.0040d330
mov edx, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x23c]
push eax
push 0x484744
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, esi
call fcn.00402620
jmp 0x40d7c7
push 1
lea ecx, [esp + 0x24]
push ecx
push edi
lea edx, [esp + 0x23c]
push edx
push 0x484744
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40d7c7
Function at 0x452126
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x27c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x290]
lea esi, [esp + 0x10]
mov dword [esp + 0x20], ecx
call fcn.00401b70
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
inc dword [eax]
mov dword [esp + 0x34], eax
mov edi, 0x48a088
mov eax, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call fcn.0040d330
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
push ecx
mov bl, 1
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
je 0x4522be
mov ebp, dword [esp + 0x29c]
mov edx, dword [esp + 0x20]
push edx
call fcn.00443009
cmp eax, 1
je 0x4522bc
cmp eax, 0xb
jne 0x4521ba
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x452198
lea eax, [esp + 0x64]
push 0x48724c
push eax
call fcn.004133e4
add esp, 8
test eax, eax
je 0x4522a2
lea ecx, [esp + 0x64]
push 0x48a090
push ecx
call fcn.004133e4
add esp, 8
test eax, eax
je 0x4522a2
lea edx, [esp + 0x28]
push edx
lea esi, [esp + 0x14]
call fcn.0040df50
lea edi, [esp + 0x64]
mov eax, esi
call fcn.0040d330
test byte [esp + 0x38], 0x10
je 0x45226f
cmp byte [esp + 0x2a0], 0
je 0x452220
add dword [ebp], 1
adc dword [ebp + 4], 0
cmp byte [esp + 0x2a4], 0
je 0x4522a2
mov edi, 0x484e10
lea eax, [esp + 0x10]
call fcn.0040d330
mov eax, dword [esp + 0x2a4]
mov ecx, dword [esp + 0x2a0]
mov edx, dword [esp + 0x298]
push eax
mov eax, dword [esp + 0x298]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push edx
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00452126
mov bl, al
test bl, bl
je 0x4522be
jmp 0x4522a2
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
xor edx, edx
xor esi, esi
or edx, eax
mov eax, dword [esp + 0x294]
or ecx, esi
add dword [eax], edx
adc dword [eax + 4], ecx
cmp byte [esp + 0x2a0], 0
je 0x4522a2
mov eax, dword [esp + 0x298]
add dword [eax], 1
adc dword [eax + 4], esi
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x452198
jmp 0x4522be
xor bl, bl
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [esp + 0x28]
call fcn.00402620
lea ecx, [esp + 0x10]
call fcn.00402620
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x27c
ret 0x18
Function at 0x457f49
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2020
call fcn.00425210
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0040c060
lea ecx, [esp + 0x20]
call fcn.0040c060
mov eax, dword [esp + 0x2034]
push eax
xor ebp, ebp
call fcn.00453081
mov esi, eax
movzx eax, word [esi]
xor bl, bl
test ax, ax
je 0x458074
nop
inc ebp
cmp ax, 0x25
jne 0x458049
cmp word [esi + ebp*2], ax
jne 0x457fad
push 0x25
lea eax, [esp + 0x14]
mov bl, 1
call fcn.00403470
inc ebp
jmp 0x458053
push 0x4848e8
lea eax, [esp + 0x24]
call fcn.004021e0
movzx eax, word [esi + ebp*2]
cmp ax, 0x25
je 0x457fe7
lea esp, [esp]
test ax, ax
je 0x457fe7
movzx eax, ax
push eax
lea eax, [esp + 0x24]
call fcn.00403470
movzx eax, word [esi + ebp*2 + 2]
inc ebp
cmp ax, 0x25
jne 0x457fc9
cmp word [esi + ebp*2], 0
je 0x458093
mov eax, dword [esp + 0x20]
push 0xfff
lea edx, [esp + 0x34]
push edx
xor ecx, ecx
push eax
inc ebp
mov word [esp + 0x3c], cx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
lea eax, [esp + 0x10]
je 0x458024
lea edi, [esp + 0x30]
call fcn.0040d330
mov bl, 1
jmp 0x458053
mov edi, 0x48b7e0
mov bl, 1
call fcn.0040d330
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x14]
call fcn.0040c140
lea eax, [esp + 0x10]
call fcn.0040d330
jmp 0x458053
push eax
lea eax, [esp + 0x14]
call fcn.00403470
movzx eax, word [esi + ebp*2]
test ax, ax
jne 0x457f89
test bl, bl
je 0x458074
mov esi, dword [esp + 0x2034]
lea edi, [esp + 0x10]
call fcn.0040e640
lea ecx, [esp + 0x20]
call fcn.00402620
lea ecx, [esp + 0x10]
call fcn.00402620
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2020
ret 4
mov edi, 0x48b7e0
lea eax, [esp + 0x10]
call fcn.0040d330
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
call fcn.0040c140
jmp 0x458064
Function at 0x4580e1
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
sub esp, 0x264
push ebp
mov ebp, dword [esp + 0x278]
push esi
mov esi, dword [esp + 0x274]
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
call fcn.0040c060
lea ecx, [esp + 0x18]
call fcn.0040c060
lea ecx, [esp + 0x38]
call fcn.0040c060
push str.SOFTWAREClasses_
lea eax, [esp + 0x2c]
call fcn.004021e0
mov edi, dword [esp + 0x274]
lea eax, [esp + 0x28]
call fcn.0040d330
mov edi, str.CLSID
lea eax, [esp + 0x28]
call fcn.0040d330
push 0x4848e8
lea eax, [esp + 0x1c]
call fcn.004021e0
test esi, esi
je 0x458187
cmp word [esi], 0x5c
je 0x458187
cmp word [esi + 2], 0x5c
je 0x458187
push 0x48a9e4
lea eax, [esp + 0x1c]
call fcn.004021e0
mov edi, esi
lea eax, [esp + 0x18]
call fcn.0040d330
test ebp, ebp
je 0x4581e5
push 0x20
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.004131f0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea esi, [esp + 0x3c]
mov dword [esp + 0x50], 0
call fcn.0040df50
mov edi, str.IPC_
mov eax, esi
call fcn.0040d330
mov eax, dword [esp + 0x284]
mov edx, dword [esp + 0x38]
push 0
push ebp
push eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x6c], edx
call sub.MPR.dll_WNetAddConnection2W
mov esi, eax
test esi, esi
jne 0x458298
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x458298
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x458291
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x6c]
push edx
push 0
push 0
push 0
push eax
mov dword [esp + 0x28], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x45828a
mov eax, dword [esp + 0x10]
shr eax, 1
xor ecx, ecx
lea edi, [esp + 0x68]
mov dword [esp + 0x10], eax
mov word [esp + eax*2 + 0x68], cx
call fcn.0040fff0
mov edx, dword [esp + 0x27c]
mov edi, eax
push edx
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
mov esi, eax
call fcn.004137d3
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call ebp
lea ecx, [esp + 0x38]
call fcn.00402620
lea ecx, [esp + 0x18]
call fcn.00402620
lea ecx, [esp + 0x28]
call fcn.00402620
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x264
ret