joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000fd26
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x1000fd9b
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x1000fd52
cmp dword [esi + 0x40], edi
jae 0x1000fd52
push eax
call fcn.10013879
pop ecx
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x3c], ebx
jne 0x1000fd67
lea eax, [edi + edi]
push eax
call fcn.100138d3
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x3c]
call fcn.10011dd0
add esp, 0xc
test edi, edi
je 0x1000fd98
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
lea eax, [esi + 0x30]
push eax
call fcn.1000fa35
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x1000fd7a
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1000fdca
mov eax, dword [esi + 0x24]
lea ebx, [eax + edi]
cmp ebx, dword [esi + 0x28]
jb 0x1000fdb6
mov dword [esi + 0x14], 0x30000
jmp 0x1000fdec
push edi
push edx
add eax, ecx
push eax
call fcn.10011dd0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
jmp 0x1000fdee
mov eax, dword [esi + 4]
test eax, eax
je 0x1000fde5
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x1000fdee
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1000fffa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x78]
push edi
test ecx, ecx
je 0x1001004a
mov eax, dword [esi + 0x80]
mov edi, dword [esi + 0x7c]
cmp eax, edi
jae 0x10010086
sub edi, eax
cmp edi, dword [ebp + 0xc]
jbe 0x1001001f
mov edi, dword [ebp + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.10011dd0
add dword [esi + 0x80], edi
add dword [esi + 0x68], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x6c]
call fcn.1000f8ff
add esp, 0x18
mov dword [esi + 0x6c], eax
mov eax, edi
jmp 0x10010088
mov eax, dword [esi + 0x70]
test eax, eax
je 0x1001007f
push 0
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x10010086
mov edi, dword [ebp + 0xc]
add dword [esi + 0x68], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x6c]
call fcn.1000f8ff
add esp, 0xc
jmp 0x10010043
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x100107b9
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 7
pop ecx
lea eax, [edi - 1]
cmp ecx, eax
sbb al, al
inc al
push str.bad_pack_level
push eax
push esi
call fcn.1000e574
xor ebx, ebx
add esp, 0xc
mov dword [esi + 0x6af78], ebx
cmp dword [esi + 0x6af70], ebx
jne 0x10010804
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push ebx
push eax
mov dword [esi + 0x6af6c], ebx
call fcn.10011d50
mov eax, edi
movzx ecx, word [eax*8 + 0x100257aa]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax*8 + 0x100257a8]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax*8 + 0x100257ac]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax*8 + 0x100257ae]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp edi, 2
jg 0x10010867
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x10010873
cmp edi, 8
jl 0x10010873
mov eax, dword [ebp + 0x10]
or word [eax], 2
push 0x10000
lea edi, [esi + 0x1af70]
push edi
push esi
mov dword [esi + 0x6af84], ebx
mov dword [esi + 0x6af74], ebx
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, ebx
je 0x100108da
cmp eax, 0xffffffff
je 0x100108da
mov dword [esi + 0x6af8c], ebx
cmp eax, 0x106
jae 0x100108b5
push esi
call fcn.1000f00d
pop ecx
mov dword [esi + 0x6af7c], ebx
xor eax, eax
movzx ecx, byte [edi + eax]
shl ebx, 5
xor ebx, ecx
and ebx, 0x7fff
inc eax
mov dword [esi + 0x6af7c], ebx
cmp eax, 2
jb 0x100108bd
jmp 0x100108ea
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10010f16
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x1001112e
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x10010f90
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x10010fd3
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x10010fd3
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x10010fba
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
push esi
call fcn.1000ee46
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
pop ecx
cmp ebx, eax
jbe 0x10010fd3
mov ebx, eax
cmp ebx, 3
jb 0x100110a8
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.1000e955
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x10011065
cmp eax, 3
jb 0x10011065
dec ebx
inc dword [esi + 0x6af84]
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [esi + ecx + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
dec ebx
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x10011013
jmp 0x100110cb
add dword [esi + 0x6af84], ebx
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af70]
mov dword [esi + 0x6af7c], eax
movzx ecx, byte [ecx + esi + 0x1af71]
shl eax, 5
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
xor ecx, eax
and ecx, edi
push 1
push esi
xor ebx, ebx
mov dword [esi + 0x6af7c], ecx
call fcn.1000e574
add esp, 0xc
jmp 0x100110d1
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.1000e955
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [ebp + 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp + 8], 0
je 0x1001110d
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x100110ea
lea ecx, [eax + esi + 0x1af70]
jmp 0x100110ec
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.10010d6a
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x10011120
push esi
call fcn.1000f00d
pop ecx
cmp dword [esi + 0x6af90], 0
jne 0x10010f40
pop edi
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x10011141
lea ecx, [eax + esi + 0x1af70]
jmp 0x10011143
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.10010d6a
add esp, 0x10
pop esi
pop ebx
leave
ret
Function at 0x1001386a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002b060]
jne 0x10013874
repz ret
jmp fcn.10016fd6

Function at 0x1001f15e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002b060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1001abeb
and dword [ebp - 0x14], 0
cmp dword [0x10032430], 0
mov dword [ebp - 0x18], eax
jne 0x1001f211
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001f2b9
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001f2b9
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10032430], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10032434], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10032438], eax
call edi
push eax
call esi
mov dword [0x10032440], eax
test eax, eax
je 0x1001f211
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1003243c], eax
mov eax, dword [0x1003243c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x1001f26a
cmp dword [0x10032440], ecx
je 0x1001f26a
push eax
call esi
push dword [0x10032440]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001f26a
test ebx, ebx
je 0x1001f26a
call edi
test eax, eax
je 0x1001f261
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001f261
test byte [ebp - 8], 1
jne 0x1001f26a
or dword [ebp + 0x10], 0x200000
jmp 0x1001f29d
mov eax, dword [0x10032434]
cmp eax, dword [ebp - 0x18]
je 0x1001f29d
push eax
call esi
test eax, eax
je 0x1001f29d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001f29d
mov eax, dword [0x10032438]
cmp eax, dword [ebp - 0x18]
je 0x1001f29d
push eax
call esi
test eax, eax
je 0x1001f29d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10032430]
call esi
test eax, eax
je 0x1001f2b9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1001f2bb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001386a
leave
ret
Function at 0x4010c0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ecx, ecx
mov al, 1
push edi
lea ebx, [ebx]
movzx edx, al
mov byte [ebp + edx - 0x104], cl
mov dl, al
and dl, 0x80
mov byte [ebp + ecx - 0x204], al
inc ecx
neg dl
sbb dl, dl
mov bl, al
and dl, 0x1b
add bl, bl
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x4010e0
mov al, 1
mov ecx, 0x46f380
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
and dl, 0x1b
add al, al
xor al, dl
cmp ecx, 0x46f3a8
jl 0x401115
mov dword [0x46e780], 0x63
mov dword [0x47194c], 0
mov edx, 1
jmp 0x401160
movzx eax, byte [ebp + edx - 0x104]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
movzx eax, al
mov dword [edx*4 + 0x46e780], eax
mov dword [eax*4 + 0x4717c0], edx
inc edx
cmp edx, 0x100
jl 0x401160
xor ecx, ecx
mov dl, byte [ecx + 0x46e780]
mov al, dl
and al, 0x80
neg al
sbb al, al
and al, 0x1b
mov bl, dl
add bl, bl
xor al, bl
movzx esi, al
movzx edx, dl
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx + 0x4713c0], eax
ror eax, 8
mov dword [ecx + 0x470fc0], eax
ror eax, 8
mov dword [ecx + 0x470bc0], eax
ror eax, 8
mov dword [ecx + 0x4707c0], eax
mov al, byte [ecx + 0x4717c0]
test al, al
je 0x40126f
movzx edx, al
movzx esi, byte [ebp + edx - 0x104]
movzx eax, byte [ebp - 0xf9]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [ebp + edx - 0x204]
mov dword [ebp - 0x208], eax
movzx eax, byte [ebp - 0xf7]
add eax, esi
cdq
idiv edi
movzx eax, byte [ebp - 0xfb]
add eax, esi
movzx ebx, byte [ebp + edx - 0x204]
cdq
idiv edi
movzx eax, byte [ebp - 0xf6]
add eax, esi
mov esi, 0xff
movzx edi, byte [ebp + edx - 0x204]
cdq
idiv esi
movzx eax, byte [ebp + edx - 0x204]
mov edx, dword [ebp - 0x208]
jmp 0x401277
xor edx, edx
xor ebx, ebx
xor edi, edi
xor eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, edx
mov dword [ecx + 0x4703c0], eax
ror eax, 8
mov dword [ecx + 0x46ffc0], eax
ror eax, 8
mov dword [ecx + 0x46ef80], eax
ror eax, 8
mov dword [ecx + 0x46eb80], eax
add ecx, 4
cmp ecx, 0x400
jl 0x4011a2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call 0x4113cb
mov esp, ebp
pop ebp
ret
Function at 0x4219a3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x4219b2
pop dword [ebp - 0x1c]
mov eax, 0x4219b2
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3ebed
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xae433a01
sub ecx, 0xae42ef18
mov edx, eax
mov ebx, 0xa1717bb4
add ebx, 0x5ed1d84c
add ebx, dword [ebp - 0x1c]
mov esi, 0x39d8700
sub esi, 0xb50983ae
sub dword [ebp - 0x18], 0x72199566
mov edi, dword [ebx]
add dword [ebp - 8], esi
sub edi, esi
xor dword [ebp - 0x18], 0x8b20c222
mov dword [edx], edi
sub dword [ebp - 0x18], 0x42e15529
add edx, 4
add ebx, 0x254cf703
add ebx, 0xdab30901
loop 0x421a07
add eax, 0x11e77
xor ebx, ebx
add ebx, eax
add eax, 0xe40f709c
add eax, 0x1bf08f69
mov ecx, 0xf2843a4d
add ecx, 0xdbbc5b3
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4030be
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and word [ebp - 0x44], 0
push 0x20
lea eax, [ebp - 0x44]
push eax
push str.LC_ALL
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp word [ebp - 0x44], 0
jne 0x4030f4
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xb
push 0x800
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
cmp word [ebp - 0x44], 0
lea eax, [ebp - 0x44]
jne 0x403103
mov eax, 0x494c20
push eax
mov ecx, 0x4acbf4
call fcn.00440487
push dword [0x4acbf4]
call fcn.00436854
cmp eax, 1
pop ecx
jle 0x403125
mov word [0x4b0010], ax
leave
ret

Function at 0x40322e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetLastInputInfo]
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], ebx
call edi
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4acb94]
test ecx, ecx
jle 0x403261
mov dword [0x4acb94], eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov dword [0x4acb94], eax
jmp 0x403299
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ebx
call edi
call esi
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jb 0x403291
sub eax, dword [0x4acb94]
cmp eax, dword [ebp + 8]
jae 0x4032a1
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [0x4ab290], bl
jg 0x403271
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4acb94]
pop esi
test ecx, ecx
jle 0x4032b6
mov dword [0x4acb94], eax
xor eax, eax
cmp byte [0x4ab290], bl
pop edi
setg al
pop ebx
leave
ret

Function at 0x40348b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xf
xor eax, eax
cmp byte [ebp + 0x10], bl
pop ecx
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], ebx
rep stosd dword es:[edi], eax
je 0x4034c1
or dword [ebp - 0x28], 1
mov word [ebp - 0x24], bx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x403500
push esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
cmp byte [ebp + 0xc], bl
je 0x4034fa
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x10]
call esi
pop esi
pop edi
pop ebx
leave
ret

Function at 0x403504
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push 0x3ff
lea eax, [ebp - 0x400]
push eax
push str.SHOWEWFMSG
mov byte [ebp - 0x400], 0
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
cmp byte [ebp - 0x400], 0x31
jne 0x403546
push 0
push 0x494c74
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
leave
ret
Function at 0x403548
Capabilities:
Terminate process

Disassembly:
cmp byte [0x4ab290], 2
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x14
pop esi
je 0x40355f
push esi
call edi
cmp dword [0x4acba0], 0
je 0x40357a
push 0x1e
pop esi
jmp 0x40357a
cmp dword [0x4acb98], 0
je 0x40357d
push 0xa
call edi
dec esi
jns 0x40356d
mov eax, dword [0x4acb98]
test eax, eax
pop edi
pop esi
je 0x40359b
push 0
push eax
mov dword [0x4acb98], 0
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov byte [0x4ab290], 0xff
ret

Function at 0x4035a3
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp + 0xc]
mov esi, 0x8000004
push 0x64
push ebx
push esi
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov edi, eax
cmp edi, ebx
mov byte [ebp - 1], 1
je 0x4035e4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4035f5
mov byte [ebp - 1], bl
jmp 0x4035f5
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x403631
push ebx
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push edi
mov dword [0x4acba8], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x4acba8]
cmp eax, ebx
je 0x403631
cmp byte [ebp - 1], bl
je 0x40362c
push 0x64
push ebx
push eax
call fcn.0047fd70
mov eax, dword [0x4acba8]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40387e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push 0x169
lea ecx, [ebp - 4]
call fcn.00435d80
mov ebx, dword [ebp - 4]
push 0x104
push dword [ebp + 0xc]
add ebx, 0xc8
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
lea eax, [ebp - 8]
push eax
xor esi, esi
push ebx
mov dword [ebp - 8], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x40393c
push edi
push eax
push 2
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edi, eax
push edi
push dword [ebp - 0x10]
push dword [ebp - 8]
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x494cb0
push edi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov di, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, di
push eax
movzx eax, dx
push eax
movzx eax, cx
push eax
push 0x494c98
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
pop edi
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
mov dword [esi], eax
call fcn.0043092f
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403fc0
Capabilities:
Enumerate disk volumes
Get disk information via ioctl

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xad0
push esi
push 0x103
lea eax, [ebp - 0x3ac]
xor esi, esi
push eax
mov word [ebp - 0x3ac], si
mov dword [ebp + 0x60], 2
call dword [sym.imp.KERNEL32.DLL_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [ebp + 0x64], eax
je 0x4041ad
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_SetLastError]
push edi
lea eax, [ebp - 0x3ac]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push esi
mov word [ebp + eax*2 - 0x3ae], si
call ebx
push esi
push 0x80
push 3
push esi
push 7
push 0x80000000
lea eax, [ebp - 0x3ac]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x68], eax
je 0x404179
xor eax, eax
mov dword [ebp - 0x6cc], esi
mov ecx, 0xc7
lea edi, [ebp - 0x6c8]
rep stosd dword es:[edi], eax
lea edi, [ebp + 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
call ebx
or dword [ebp + 0x58], 0xffffffff
push esi
lea eax, [ebp - 0x6cc]
push eax
push 0xc
lea eax, [ebp + 0x54]
push eax
push esi
push esi
push 0x2d1080
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov edi, 0x90
push edi
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.0047fd70
or dword [ebp - 0x24], 0xffffffff
add esp, 0xc
push esi
lea eax, [ebp - 0x6cc]
push eax
push edi
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
push 0x70048
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
cmp dword [ebp + 0x68], esi
je 0x4040cf
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x30]
lea eax, [ebp - 0x1a4]
push dword [ebp - 0x34]
push eax
call fcn.004752d0
push dword [ebp - 0x28]
lea eax, [ebp - 0x12c]
push dword [ebp - 0x2c]
push eax
call fcn.004752d0
add esp, 0x18
cmp dword [ebp - 0x3c], 1
jne 0x40410f
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00433cd3
jmp 0x404126
movzx eax, byte [ebp - 0x1c]
push eax
lea eax, [ebp - 0xb4]
push 0x494e3c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0xb4]
push eax
push dword [ebp + 0x54]
lea eax, [ebp - 0x3ac]
push dword [ebp + 0x5c]
push dword [ebp + 0x58]
push eax
lea eax, [ebp - 0xa64]
push str._r_n_s__d__d__d__s__s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x74]
add esp, 0x24
lea eax, [ebp + eax*2 - 0xa64]
push eax
call fcn.00435dd0
mov dword [ebp + 0x60], esi
push 0x103
lea eax, [ebp - 0x3ac]
push eax
push dword [ebp + 0x64]
mov word [ebp - 0x3ac], si
call dword [sym.imp.KERNEL32.DLL_FindNextVolumeW]
test eax, eax
jne 0x404002
cmp dword [ebp + 0x64], esi
pop edi
pop ebx
je 0x4041ad
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_FindVolumeClose]
pop esi
add ebp, 0x6c
leave
ret
Function at 0x404932
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
push str.PECMD:MSGSVR:HWND
xor ebx, ebx
push ebx
call fcn.004035a3
pop ecx
pop ecx
call fcn.004030be
mov byte [0x4acb8a], 1
call fcn.0042c298
call fcn.00432326
push ebx
push 0x24
pop edi
push edi
lea eax, [ebp - 0x12c]
push eax
push ebx
mov byte [0x4acb89], 3
mov byte [ebp - 0x12c], bl
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.System32Kernel32.dll
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x494f2c
push eax
mov dword [ebp - 4], eax
call esi
push 7
pop ecx
mov dword [ebp - 0x28], edi
push str.GetNativeSystemInfo
push dword [ebp - 4]
mov dword [0x4acb54], eax
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call esi
cmp eax, ebx
je 0x4049dc
lea ecx, [ebp - 0x28]
push ecx
call eax
cmp word [ebp - 0x28], bx
je 0x404a19
push str.Wow64RevertWow64FsRedirection
push dword [ebp - 4]
call esi
push str.Wow64DisableWow64FsRedirection
push dword [ebp - 4]
mov dword [0x4acb84], eax
call esi
cmp dword [0x4acb84], ebx
mov dword [0x4acb80], eax
jne 0x404a0e
mov dword [0x4acb80], ebx
mov bl, 1
mov word [0x4acb6c], 0x100
movsx eax, bl
push str.bX64
push eax
push 0x4acf10
mov byte [0x4acb89], bl
call fcn.004380d1
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret