joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b1c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x182d0
call fcn.00417260
mov eax, dword [0x42c010]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x4c6758
mov dword [ebp - 0x182d0], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x40b3bd
xor eax, eax
cmp ebx, 0x1388
setl al
test eax, eax
je 0x40b3bd
imul edi, ebx, 0x54
add edi, 0x45f370
mov dword [ebp - 0x182cc], edi
mov ecx, dword [edi + 4]
test ecx, ecx
js 0x40b3bd
xor eax, eax
cmp ecx, 0x1388
setl al
test eax, eax
je 0x40b3bd
cmp dword [edi + 8], 0
je 0x40b3bd
cmp dword [edi + 0x1c], 0xffffffff
je 0x40b3bd
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x182c4]
push esi
push dword [ebp - 0x182d0]
push eax
call fcn.0040f1d0
add esp, 0xc
cmp byte [ebp - 0x182c4], 0xc1
jne 0x40b280
push dword [ebp - 0x182c2]
lea edx, [esi - 3]
lea ecx, [ebp - 0x182c1]
jmp 0x40b28f
push dword [ebp - 0x182c1]
lea edx, [esi - 4]
lea ecx, [ebp - 0x182c0]
call fcn.0040c250
add esp, 4
cmp esi, 0x182b8
jle 0x40b2b5
push esi
push ebx
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.0040be00
add esp, 0x10
jmp 0x40b3bd
mov edi, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
test eax, eax
jle 0x40b324
mov ecx, dword [edi + 0x30598]
lea eax, [ecx + esi]
cmp eax, 0x182b8
jle 0x40b2e5
push eax
push ebx
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.0040be00
add esp, 0x10
jmp 0x40b3b2
push esi
lea eax, [ebp - 0x182c4]
push eax
lea eax, [edi + 0x182e0]
add eax, ecx
push eax
call fcn.0040f1d0
add esp, 0xc
add dword [edi + 0x30598], esi
push 0x4c6758
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret 0xc
push esi
lea ecx, [ebp - 0x182c4]
add eax, 0x24
push ecx
add eax, edi
push eax
call fcn.0040f1d0
add dword [edi + 0x20], esi
lea eax, [edi + 0x24]
mov ecx, dword [edi + 0x20]
add esp, 0xc
mov dword [edi + 0x18], eax
lea eax, [edi + 0x14]
mov dword [eax], ecx
lea ecx, [ebp - 0x182c8]
mov dword [edi + 0x182dc], 0
push 0
push edi
push 0
push ecx
push 1
push eax
mov eax, dword [ebp - 0x182cc]
mov dword [edi + 0x1c], 1
mov dword [ebp - 0x182c8], 0
push dword [eax + 0x1c]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x40b304
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x40b304
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.0040be00
add esp, 0xc
push ebx
mov ecx, 0x4c66e0
call fcn.0040b3e0
push 0x4c6758
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b490
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x78]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
js 0x40b569
xor eax, eax
cmp edi, 0x1388
setl al
test eax, eax
je 0x40b569
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40b561
mov eax, dword [ebp + 0x10]
add dword [eax + 0x182dc], ecx
add eax, 0x24
push eax
push edi
mov ecx, ebx
call fcn.0040af80
test al, al
je 0x40b561
mov edx, dword [ebp + 0x10]
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [edx + 0x182dc]
lea eax, [edx + 0x24]
add eax, ecx
mov dword [edx + 0x18], eax
add edx, 0x14
mov eax, 0x182b8
sub eax, ecx
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
push eax
mov dword [eax + 0x1c], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
imul eax, edi, 0x54
push 1
push edx
push dword [eax + 0x45f38c]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x40b569
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40b569
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__WSARecv___failed_with_error:__d
push 1
call fcn.0040be00
add esp, 0xc
push edi
mov ecx, ebx
call fcn.0040b3e0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b580
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0xc], ebx
lea esi, [ebx + 0x78]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
js 0x40b71c
xor eax, eax
cmp edi, 0x1388
setl al
test eax, eax
je 0x40b71c
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40b5c7
mov ecx, ebx
jmp 0x40b716
mov ebx, dword [ebp + 0x10]
imul ecx, edi, 0x54
add dword [ebx + 0x182dc], eax
mov eax, dword [ebx + 0x182dc]
mov edx, dword [ebx + 0x20]
add ecx, 0x45f370
mov dword [ebp + 0xc], ecx
cmp eax, edx
jl 0x40b6b4
mov eax, dword [ebx + 0x30598]
test eax, eax
jg 0x40b60e
push esi
mov dword [ebx + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [ebx + 0x24]
cmp eax, 0x182b8
jle 0x40b679
push 0x182b8
lea edi, [ebx + 0x182e0]
push edi
push esi
call fcn.0040f1d0
mov eax, dword [ebx + 0x30598]
mov dword [ebx + 0x18], esi
sub eax, 0x182b8
lea esi, [ebx + 0x30598]
mov dword [ebx + 0x14], 0x182b8
push eax
push esi
push edi
mov dword [ebx + 0x1c], 1
mov dword [ebx + 0x20], 0x182b8
mov dword [ebx + 0x182dc], 0
call fcn.0040c730
mov edi, dword [ebp + 8]
lea ecx, [ebx + 0x14]
add esp, 0x18
add dword [esi], 0xfffe7d48
mov esi, dword [ebp - 4]
jmp 0x40b6ce
push eax
lea eax, [ebx + 0x182e0]
push eax
push esi
call fcn.0040f1d0
mov eax, dword [ebx + 0x30598]
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x18], esi
add esp, 0xc
mov esi, dword [ebp - 4]
mov dword [ecx], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x182dc], 0
mov dword [ebx + 0x30598], 0
jmp 0x40b6c7
add eax, 0x24
lea ecx, [ebx + 0x14]
add eax, ebx
sub edx, dword [ebx + 0x182dc]
mov dword [ebx + 0x18], eax
mov dword [ecx], edx
mov dword [ebx + 0x1c], 1
push 0
push ebx
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov eax, dword [ebp + 0xc]
push 1
push ecx
push dword [eax + 0x1c]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x40b71c
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x3e5
je 0x40b71c
call ebx
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.0040be00
mov ecx, dword [ebp - 0xc]
add esp, 0xc
push edi
call fcn.0040b3e0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40bd80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x42c010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0040fee0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0040d918
add esp, 0x1c
lea eax, [ebp - 0x104]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
call edi
push eax
call esi
jmp dword [pe_dos_header]
Function at 0x40c1c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
movsx eax, bl
push esi
mov esi, ecx
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
test edx, edx
jle 0x40c240
cmp edx, 0x10
jb 0x40c22c
mov ecx, edx
push edi
and ecx, 0x8000000f
jns 0x40c1f9
dec ecx
or ecx, 0xfffffff0
inc ecx
movdqa xmm1, xmmword [0x429720]
mov edi, edx
sub edi, ecx
mov ecx, esi
jmp 0x40c210
movdqu xmm0, xmmword [ecx]
add eax, 0x10
lea ecx, [ecx + 0x10]
paddb xmm0, xmm2
pxor xmm0, xmm1
movdqu xmmword [ecx - 0x10], xmm0
cmp eax, edi
jl 0x40c210
pop edi
cmp eax, edx
jge 0x40c240
mov cl, byte [eax + esi]
add cl, bl
xor cl, 0xa0
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x40c230
pop esi
pop ebx
pop ebp
ret

