joyce8/EMBER2024-capa huggingface dataset:
Function at 0x504b10
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x504bb3
test eax, eax
jbe 0x504bb3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x504bb3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x504b5e
xor esi, esi
jmp 0x504b64
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x504b8f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004aebe0
add esi, eax
push esi
mov ebx, esi
call fcn.004aebe0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x504b70
pop ebp
test edi, edi
pop edi
jne 0x504bb3
test ebx, ebx
je 0x504bb3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0050b880
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x504cf5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x504e0d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x504e0d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0051c522
mov esi, eax
test esi, esi
je 0x504e0d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x504e0d
mov ecx, esi
call fcn.00504c60
cmp edi, eax
jge 0x504e0d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x504d93
mov dword [esp + 0x34], 1
jmp 0x504dee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x504e0d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00504250
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x51cec6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x51cefe
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0051af53
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0051af2b
jmp 0x51cf0a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x51e5bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x51e5fd
call fcn.005241fb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x51e5fd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x51e5f4
xor eax, eax
jmp 0x51e605
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0051e60b
pop edi
pop esi
pop ebx
ret 4

Function at 0x52472b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x524759
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x524777
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00524691
jmp 0x524777
mov eax, dword [esi + 0x14]
test eax, eax
je 0x524777
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00524691
test edi, edi
mov eax, edi
jne 0x524761
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1003206
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x10013cc
call dword [0x1001078]
mov esi, eax
test esi, esi
je 0x100323d
push 0x10013b8
push esi
call dword [0x1001088]
test eax, eax
je 0x1003236
push 0
call eax
push esi
call dword [0x100108c]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov edi, dword [0x1001064]
mov ebx, 0x104
push ebx
push 0x10046f0
push 0x10013a0
mov dword [0x10046e8], eax
call edi
push ebx
push 0x10048f8
push 0x1001384
call edi
cmp dword [ebp + 8], 1
jne 0x100327c
call fcn.010019b5
jmp 0x10033ab
mov edi, dword [sym.imp.ntdll.dll_wcsncmp]
push 2
pop ebx
push ebx
push 0x100137c
push dword [esi + 4]
call edi
add esp, 0xc
test eax, eax
je 0x1003379
push ebx
push 0x1001374
push dword [esi + 4]
call edi
add esp, 0xc
test eax, eax
je 0x1003379
push ebx
push 0x100136c
push dword [esi + 4]
call edi
add esp, 0xc
test eax, eax
je 0x1003379
push ebx
push 0x1001364
push dword [esi + 4]
call edi
add esp, 0xc
test eax, eax
je 0x1003379
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.010017a9
test eax, eax
je 0x1003272
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01001adb
test eax, eax
je 0x10033ab
xor eax, eax
cmp dword [ebp - 8], eax
je 0x1003343
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
test eax, eax
jne 0x10033ab
call dword [fcn.01001094]
push eax
call fcn.01001604
jmp 0x10033ab
cmp dword [ebp + 0xc], eax
je 0x100335f
push eax
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x1003331
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [entry0]
jmp 0x1003331
xor esi, esi
push esi
call dword [fcn.01001090]
cmp eax, esi
mov dword [0x1004b0c], eax
je 0x10033ab
push esi
push 0x10031bd
push esi
push 0x65
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov eax, dword [0x1004b04]
cmp eax, esi
je 0x10033ab
push eax
call dword [fcn.01001018]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x411699
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0040e067
call fcn.00408221
cmp eax, esi
pop esi
jne 0x4116b5
mov ecx, 0x57e4f8
jmp fcn.0041f684
ret
Function at 0x40bb3d
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
push ebx
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40bb44
call fcn.00437700
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.00416060
mov edx, dword [esp + 0x38]
lea ecx, [esp + 4]
call fcn.00416060
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 8]
call fcn.00416060
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0xc]
call fcn.00416060
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x10]
call fcn.00416060
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x14]
call fcn.00416060
push 0
call sub.ole32.dll_CoInitialize
lea eax, [esp + 0x24]
push eax
mov ebp, 0x779a3f
push ebp
push 1
push 0
mov ebp, 0x779a2f
push ebp
call sub.ole32.dll_CoCreateInstance
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x40bca2
sub esp, 4
push dword [esp + 4]
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0x50]
push dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
push eax
pop eax
add esp, 4
lea eax, [esp + 0x20]
push eax
mov ebp, 0x779a4f
push ebp
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [eax]
call dword [eax]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x40bc98
sub esp, 4
push 1
push dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
push eax
pop eax
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 8]
call sub.ole32.dll_CoUninitialize
mov eax, dword [esp + 0x18]
jmp 0x40bcaf
push dword [esp]
call fcn.00437760
push dword [esp + 4]
call fcn.00437760
push dword [esp + 0x14]
call fcn.00437760
push dword [esp + 0xc]
call fcn.00437760
push dword [esp + 0x1c]
call fcn.00437760
push dword [esp + 8]
call fcn.00437760
push dword [esp + 0x10]
call fcn.00437760
add esp, 0x28
pop ebx
pop ebp
ret 0x1c
Function at 0x412dea
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00437700
push 0xa0
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp], eax
push 0x24
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp + 4], eax
push 0x23
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp + 8], eax
push 0x21
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp + 0xc], eax
push 0x22
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp + 0x10], eax
mov ebx, dword [esp]
and ebx, ebx
je 0x412e52
mov ebx, dword [esp + 4]
and ebx, ebx
je 0x412e52
mov eax, 1
jmp 0x412e54
xor eax, eax
and eax, eax
je 0x412e67
call fcn.0040c207
mov dword [0x77c824], 0
mov ebx, dword [esp]
and ebx, ebx
je 0x412e7d
mov ebx, dword [esp + 8]
and ebx, ebx
je 0x412e7d
mov eax, 1
jmp 0x412e7f
xor eax, eax
and eax, eax
je 0x412e92
call fcn.0040b9a8
mov dword [0x77c824], 0
mov ebx, dword [esp]
and ebx, ebx
je 0x412ea8
mov ebx, dword [esp + 0xc]
and ebx, ebx
je 0x412ea8
mov eax, 1
jmp 0x412eaa
xor eax, eax
and eax, eax
je 0x412eb3
call fcn.0040e2fc
mov ebx, dword [esp]
and ebx, ebx
je 0x412ec9
mov ebx, dword [esp + 0x10]
and ebx, ebx
je 0x412ec9
mov eax, 1
jmp 0x412ecb
xor eax, eax
and eax, eax
je 0x412ed4
call fcn.004113c3
xor eax, eax
add esp, 0x14
pop ebx
ret

Function at 0x416841
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x4168d9
push edi
push 0x77f3f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x77c9f4]
test edi, edi
je 0x4168ad
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4168a6
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x77c9f4
call fcn.0043744c
pop ecx
pop ecx
jmp 0x4168a8
mov edi, dword [edi]
test edi, edi
jne 0x41687d
pop ebx
mov eax, dword [0x779a60]
mov esi, eax
inc eax
push 0x10
push 0x77c9f4
mov dword [0x779a60], eax
call fcn.0043748c
pop ecx
pop ecx
push 0x77f3f8
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x41b5a3
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x41b5f8
push dword [esp + 0x10]
push 0x41b522
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x77ccc8]
test esi, esi
je 0x41b651
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x41b5f0
cmp byte [esi + 0x10], 0
je 0x41b5f0
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x41b5cc
jmp 0x41b651
mov esi, dword [0x77ccc8]
test esi, esi
je 0x41b651
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x41b64a
cmp byte [esi + 0x11], 0
je 0x41b626
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x41b63d
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x77ccc8
call fcn.0043744c
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x41b605
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41c959
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x77f76c]
call fcn.00436b0e
mov edi, dword [eax + 0x24]
test edi, edi
je 0x41ca17
cmp dword [edi + 8], 1
je 0x41ca17
mov edi, dword [edi + 0xc]
test edi, edi
je 0x41ca17
mov al, byte [edi]
cmp al, 0x20
je 0x41c992
cmp al, 9
jne 0x41c995
inc edi
jmp 0x41c988
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.004378c0
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x41c9e6
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x41ca02
cmp cx, dx
je 0x41ca02
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x41c9fa
cmp cx, dx
jne 0x41ca06
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x41c9ed
push ebp
call sub.MSVCRT.dll_wcslen
pop ecx
sub ebx, eax
push ebx
call fcn.004379a0
jmp 0x41c9e6
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.004379d0
Function at 0x41e640
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x77ccdc], 0
jne 0x41e64e
call fcn.0041e5c0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x77cce0]
call esi
test eax, eax
jne 0x41e671
call fcn.0041e5c0
push dword [0x77cce0]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x41e680
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x41e6e0
mov ebx, 0x10
test edi, edi
jns 0x41e6e9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x41e6b2
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41e700
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x77ccdc], 0
jne 0x41e70e
call fcn.0041e5c0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x77cce0]
call esi
mov edx, eax
test edx, edx
jne 0x41e735
call fcn.0041e5c0
push dword [0x77cce0]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x41e768
mov ebx, 0x10
test esi, esi
jns 0x41e771
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x41e780
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x420e82
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x420dd1
push 0x10
push 0x2c
call fcn.00436d52
push 0
push 0
push 8
mov dword [0x77ce80], eax
call fcn.00436b79
cmp word [0x77ce78], 0
mov dword [0x77f784], eax
jne 0x420f67
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x420eda
mov word [0x77ce78], di
jmp 0x420ee2
xor eax, eax
mov word [0x77ce78], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x77ce94], eax
test eax, eax
je 0x420f66
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x77ce94]
mov dword [0x77ce84], eax
call esi
push str.getnameinfo
push dword [0x77ce94]
mov dword [0x77ce88], eax
call esi
push str.WSAStringToAddressA
push dword [0x77ce94]
mov dword [0x77ce8c], eax
call esi
cmp dword [0x77ce84], 0
mov dword [0x77ce90], eax
pop esi
je 0x420f66
cmp dword [0x77ce88], 0
je 0x420f66
cmp dword [0x77ce8c], 0
je 0x420f66
test eax, eax
je 0x420f66
mov dword [0x77ce7c], edi
pop edi
add esp, 0x190
ret

Function at 0x421136
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x42127e
xor ecx, ecx
cmp word [eax], cx
je 0x42127e
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x42118f
cmp eax, 3
jne 0x4211c9
cmp word [esp + 0xa], 0x3a
jne 0x4211c9
cmp eax, 2
jne 0x4211ad
lea eax, [esp + 8]
push 0x50a288
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42127e
push 0xfffffffffffffffe
pop edi
jmp 0x42127e
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4211de
cmp ax, bx
jne 0x4211e8
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4211d1
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x421227
test byte [esp + 0x21c], 0x10
je 0x42120e
push 0xfffffffffffffffe
pop edi
jmp 0x42121e
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x42127c
cmp word [esp + 0x10], bp
jne 0x421235
cmp word [esp + 0x12], bp
je 0x421254
cmp word [esp + 0x10], bx
jne 0x421243
cmp word [esp + 0x12], bx
je 0x421254
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x42127c
cmp word [esp + 0x12], ax
jne 0x42127c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x421269
test al, 0x10
je 0x42127c
jmp 0x421279
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42127c
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x42128d
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x42129b
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x421310
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x77ce9c]
push esi
test eax, eax
jne 0x421335
push 0x42143d
push 0x10
push 0x258
call fcn.00436d52
mov dword [0x77ce9c], eax
push dword [esp + 0xc]
push eax
call fcn.00436cbe
mov esi, eax
test esi, esi
je 0x421436
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x421357
mov edi, 0x50a06c
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x421367
xor eax, eax
cmp word [ebx], ax
jne 0x42136c
mov ebx, 0x50a2a4
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x77c56c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x42141d
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x4213cd
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x4213d1
push 0x50a288
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x4213d1
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4213f5
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x42140b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x421409
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x77c56c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x421434
cmp dword [esp + 0x14], 0xffffffff
je 0x421428
mov esi, dword [esp + 0x14]
push esi
push dword [0x77ce9c]
call fcn.00436c30
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x42163f
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x421668
test byte [esp + 8], 2
je 0x42165c
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x42166a
xor eax, eax
ret 8