joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300aa992
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], edi
call fcn.30005534
test al, al
je 0x300aa9c6
mov esi, 0x80070057
jmp 0x300aab0f
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x300aa9bc
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x300aa9d8
mov dword [eax], edi
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.3000bfae
mov esi, eax
cmp esi, edi
jl 0x300aab0f
push dword [ebp - 8]
call fcn.300aa6f7
push dword [ebp - 8]
call dword [sym.imp.MSO.dll_Ordinal_3060]
cmp dword [0x3011fbc0], edi
mov ebx, eax
jne 0x300aaa58
push 0xf0000000
push 1
push edi
push edi
push 0x3011fbc0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x300aaa3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x300aab09
and eax, 0xffff
or eax, 0x80070000
jmp 0x300aab09
push edi
push fcn.300aa6db
push 0x3011bdd4
call fcn.30004f0f
mov esi, eax
cmp esi, edi
jl 0x300aab0f
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x8004
push dword [0x3011fbc0]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x300aaa21
push edi
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x300aaa21
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push 2
push dword [ebp - 4]
call esi
test eax, eax
je 0x300aaa21
push dword [ebp - 0xc]
call fcn.30002bc4
mov ebx, eax
cmp ebx, edi
pop ecx
mov dword [ebp - 0x10], ebx
jne 0x300aaab5
mov esi, 0x8007000e
jmp 0x300aab0f
push dword [ebp - 0xc]
push edi
push ebx
call fcn.3000235e
add esp, 0xc
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push 2
push dword [ebp - 4]
call esi
test eax, eax
je 0x300aaa21
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x300aaae2
mov ecx, dword [ebx]
mov dword [eax], ecx
push dword [ebx + 4]
lea eax, [ebp - 0x14]
push dword [ebx]
push 0x300aab4c
push eax
call fcn.3007143e
mov esi, eax
add esp, 0x10
cmp esi, edi
jl 0x300aab0f
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.30011dbe
mov esi, eax
cmp esi, edi
jge 0x300aab15
push edi
call fcn.300aa6db
cmp dword [ebp - 4], edi
je 0x300aab23
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x10], edi
je 0x300aab31
push dword [ebp - 0x10]
call fcn.300093df
pop ecx
lea eax, [ebp - 8]
push eax
call fcn.300060d5
lea eax, [ebp - 0x14]
push eax
call fcn.30011e23
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x300ab5ac
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x3003fd00]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x260], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x250]
push ebx
push eax
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x254], ebx
call fcn.3000235e
add esp, 0xc
push esi
mov dword [ebp - 0x258], ebx
call fcn.30005534
test al, al
je 0x300ab60c
mov esi, 0x80070057
jmp 0x300ab7e5
cmp edi, ebx
je 0x300ab602
mov dword [edi], ebx
mov ebx, dword [ebp + 0xc]
shr ebx, 0x10
cmp bx, 3
mov edi, 0x3011fbc4
jne 0x300ab631
push edi
call fcn.30005534
test al, al
je 0x300ab74c
and dword [ebp - 0x25c], 0
push esi
call dword [sym.imp.MSO.dll_Ordinal_3061]
cmp word [esi + eax*2 - 2], 0x5c
jne 0x300ab66f
push 0x300ab808
push esi
lea ecx, [ebp - 0x25c]
call fcn.3009d1f2
mov esi, eax
test esi, esi
jge 0x300ab68d
lea eax, [ebp - 0x25c]
push eax
call fcn.300060d5
jmp 0x300ab7e5
push 0x301190cc
push 0x300ab808
push 0x3003cf3c
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.3009d038
jmp 0x300ab658
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x260], eax
je 0x300ab740
test byte [ebp - 0x254], 0x10
je 0x300ab6e2
push 0x30065c54
lea eax, [ebp - 0x228]
push eax
call fcn.30004d7a
test eax, eax
jne 0x300ab6e2
push 0x30065c4c
lea eax, [ebp - 0x228]
push eax
call fcn.30004d7a
test eax, eax
je 0x300ab6fb
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x300ab740
jmp 0x300ab6af
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.30011d17
mov esi, eax
test esi, esi
jge 0x300ab725
lea eax, [ebp - 0x25c]
push eax
call fcn.300060d5
jmp 0x300ab7d0
cmp bx, 3
jne 0x300ab740
lea eax, [ebp - 0x228]
push eax
push 0x11
push edi
call fcn.300aa7d5
mov esi, eax
test esi, esi
jl 0x300ab714
lea eax, [ebp - 0x25c]
push eax
call fcn.300060d5
push dword [ebp - 0x258]
call fcn.30005534
test al, al
je 0x300ab7bd
lea eax, [ebp - 0x258]
push eax
call fcn.300ab018
test eax, eax
jge 0x300ab796
push 0
push 0x30336467
call dword [sym.imp.MSO.dll_Ordinal_6848]
lea eax, [ebp - 0x258]
push eax
call fcn.30011e23
lea eax, [ebp - 0x258]
push eax
call fcn.300aacbc
mov esi, eax
test esi, esi
jl 0x300ab7d0
cmp bx, 3
jne 0x300ab7bd
push dword [ebp - 0x258]
call dword [sym.imp.MSO.dll_Ordinal_3061]
push eax
push dword [ebp - 0x258]
push 0x11
push edi
call fcn.3000dd6b
mov esi, eax
test esi, esi
jl 0x300ab7d0
push dword [ebp - 0x264]
lea ecx, [ebp - 0x258]
call fcn.30011dbe
mov esi, eax
cmp dword [ebp - 0x260], 0xffffffff
je 0x300ab7e5
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x258]
push eax
call fcn.30011e23
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.300023ac
leave
ret 0xc
Function at 0x300ad3e6
Capabilities:
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov ebx, 0x2000
xor esi, esi
mov dword [ebp - 0xc], edi
call fcn.30005534
test al, al
je 0x300ad414
mov edi, 0x80070057
jmp 0x300ad569
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x300ad40a
mov dword [eax], edi
mov dword [ebp - 4], ebx
call fcn.300058b3
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, edi
jne 0x300ad43e
mov edi, 0x8007000e
jmp 0x300ad569
lea eax, [ebp - 4]
push eax
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
call edi
test eax, eax
mov dword [ebp - 8], eax
jne 0x300ad4b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x300ad4a2
push ebx
push 0
push esi
call fcn.3000235e
add esp, 0xc
call fcn.300058b3
push dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
jne 0x300ad489
mov edi, 0x8007000e
jmp 0x300ad55a
mov ebx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push esi
push 0
call edi
test eax, eax
mov dword [ebp - 8], eax
jne 0x300ad4b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x300ad4b0
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x300ad55a
push dword [esi + 8]
push dword [ebp + 8]
call fcn.30005632
test eax, eax
jne 0x300ad53d
mov edi, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
push ebx
push 0
push esi
mov dword [ebp - 4], ebx
call fcn.3000235e
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
call edi
test eax, eax
jne 0x300ad52e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x300ad4a2
push ebx
push 0
push esi
call fcn.3000235e
add esp, 0xc
call fcn.300058b3
push dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
je 0x300ad47f
mov ebx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
call edi
test eax, eax
je 0x300ad49c
push dword [esi + 8]
push dword [ebp + 8]
call fcn.30005632
test eax, eax
je 0x300ad4cc
push dword [esi + 4]
lea eax, [ebp - 0xc]
push eax
call fcn.30011d17
mov edi, eax
test edi, edi
jl 0x300ad55a
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
call fcn.30011dbe
cmp dword [ebp - 8], 0
je 0x300ad569
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
call fcn.300058b3
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0xc]
push eax
call fcn.30011e23
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x300ad92f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x3003fd00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x470], eax
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x494]
mov dword [ebp - 0x474], eax
call fcn.300b4e6b
and dword [ebp - 0x468], 0
and word [ebp - 0x210], 0
push 0x300adb04
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSO.dll_Ordinal_1959]
cmp word [ebp - 0x210], 0
jne 0x300ad99a
mov edi, 0x8000ffff
jmp 0x300adacc
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x494]
call fcn.300b5141
mov edi, eax
test edi, edi
jl 0x300adacc
push esi
mov esi, 0x301190cc
push esi
push esi
push 0x30065c58
push dword [ebp - 0x470]
lea eax, [ebp - 0x468]
push eax
call fcn.3009d038
mov edi, eax
test edi, edi
jl 0x300adacb
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x46c], eax
jne 0x300ada07
mov edi, 0x80070057
jmp 0x300adacb
test byte [ebp - 0x460], 0x10
jne 0x300ada7f
and dword [ebp - 0x464], 0
push esi
push esi
push 0x3003cf3c
push dword [ebp - 0x470]
lea eax, [ebp - 0x464]
push eax
call fcn.3009d038
mov edi, eax
test edi, edi
jl 0x300adaf4
push 0xffffffffffffffff
lea eax, [ebp - 0x434]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x464]
push eax
call fcn.3001bc62
mov edi, eax
test edi, edi
jl 0x300adaf4
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x464]
lea ecx, [ebp - 0x494]
call fcn.300b53cb
lea eax, [ebp - 0x464]
push eax
call fcn.300060d5
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x300ada07
lea ecx, [ebp - 0x494]
call fcn.300b4ea3
mov edi, eax
test edi, edi
jl 0x300adabf
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x474]
call fcn.30005426
mov edi, eax
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
lea eax, [ebp - 0x468]
push eax
call fcn.300060d5
lea ecx, [ebp - 0x494]
call fcn.300b4e79
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.300023ac
leave
ret 8
lea eax, [ebp - 0x464]
push eax
call fcn.300060d5
jmp 0x300adabf

Function at 0x300ba201
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
lea ebx, [ecx + 4]
test ebx, ebx
push esi
push edi
je 0x300ba23f
mov edi, dword [ebp + 0xc]
lea esi, [edi + 4]
test esi, esi
je 0x300ba23f
call fcn.300ba195
test al, al
je 0x300ba23f
mov ecx, edi
call fcn.300ba195
test al, al
je 0x300ba23f
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
jmp 0x300ba241
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x300ba87e
Capabilities:
Get user security identifier

Disassembly:
push 0xe0
mov eax, 0x300efcd8
call fcn.30005a2f
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe4], eax
call fcn.300ba429
test ebx, ebx
je 0x300baa08
and dword [ebp - 0xd8], 0
and dword [ebp - 4], 0
mov esi, 0x80
push esi
lea ecx, [ebp - 0xd8]
call fcn.300ba4ea
mov ecx, dword [ebp - 0xd8]
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0xe0]
push eax
push ecx
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [ebp - 0xe4]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xdc], 0x44
mov dword [ebp - 0xe0], esi
call ebx
test eax, eax
jne 0x300ba985
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x300ba9e8
cmp dword [ebp - 0xdc], 0x44
jbe 0x300ba932
push 0x80004005
call fcn.300ba0cb
cmp dword [ebp - 0xe0], esi
jbe 0x300ba957
push dword [ebp - 0xe0]
lea ecx, [ebp - 0xd8]
call fcn.300ba47e
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xe8], eax
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0xe0]
push eax
push dword [ebp - 0xe8]
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xec]
push dword [ebp - 0xe4]
call ebx
test eax, eax
je 0x300ba9e8
lea eax, [ebp - 0x54]
push eax
lea eax, [edi + 4]
push eax
push dword [ebp - 0xdc]
mov byte [edi + 0x48], 1
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x300ba9e8
push dword [ebp - 0xe8]
lea ecx, [edi + 0x54]
call fcn.300ba869
push dword [ebp - 0xec]
lea ecx, [edi + 0x50]
call fcn.300ba869
push dword [ebp - 0xe4]
lea ecx, [edi + 0x5c]
call fcn.300ba869
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x300ba9e4
lea ecx, [ebp - 0xd8]
call fcn.300ba13d
mov al, 1
jmp 0x300baa0a
mov ecx, edi
call fcn.300ba429
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x300baa08
lea ecx, [ebp - 0xd8]
call fcn.300ba13d
xor al, al
call fcn.30005a65
ret 8