Function at 0x40c250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
movsx eax, bl
push esi
mov esi, ecx
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
test edx, edx
jle 0x40c2d0
cmp edx, 0x10
jb 0x40c2bc
mov ecx, edx
push edi
and ecx, 0x8000000f
jns 0x40c289
dec ecx
or ecx, 0xfffffff0
inc ecx
movdqa xmm1, xmmword [0x429720]
mov edi, edx
sub edi, ecx
mov ecx, esi
jmp 0x40c2a0
movdqu xmm0, xmmword [ecx]
add eax, 0x10
lea ecx, [ecx + 0x10]
pxor xmm0, xmm1
psubb xmm0, xmm2
movdqu xmmword [ecx - 0x10], xmm0
cmp eax, edi
jl 0x40c2a0
pop edi
cmp eax, edx
jge 0x40c2d0
mov cl, byte [eax + esi]
xor cl, 0xa0
sub cl, bl
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x40c2c0
pop esi
pop ebx
pop ebp
ret
Function at 0x41c496
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004124ce
mov dword [ebp - 0x14], eax
cmp dword [0x45f228], esi
jne 0x41c589
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41c516
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41c669
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41c669
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c669
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x45f228], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x45f22c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45f230], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45f238], eax
test eax, eax
je 0x41c586
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45f234], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41c5ae
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41c5a1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41c5c3
push 4
pop eax
jmp 0x41c66b
cmp dword [ebp - 0x14], esi
je 0x41c5c3
push dword [0x45f228]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41c5a8
mov eax, dword [0x45f234]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41c621
cmp dword [0x45f238], edi
je 0x41c621
push eax
call ebx
push dword [0x45f238]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41c621
test eax, eax
je 0x41c621
call ecx
test eax, eax
je 0x41c616
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41c616
test byte [ebp - 8], 1
jne 0x41c621
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41c651
mov eax, dword [0x45f22c]
cmp eax, edi
je 0x41c64e
push eax
call ebx
test eax, eax
je 0x41c64e
call eax
mov esi, eax
test esi, esi
je 0x41c64e
mov eax, dword [0x45f230]
cmp eax, edi
je 0x41c64e
push eax
call ebx
test eax, eax
je 0x41c64e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x45f228]
call ebx
test eax, eax
je 0x41c669
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41c66b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret
Function at 0x59a4e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11e000]
push edi
jmp 0x59a4fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x59a501
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59a4f0
mov eax, 1
add ebx, ebx
jne 0x59a513
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x59a524
jne 0x59a543
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59a543
dec eax
add ebx, ebx
jne 0x59a530
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x59a508
add ebx, ebx
jne 0x59a53f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x59a595
xor ecx, ecx
sub eax, 3
jb 0x59a55b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x59a5ca
sar eax, 1
mov ebp, eax
jmp 0x59a566
add ebx, ebx
jne 0x59a566
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59a534
inc ecx
add ebx, ebx
jne 0x59a574
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59a534
add ebx, ebx
jne 0x59a581
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x59a576
jne 0x59a592
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x59a576
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x59a5b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x59a5a6
jmp 0x59a4f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x59a5b4
add edi, ecx
jmp 0x59a4f6
pop esi
mov edi, esi
mov ecx, 0x5fc9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x59a5d2
cmp byte [edi], 0x27
jne 0x59a5d2
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 al, bl
loop 0x59a5d7
lea edi, [esi + 0x197000]
mov eax, dword [edi]
or eax, eax
je 0x59a64f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19c474]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19c5f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x59a604
mov ecx, edi
jns 0x59a633
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19c5f8]
or eax, eax
je 0x59a649
mov dword [ebx], eax
add ebx, 4
jmp 0x59a621
call dword [esi + 0x19c5f4]
mov ebp, dword [esi + 0x19c5fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x59a683
sub esp, 0xffffff80
jmp 0x4c8be8
Function at 0x406315
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40ba88
cmp edx, dword [eax]
je 0x406337
add eax, 8
inc ecx
cmp eax, 0x40bb18
jl 0x406328
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40ba88]
jne 0x406465
mov eax, dword [0x40bfd4]
cmp eax, 1
je 0x40643f
test eax, eax
jne 0x406368
cmp dword [0x40b734], 1
je 0x40643f
cmp edx, 0xfc
je 0x406465
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40639f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4063e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409584
push edi
call fcn.004077e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037f0
lea eax, [ebp - 0xa0]
push 0x409564
push eax
call fcn.004037f0
push dword [esi + 0x40ba8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407756
add esp, 0x2c
pop edi
jmp 0x406465
lea eax, [ebp + 8]
lea esi, [esi + 0x40ba8c]
push 0
push eax
push dword [esi]
call fcn.004038d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..retplne
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x439197b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
mov eax, section..reloc
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5068306f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x10011019
Capabilities:
Terminate process

Disassembly:
jmp 0x10011ca0
jmp fcn.10012600
cmp ecx, dword [section..data]
jne 0x10011caa
repz ret
jmp 0x100110a5
Function at 0x403a70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x290
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x28c], eax
xor eax, eax
push 0x7e
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.00403bf0
xor edx, edx
push 0x1fe
push edx
lea eax, [esp + 0xa2]
push eax
mov word [esp + 0xa4], dx
call fcn.00403bf0
push str.SYSTEMCurrentControlSetServicesUSBSTOREnum
lea ecx, [esp + 0xa8]
push 0x100
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 4
call fcn.00403f73
push str.Count
lea edx, [esp + 0x34]
push 0x40
push edx
call fcn.00403f73
add esp, 0x30
lea eax, [esp + 4]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x98]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403b39
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 4]
push eax
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x28c]
mov eax, dword [esp]
xor ecx, esp
call fcn.00403be0
add esp, 0x290
ret

Function at 0x409de5
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.004071bb
and dword [ebp - 4], 0
cmp dword [0x41185c], 0
mov ebx, eax
jne 0x409e96
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409f47
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409f47
push eax
call fcn.00407149
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41185c], eax
call esi
push eax
call fcn.00407149
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x411860], eax
call esi
push eax
call fcn.00407149
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x411864], eax
call esi
push eax
call fcn.00407149
pop ecx
mov dword [0x41186c], eax
test eax, eax
je 0x409e96
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407149
pop ecx
mov dword [0x411868], eax
mov eax, dword [0x411868]
cmp eax, ebx
je 0x409eee
cmp dword [0x41186c], ebx
je 0x409eee
push eax
call fcn.004071c4
push dword [0x41186c]
mov esi, eax
call fcn.004071c4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409eee
test edi, edi
je 0x409eee
call esi
test eax, eax
je 0x409ee5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409ee5
test byte [ebp - 0xc], 1
jne 0x409eee
or dword [ebp + 0x10], 0x200000
jmp 0x409f27
mov eax, dword [0x411860]
cmp eax, ebx
je 0x409f27
push eax
call fcn.004071c4
pop ecx
test eax, eax
je 0x409f27
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409f27
mov eax, dword [0x411864]
cmp eax, ebx
je 0x409f27
push eax
call fcn.004071c4
pop ecx
test eax, eax
je 0x409f27
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41185c]
call fcn.004071c4
pop ecx
test eax, eax
je 0x409f47
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409f49
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret