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

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

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

Function at 0x401004
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x402070
call fcn.00401284
xor edi, edi
push edi
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40103f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40103f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401057
cmp eax, 0x20b
je 0x401044
mov dword [ebp - 0x1c], edi
jmp 0x40106b
cmp dword [ecx + 0x84], 0xe
jbe 0x40103f
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x401065
cmp dword [ecx + 0x74], 0xe
jbe 0x40103f
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
Function at 0x1003e21
Capabilities:
Parse pe header

Disassembly:
push 0x70
push 0x1001390
call fcn.0100400c
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1003e5e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003e5e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1003e76
cmp eax, 0x20b
je 0x1003e63
mov dword [ebp - 0x1c], ebx
jmp 0x1003e8a
cmp dword [ecx + 0x84], 0xe
jbe 0x1003e5e
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1003e84
cmp dword [ecx + 0x74], 0xe
jbe 0x1003e5e
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1005b8c], 0xffffffff
or dword [0x1005b90], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1005178]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1005174]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1005b94], eax
call fcn.01004006
cmp dword [0x1005138], ebx
jne 0x1003ee5
push fcn.01004006
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call 0x1003ff4
push 0x10011c4
push 0x10011c0
call 0x1003fee
mov eax, dword [0x1005170]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100516c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x10011bc
push 0x10011b8
call 0x1003fee
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x1003f7b
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1003f4f
cmp al, 0x22
jne 0x1003f41
cmp byte [esi], 0x22
jne 0x1003f58
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1003f62
cmp al, 0x20
jbe 0x1003f54
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x1003f86
movzx eax, word [ebp - 0x48]
jmp 0x1003f89
cmp byte [esi], 0x20
jbe 0x1003f58
inc esi
mov dword [ebp - 0x34], esi
jmp 0x1003f7b
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1003fa6
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1003fdb
and al, 8
mul dword [esp + 0x14]
add ebx, eax
mov eax, dword [esp + 8]
invalid
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40277b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40dae8]
jne 0x402785
repz ret
jmp fcn.00401fbc

Function at 0x40278a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004043fd
and dword [ebp - 4], 0
cmp dword [0x40e6dc], 0
mov ebx, eax
jne 0x40283b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4028ec
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4028ec
push eax
call fcn.00403396
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e6dc], eax
call esi
push eax
call fcn.00403396
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e6e0], eax
call esi
push eax
call fcn.00403396
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e6e4], eax
call esi
push eax
call fcn.00403396
pop ecx
mov dword [0x40e6ec], eax
test eax, eax
je 0x40283b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403396
pop ecx
mov dword [0x40e6e8], eax
mov eax, dword [0x40e6e8]
cmp eax, ebx
je 0x402893
cmp dword [0x40e6ec], ebx
je 0x402893
push eax
call fcn.00402e14
push dword [0x40e6ec]
mov esi, eax
call fcn.00402e14
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x402893
test edi, edi
je 0x402893
call esi
test eax, eax
je 0x40288a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40288a
test byte [ebp - 0xc], 1
jne 0x402893
or dword [ebp + 0x10], 0x200000
jmp 0x4028cc
mov eax, dword [0x40e6e0]
cmp eax, ebx
je 0x4028cc
push eax
call fcn.00402e14
pop ecx
test eax, eax
je 0x4028cc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4028cc
mov eax, dword [0x40e6e4]
cmp eax, ebx
je 0x4028cc
push eax
call fcn.00402e14
pop ecx
test eax, eax
je 0x4028cc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e6dc]
call fcn.00402e14
pop ecx
test eax, eax
je 0x4028ec
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4028ee
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d520
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x41d542
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41d549
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41d538
mov eax, 1
add ebx, ebx
jne 0x41d55b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41d550
jne 0x41d56c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d550
xor ecx, ecx
sub eax, 3
jb 0x41d580
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41d5f2
mov ebp, eax
add ebx, ebx
jne 0x41d58b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41d598
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41d5bc
inc ecx
add ebx, ebx
jne 0x41d5a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41d59d
jne 0x41d5b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d59d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41d5dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41d5cd
jmp 0x41d53e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41d5dc
add edi, ecx
jmp 0x41d53e
pop esi
mov edi, esi
mov ecx, 0xa76
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41d5fa
cmp byte [edi], 7
jne 0x41d5fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41d5ff
lea edi, [esi + 0x1b000]
mov eax, dword [edi]
or eax, eax
je 0x41d66e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1dd60]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1de00]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41d62c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1de04]
or eax, eax
je 0x41d668
mov dword [ebx], eax
add ebx, 4
jmp 0x41d649
call dword [esi + 0x1de08]
popal
jmp 0x41215c
Function at 0x401e50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [str.V_we], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.tascraft
push str.bamed
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401e98
xor eax, eax
jmp 0x401eb3
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4025f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0xb8], eax
push 0x4040a4
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401000
add esp, 4
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401e50
add esp, 8
test eax, eax
jne 0x402638
xor eax, eax
jmp 0x402696
push 0
push 0
push 0
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40268a
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x402688
lea edx, [ebp - 0xb0]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x402638
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp - 0xa8]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x79312faf
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x48c35dff
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4026b0
Capabilities:
Get disk information

Disassembly:
mov ecx, dword [0x463e18]
cmp ecx, 0xffffffff
push esi
mov esi, dword [0x464e30]
jne 0x4026ef
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, 3
lea ecx, [ecx]
mov edx, 1
shl edx, cl
test eax, edx
je 0x4026e6
add ecx, 1
cmp ecx, 0x1a
jl 0x4026d0
or ecx, 0xffffffff
cmp ecx, 0xffffffff
jne 0x4026ef
or eax, ecx
pop esi
ret
add ecx, 0xffffffff
push ecx
push esi
mov eax, 1
mov byte [0x464e39], 1
call fcn.00406b40
add esp, 8
pop esi
ret

Function at 0x402710
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x446df8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push esi
mov eax, dword [0x45cefc]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x8c], 0
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4027b6
mov dword [esp + 0x84], 0xffffffff
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x80
ret
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov word [esp + 0x5c], 0
mov dword [esp + 0x58], 0x101
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40280f
xor ecx, ecx
lea eax, [esp + 0x8c]
call fcn.00401fd0
mov esi, dword [esp + 0x8c]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402845
mov dword [esp + 0x84], 0xffffffff
lea eax, [esi - 0x10]
jmp 0x402787
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov dword [esp + 0x84], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402877
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x80
ret
Function at 0x402890
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov ecx, dword [0x471a10]
push ebx
push ebp
push esi
push edi
push 0x455898
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x471a10]
mov edi, eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 0
mov ebp, eax
mov eax, dword [esp + 0x2c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4028ec
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4028e4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x402a80
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x14
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
xor edx, edx
push edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
lea edx, [esp + 4]
push edx
mov edx, dword [eax + 4]
push edx
push eax
push 0xc
lea eax, [esp + 0x18]
push eax
push 0x2d1400
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004231f4
add esp, 0x14
ret

Function at 0x402c10
Capabilities:
Get disk information

Disassembly:
push esi
push edi
mov edi, eax
mov eax, dword [0x463e18]
test eax, eax
jle 0x402c21
mov esi, eax
jmp 0x402c46
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, 3
lea esp, [esp]
mov edx, 1
shl edx, cl
test eax, edx
je 0x402c89
add ecx, 1
cmp ecx, 0x1a
jl 0x402c30
or esi, 0xffffffff
mov ecx, dword [0x471d64]
mov eax, 1
sub eax, dword [ecx - 4]
or eax, dword [ecx - 8]
jge 0x402c6b
xor ecx, ecx
mov eax, 0x471d64
call fcn.00401fd0
mov ecx, dword [0x471d64]
call fcn.00406c90
add esi, 0x60
push esi
push 0x455754
call fcn.004022b0
add esp, 8
call fcn.00401d20
pop edi
pop esi
ret
mov esi, ecx
jmp 0x402c46
Function at 0x402c90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0x408], eax
push ebp
push edi
push 0x400
lea eax, [esp + 0x14]
push 0
push eax
mov edi, ecx
mov dword [esp + 0x18], 0x400
call fcn.00422ac0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push str.SYSTEMCurrentControlSetServicesUSBSTOREnum
push SysReAllocStringLen
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402cf8
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.004231f4
add esp, 0x40c
ret
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x420]
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402d4d
cmp dword [esp + 0x418], 4
mov ebp, 1
jne 0x402d40
movzx eax, byte [esp + 0x10]
push eax
push 0x45575c
call fcn.004022b0
add esp, 8
jmp 0x402d4d
push ebx
lea edx, [esp + 0x14]
mov ebx, edi
call fcn.00405630
pop ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x410]
pop edi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.004231f4
add esp, 0x40c
ret
Function at 0x403000
Capabilities:
Access peb ldr_data
Get disk size
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x45cefc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, 3
lea ecx, [esp + 0x10]
mov edx, 0x471d64
call fcn.00401d80
mov esi, eax
mov dword [esp + 0x30], 0
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
jge 0x403066
xor ecx, ecx
mov eax, esi
call fcn.00401fd0
mov esi, dword [esi]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov edx, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov esi, ebx
sub esi, dword [esp + 0x14]
sbb edi, dword [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
push 0
push 0x400
push ecx
push ebx
call fcn.00445770
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
fild qword [esp + 0x1c]
fld qword [0x456348]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld st(0)
call fcn.00423c40
mov ecx, eax
mov dword [esp + 0x10], ecx
fisub dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld dword [0x456360]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
mov eax, ecx
je 0x403115
lea eax, [ecx + 1]
mov edx, dword [ebp + 8]
push 0
push 0x400
push edi
push esi
mov dword [edx], eax
call fcn.00445770
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
fild qword [esp + 0x1c]
fmul st(2)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld st(0)
call fcn.00423c40
mov ecx, eax
mov dword [esp + 0x10], ecx
fisub dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 5
mov eax, ecx
jnp 0x403165
lea eax, [ecx + 1]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x18]
push 0
push 0x400
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.00445770
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
fild qword [esp + 0x1c]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld st(0)
call fcn.00423c40
mov ecx, eax
mov dword [esp + 0x10], ecx
fisub dword [esp + 0x10]
fstp dword [esp + 0x10]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x4031d2
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 1]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405a70
Capabilities:
Terminate process

Disassembly:
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [esp + 4]
push eax
push str.____hs___
push 0x474260
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [0x471ab4]
add esp, 0xc
push 0x10
push ecx
push 0x474260
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call fcn.00424821
int3