joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5430c0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push edi
push esi
sub esp, 0x34
mov esi, 0xffffffff
call fcn.00542eb0
test al, al
je 0x54318a
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], eax
mov dword [esp], 0
movups xmmword [esp + 4], xmm0
lea edi, [esp + 4]
push ecx
push 0x59b9a4
push 0x10
push edi
call fcn.00428580
add esp, 0x10
mov eax, esp
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov ecx, dword [esp]
test eax, eax
jne 0x543160
test ecx, ecx
je 0x543160
push dword [ecx + 0xc]
push dword [ecx + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov eax, dword [esp]
cmp esi, 0xffffffff
je 0x543172
push dword [eax + 0x10]
push dword [eax + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x543175
push dword [esp]
jmp 0x54316a
mov esi, 0xffffffff
test ecx, ecx
je 0x54318a
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x54318a
push eax
jmp 0x54317f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esp]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov esi, 0xffffffff
mov eax, esi
add esp, 0x34
pop esi
pop edi
ret
Function at 0x554dc8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x5b1278
call fcn.00554be2
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, 0xbab1f0ed
jne 0x554df4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
test eax, eax
jg 0x554e36
mov dword [esp], 2
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call eax
mov dword [esp + 0x10], 0x28
mov dword [esp + 0xc], str._buildbot_src_android_mingw_toolchain_mingw_mingw_w64_v6.x_mingw_w64_libraries_winpthreads_src_rwlock.c
mov dword [esp + 8], str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
mov dword [esp + 4], str.Assertion_failed:___s___file__s__line__d_n
mov dword [esp], eax
call fcn.0049ddc0
mov dword [esp], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [eax + 4]
sub edx, 1
mov dword [eax + 4], edx
mov dword [esp], 0x5b1278
call fcn.00554c40
mov eax, dword [ebp + 0xc]
leave
ret
Function at 0x55f6d0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edx, dword [ecx + 0x50]
mov eax, 0xffffffff
test edx, edx
je 0x55f6ec
cmp edx, 0xfffffffb
jne 0x55f887
xor eax, eax
cmp dword [ecx + 0x34], 0
jne 0x55f887
mov esi, dword [ecx + 0x5c]
xor edi, edi
mov eax, 0
test esi, esi
je 0x55f834
mov ebx, dword [ecx + 0x20]
mov ebp, dword [ecx + 0x58]
cmp esi, 8
mov dword [esp + 8], ecx
jb 0x55f7aa
mov eax, ebx
sub eax, ebp
cmp eax, 0x20
jb 0x55f7aa
mov eax, esi
xor edx, edx
cmp esi, 0x20
jb 0x55f768
mov ecx, eax
mov edx, eax
and edx, 0xffffffe0
xor eax, eax
nop dword [eax]
movups xmm0, xmmword [ebp + eax]
movups xmm1, xmmword [ebp + eax + 0x10]
movups xmmword [ebx + eax], xmm0
movups xmmword [ebx + eax + 0x10], xmm1
add eax, 0x20
cmp edx, eax
jne 0x55f740
cmp ecx, edx
je 0x55f82d
mov eax, ecx
test al, 0x18
je 0x55f7a1
mov ecx, eax
and ecx, 0xfffffff8
mov esi, eax
lea eax, [ebx + ecx]
mov dword [esp], ecx
add ecx, ebp
mov dword [esp + 4], esi
and esi, 7
nop
movsd xmm0, qword [ebp + edx]
movsd qword [ebx + edx], xmm0
add edx, 8
cmp dword [esp], edx
jne 0x55f780
mov edx, dword [esp]
cmp dword [esp + 4], edx
jne 0x55f7ae
jmp 0x55f82d
and eax, 0x1f
add ebp, edx
add ebx, edx
mov esi, eax
mov eax, ebx
mov ecx, ebp
lea ebp, [esi - 1]
mov ebx, esi
and ebx, 7
je 0x55f7d7
mov dword [esp], esi
xor esi, esi
nop dword [eax]
movzx edx, byte [ecx + esi]
mov byte [eax + esi], dl
inc esi
cmp ebx, esi
jne 0x55f7c0
add eax, esi
add ecx, esi
mov edx, dword [esp]
sub edx, esi
mov esi, edx
cmp ebp, 7
jb 0x55f82d
xor edx, edx
nop
movzx ebx, byte [ecx + edx]
mov byte [eax + edx], bl
movzx ebx, byte [ecx + edx + 1]
mov byte [eax + edx + 1], bl
movzx ebx, byte [ecx + edx + 2]
mov byte [eax + edx + 2], bl
movzx ebx, byte [ecx + edx + 3]
mov byte [eax + edx + 3], bl
movzx ebx, byte [ecx + edx + 4]
mov byte [eax + edx + 4], bl
movzx ebx, byte [ecx + edx + 5]
mov byte [eax + edx + 5], bl
movzx ebx, byte [ecx + edx + 6]
mov byte [eax + edx + 6], bl
movzx ebx, byte [ecx + edx + 7]
mov byte [eax + edx + 7], bl
add edx, 8
cmp esi, edx
jne 0x55f7e0
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x5c]
mov ebx, dword [ecx + 0x20]
add ebx, eax
mov ebp, dword [ecx + 0x18]
sub ebp, eax
nop
mov eax, ebp
sub eax, edi
cmp eax, 0x40000000
mov edx, 0x40000000
cmovae eax, edx
lea edx, [ebx + edi]
push eax
push edx
mov esi, ecx
push dword [ecx + 0x10]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
add esp, 0xc
test eax, eax
jle 0x55f871
add edi, eax
cmp edi, ebp
mov ecx, esi
jb 0x55f840
jmp 0x55f87c
js 0x55f88f
mov ecx, esi
mov dword [esi + 0x34], 1
add dword [ecx + 0x5c], edi
mov eax, dword [ecx + 0x20]
mov dword [ecx + 0x58], eax
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
add esp, 4
push eax
push 0xffffffffffffffff
push esi
call fcn.0052cb50
add esp, 0xc
mov eax, 0xffffffff
jmp 0x55f887
Function at 0x56ef90
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x180
mov esi, dword [esp + 0x194]
xorps xmm0, xmm0
movups xmmword [esp + 0x58], xmm0
movups xmmword [esp + 0x48], xmm0
movups xmmword [esp + 0x38], xmm0
movups xmmword [esp + 0x28], xmm0
lea ebx, [esp + 0x28]
push ebx
push 0x20
push dword [esp + 0x1a4]
call sym.fastboot.exe_SHA512
add esp, 0xc
and byte [esp + 0x28], 0xf8
movzx eax, byte [esp + 0x47]
and al, 0x3f
or al, 0x40
mov byte [esp + 0x47], al
xorps xmm0, xmm0
movups xmmword [esp + 0x170], xmm0
movups xmmword [esp + 0x160], xmm0
movups xmmword [esp + 0x150], xmm0
movups xmmword [esp + 0x140], xmm0
movups xmmword [esp + 0x130], xmm0
movups xmmword [esp + 0x120], xmm0
movups xmmword [esp + 0x110], xmm0
movups xmmword [esp + 0x100], xmm0
movups xmmword [esp + 0xf0], xmm0
movups xmmword [esp + 0xe0], xmm0
lea edi, [esp + 0xe0]
push 0x5a5a88
push ebx
push edi
call fcn.0056bb10
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [esp + 0xc8], xmm0
movups xmmword [esp + 0xb8], xmm0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xd8], 0
movups xmmword [esp + 0xa0], xmm0
movups xmmword [esp + 0x90], xmm0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb0], 0
movups xmmword [esp + 0x78], xmm0
movups xmmword [esp + 0x68], xmm0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
movsd xmm0, qword [esp + 0x150]
movsd qword [esp + 0x20], xmm0
movups xmm0, xmmword [esp + 0x130]
movups xmm1, xmmword [esp + 0x140]
movups xmmword [esp + 0x10], xmm1
movups xmmword [esp], xmm0
lea ebp, [esp + 0xb8]
mov edx, esp
mov ecx, ebp
call fcn.00575780
lea ebx, [esp + 0x90]
mov ecx, ebx
mov edx, edi
push ebp
call fcn.00575b10
add esp, 4
lea edx, [esp + 0x108]
lea edi, [esp + 0x68]
mov ecx, edi
push ebp
call fcn.00575b10
add esp, 4
mov ecx, esi
mov edx, edi
call fcn.0056a0a0
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
mov ecx, esp
mov edx, ebx
call fcn.0056a0a0
movzx eax, byte [esp]
shl al, 7
xor byte [esi + 0x1f], al
mov eax, dword [esp + 0x19c]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
mov eax, dword [esp + 0x198]
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax], xmm0
movups xmm0, xmmword [esi]
movups xmm1, xmmword [esi + 0x10]
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x30], xmm1
add esp, 0x180
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x574630
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x138
mov esi, dword [esp + 0x14c]
mov eax, dword [esp + 0x150]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [esp], xmm0
and byte [esp], 0xf8
movups xmmword [esp + 0x10], xmm1
movzx eax, byte [esp + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [esp + 0x1f], al
xorps xmm0, xmm0
movups xmmword [esp + 0x128], xmm0
movups xmmword [esp + 0x118], xmm0
movups xmmword [esp + 0x108], xmm0
movups xmmword [esp + 0xf8], xmm0
movups xmmword [esp + 0xe8], xmm0
movups xmmword [esp + 0xd8], xmm0
movups xmmword [esp + 0xc8], xmm0
movups xmmword [esp + 0xb8], xmm0
movups xmmword [esp + 0xa8], xmm0
movups xmmword [esp + 0x98], xmm0
mov eax, esp
lea ecx, [esp + 0x98]
push 0x5a5a88
push eax
push ecx
call fcn.0056bb10
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [esp + 0x30], xmm0
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x108]
mov edx, dword [esp + 0xe0]
lea edi, [edx + eax]
mov ecx, dword [esp + 0x10c]
mov ebx, dword [esp + 0xe4]
lea ebp, [ebx + ecx]
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], ebp
sub eax, edx
add eax, 0x7fffffe
sub ecx, ebx
add ecx, 0x3fffffe
movdqu xmm0, xmmword [esp + 0xe8]
movdqu xmm1, xmmword [esp + 0xc0]
movdqu xmm2, xmmword [esp + 0xd0]
movdqa xmm3, xmm1
paddd xmm3, xmm0
psubd xmm0, xmm1
paddd xmm0, xmmword [0x5a59d0]
movdqu xmmword [esp + 0x70], xmm3
movdqu xmmword [esp + 0x48], xmm0
movdqu xmm0, xmmword [esp + 0xf8]
movdqa xmm1, xmm2
paddd xmm1, xmm0
psubd xmm0, xmm2
paddd xmm0, xmmword [0x5a59e0]
movdqu xmmword [esp + 0x80], xmm1
movdqu xmmword [esp + 0x58], xmm0
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
lea edi, [esp + 0x20]
lea edx, [esp + 0x48]
mov ecx, edi
call fcn.00575780
lea edx, [esp + 0x70]
mov ecx, edi
push edi
call fcn.00575b10
add esp, 4
mov ecx, esi
mov edx, edi
call fcn.0056a0a0
add esp, 0x138
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4078cd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x6f25d290]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x4078d7
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x40791d
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x4078fc
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40793c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.00437450
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x4079cc
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x407982
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x407998
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x4079bf
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x407971
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
Function at 0x100a752
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x102416c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.01008ed2
cmp eax, esi
jne 0x100a7f3
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x100a7aa
lea eax, [ebp - 0x204]
push eax
call fcn.0100a752
cmp eax, esi
jne 0x100a7f2
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x208]
je 0x100a79a
call fcn.01008e5f
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.01008e5f
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.01019a47
leave
ret 4

Function at 0x100b011
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [edi + 0x88], eax
jne 0x100b035
xor al, al
jmp 0x100b04e
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x100aff9
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret
Function at 0x100bd47
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x100bd99
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100bd84
call esi
mov esi, eax
jmp 0x100be5f
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x100be5f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x100bdba
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x100bddf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100bdcd
call esi
jmp 0x100be54
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x100be56
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x100be1e
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0101a9d0
mov ecx, edi
mov edx, ecx
mov eax, esp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], eax
mov byte [eax + ebx], 0
mov edi, esp
test edi, edi
jne 0x100be26
xor eax, eax
jmp 0x100be48
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0101a9d0
mov eax, esp
push esi
push edi
push eax
call fcn.01008d96
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.0100b847
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x101b78f
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1025360]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x101b7d3
call esi
test eax, eax
je 0x101b7b8
mov dword [0x1025360], 1
jmp 0x101b7d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x101b7cf
mov dword [0x1025360], 2
jmp 0x101b7e1
xor eax, eax
jmp 0x101b837
cmp eax, 1
jne 0x101b7dc
call esi
jmp 0x101b837
cmp eax, 2
jne 0x101b7cf
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x101b834
lea eax, [edi + edi]
push eax
call fcn.0101a762
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x101b834
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x101b82b
mov eax, dword [ebp - 4]
jmp 0x101b836
push dword [ebp - 4]
call fcn.0101a77e
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x101ba82
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x10242d4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x101bae4
push 0x88
push 1
call fcn.0101e3b8
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x101badc
push esi
push dword [0x10242d4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x101badc
push esi
call fcn.0101ba65
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x101bae4
push 0x10
call fcn.01019b5f
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
ret
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 0x4ca251
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4c9fca
inc edi
sub eax, 0x8ff7ed8b
and edi, edi
call fcn.004ca291
inc eax
xor dword [ecx], ebx
and eax, edi
sub edi, 0x82fb7610
add ecx, 1
mov edi, 0x49c1e70c
dec edi
cmp ecx, esi
jne fcn.004ca251
or eax, edi
or edi, edi
sub edi, eax
ret
Function at 0x402dd0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402df8
pop edi
or eax, eax
pop esi
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esp + 0x10], 0xffffffff
jne 0x402e1a
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x402e20
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x402e89
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00402ad0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x402ec0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x402f52
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x402f44
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x402f3c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x402f05
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x403170
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
ret