Function at 0x300e67d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x300e6840
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x300e6830
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x300e6838
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x300e6830
mov al, 1
jmp 0x300e6832
xor al, al
leave
ret 8
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x79ae2e32
nop
nop
nop
nop
test eax, eax
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x823449b
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x401031
Capabilities:
Create process on windows

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403220], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x403224], eax
push 0xa
push dword [0x403224]
push 0
push dword [0x403220]
call 0x401031
push eax
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov eax, dword [ebp + 0x10]
inc eax
mov dl, byte [eax]
cmp dl, 0x20
jne 0x401044
jmp 0x401046
jmp 0x40103a
inc eax
push eax
push 0x403123
call fcn.00401110
push 0xfa
push 0x403029
push 0xffffffffffffffff
push 0x403123
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar
mov dword [0x403228], 0x44
mov dword [0x403254], 1
mov word [0x403258], 0
push 0x40326c
push 0x403228
push 0
push 0
push 0
push 0x403029
push 0
push 0
push 0x403025
push 0
push str.mima1
call sub.advapi32.dll_CreateProcessWithLogonW
push 0xffffffffffffffff
push dword [0x40326c]
call sub.kernel32.dll_WaitForSingleObject
push dword [0x40326c]
call sub.kernel32.dll_CloseHandle
push dword [0x403270]
call sub.kernel32.dll_CloseHandle
push 0
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebp - 0x44]
leave
ret 0x10
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2800
call fcn.00403190
mov al, byte [0x405838]
push ebx
push esi
push edi
mov byte [esp + 0xc], al
mov ecx, 0x9ff
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x2810]
lea ecx, [esp + 0x2814]
stosw word es:[edi], ax
stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x10]
push edx
push eax
call sub.MSVCRT.dll_vsprintf
mov edi, 0x405010
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [0x482864]
lea ecx, [esp + 0xc]
push ecx
push 0x3f1
push edx
call fcn.004010a0
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x2800
ret
Function at 0x401dc0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
mov al, 2
push esi
push edi
xor ebx, ebx
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x120]
push ebx
stosb byte es:[edi], al
xor eax, eax
push 0x80
mov dword [esp + 0x28], eax
push 3
mov dword [esp + 0x30], eax
push ebx
push 3
mov dword [esp + 0x3c], eax
push 0xc0000000
push ecx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x2e], 0x32
mov byte [esp + 0x2f], 0x30
mov byte [esp + 0x30], 3
mov byte [esp + 0x31], 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401e52
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
lea edx, [esp + 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommState]
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], 0x2580
push eax
push esi
mov byte [esp + 0x52], 8
mov byte [esp + 0x53], bl
mov byte [esp + 0x54], bl
call dword [sym.imp.KERNEL32.dll_SetCommState]
lea ecx, [esp + 0x1c]
mov eax, 5
push ecx
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call ebp
lea edx, [esp + 0x34]
push ebx
push edx
lea eax, [esp + 0x18]
push 6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401edd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
xor edi, edi
lea ecx, [esp + 0x18]
push ebx
push ecx
lea edx, [esp + 0x5c]
push 0xc8
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x401f0c
push 0xa
call ebp
inc edi
cmp edi, 3
jb 0x401edf
mov edi, dword [esp + 0x30]
jmp 0x401f23
lea eax, [esp + 0x54]
push eax
push str.Device_Info:__s
call fcn.00401000
add esp, 8
mov edi, 1
cmp dword [esp + 0x18], ebx
jne 0x401f36
push str.Fail_to_get_DeviceInfo_
call fcn.00401000
add esp, 4
lea ecx, [esp + 0x38]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommState]
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], 0xe100
push edx
push esi
mov byte [esp + 0x52], 8
mov byte [esp + 0x53], bl
mov byte [esp + 0x54], bl
call dword [sym.imp.KERNEL32.dll_SetCommState]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0xad2370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xad238e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xafb074
push ecx
mov edi, eax
call fcn.00ae6198
mov esi, eax
add esp, 8
test esi, esi
jne 0xad23cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00ae602e
push esi
call fcn.00ae5fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xad5850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xad58ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xb00720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xad58ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00ae61e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xad58ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xb00720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xad592a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00ae7082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xad5957
mov word [eax], si
add eax, 2
push eax
call fcn.00ae7030
add esp, 4
jmp 0xad5959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xad58ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xad58b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xad5ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret