joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f40
Capabilities:
Start service

Disassembly:
sub esp, 0x214
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x20c], eax
mov ecx, dword [0x49ec94]
mov edx, dword [0x49ec98]
mov eax, dword [str.Estdlock]
push ebx
push ebp
push esi
push edi
push 0x1f6
xor ebp, ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov eax, dword [0x49ec9c]
mov dword [esp + 0x18], ecx
mov cx, word [0x49eca0]
lea edx, [esp + 0x26]
push ebp
push edx
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], cx
call fcn.004661f0
add esp, 0xc
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x402015
push 0xf003f
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x401fd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x402005
xor edi, edi
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x401ff9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x420
jne 0x401ffe
call fcn.00402140
xor edi, edi
mov ebp, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebp
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466e70
add esp, 0x214
ret

Function at 0x402700
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, 0x200
mul ecx
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x402733
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40275e
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 8]
push eax
shl esi, 9
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40275e
cmp esi, dword [esp + 4]
jne 0x40275e
mov eax, 1
pop esi
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret

Function at 0x402770
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, 0x200
mul ecx
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4027a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4027ce
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 8]
push eax
shl esi, 9
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4027ce
cmp esi, dword [esp + 4]
jne 0x4027ce
mov eax, 1
pop esi
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x404b40
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push str.SoftwareLenovo_
push closesocket
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404b6c
xor eax, eax
pop ecx
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push esi
push ecx
mov ecx, dword [esp + 8]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x404c60
Capabilities:
Get file version info

Disassembly:
sub esp, 0x220
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
push esi
push edi
mov edi, ecx
push 0
push edi
mov dword [esp + 0x18], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x404ca8
pop edi
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00466e70
add esp, 0x220
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push ebp
neg ecx
or ecx, eax
push ecx
call fcn.004435be
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x404cfa
push ebp
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404cf1
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
test edi, edi
jne 0x404d14
push ebp
call fcn.004435c9
add esp, 4
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00466e70
add esp, 0x220
ret
xor esi, esi
test dword [esp + 0xc], 0xfffffffc
jbe 0x404db0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x404d30
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + esi*4 + 2]
movzx eax, word [eax + esi*4]
push edx
push eax
lea ecx, [esp + 0x2c]
push str.StringFileInfo_04x_04x_
push ecx
call fcn.00468dc3
add esp, 0x10
push 0x49ebf0
lea edx, [esp + 0x28]
push edx
call ebx
push 0x49ec00
lea eax, [esp + 0x28]
push eax
call ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
test edi, edi
jne 0x404d92
mov ecx, dword [esp + 0x10]
inc esi
shr ecx, 2
cmp esi, ecx
jb 0x404d30
jmp 0x404daf
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404da0
pop ebx
push ebp
call fcn.004435c9
mov ecx, dword [esp + 0x22c]
add esp, 4
pop ebp
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00466e70
add esp, 0x220
ret
Function at 0x4087f0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
push esi
push edi
mov esi, eax
call fcn.00408300
lea edi, [eax*4]
xor ebx, ebx
mov dword [esp + 0xc], eax
test edi, edi
jle 0x408855
lea edx, [esi + edi*4 + 8]
lea ecx, [esi + 8]
push ebp
mov eax, dword [edx - 8]
mov ebp, dword [ecx - 8]
mov dword [ecx - 8], eax
mov dword [edx - 8], ebp
mov ebp, dword [edx - 4]
mov eax, dword [ecx - 4]
mov dword [ecx - 4], ebp
mov ebp, dword [edx]
mov dword [edx - 4], eax
mov eax, dword [ecx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], ebp
mov dword [edx + 4], eax
add ebx, 4
sub edi, 4
add ecx, 0x10
sub edx, 0x10
cmp ebx, edi
jl 0x408814
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, 1
jle 0x408a10
lea edx, [eax - 1]
mov ecx, dword [esi + 0x10]
movzx ebx, byte [esi + 0x11]
mov ebx, dword [ebx*4 + str.ccccwwww]
add esi, 0x10
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x4a2308]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4a2b08]
movzx ebx, byte [esi + 2]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4a2708]
movzx ebx, byte [esi + 5]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x4a2f08]
mov ecx, dword [esi + 4]
mov dword [esi], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x4a2308]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4a2b08]
movzx ebx, byte [esi + 6]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4a2708]
movzx ebx, byte [esi + 9]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x4a2f08]
mov ecx, dword [esi + 8]
mov dword [esi + 4], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x4a2308]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4a2b08]
movzx ebx, byte [esi + 0xa]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4a2708]
movzx ebx, byte [esi + 0xd]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x4a2f08]
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x4a2308]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4a2b08]
movzx ebx, byte [esi + 0xe]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4a2708]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x4a2f08]
sub edx, 1
mov dword [esi + 0xc], edi
jne 0x408861
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x417d94
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x417db8
mov eax, 1
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00466e70
add esp, 0x414
ret
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x21a]
push ecx
mov word [esp + 0x21c], ax
call fcn.004661f0
add esp, 0xc
push 0x104
call fcn.00434050
push eax
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.NTUSER.DAT
lea eax, [esp + 0x214]
push eax
call edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.004661f0
add esp, 0xc
push 1
push 0x1a
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x49ebf0
lea ecx, [esp + 0xc]
push ecx
call edi
push str.NTUSER.DAT
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0x210]
push eax
mov ecx, esi
call fcn.00417c00
mov dword [esi + 0xc], eax
pop edi
test eax, eax
jne 0x417e70
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00417c00
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
call fcn.00466e70
add esp, 0x414
ret

Function at 0x4182b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x9c
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa8]
mov ecx, 0x200
mul ecx
push ebx
push ebp
mov ebp, dword [esp + 0xb8]
mov ebx, edx
movzx edx, word [esp + 0xac]
push esi
push edi
add edx, 0xffffff80
push edx
mov edi, eax
lea eax, [esp + 0x2c]
push str..PHYSICALDRIVE_d
push eax
mov edx, 0x80
call fcn.00417940
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41838e
movzx eax, word [esp + 0xb0]
sub eax, 3
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
je 0x418366
sub eax, 1
jne 0x418387
mov ecx, dword [esp + 0xbc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
shl ecx, 9
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x418383
mov ecx, dword [esp + 0xbc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
shl ecx, 9
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418392
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41839e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466e70
add esp, 0x9c
ret 0x14
Function at 0x41a7a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x487f8e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b9b20]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.00445f21
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esi], vtable.CBroListCtrl.0
lea ebp, [esi + 0x54]
call fcn.0044c107
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41a7f9
push 0x80004005
call fcn.00419210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x20], 1
lea edi, [esi + 0x58]
call fcn.0044c107
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41a82a
push 0x80004005
call fcn.00419210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push ebx
push 0x49f190
mov ecx, edi
mov byte [esp + 0x28], 2
call fcn.00419e20
mov ecx, dword [edi]
push ebx
push ebx
push ecx
push ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
mov ecx, ebp
call fcn.0041a2a0
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x41ace0
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x488078
mov eax, dword fs:[0]
push eax
sub esp, 0x708
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x704], eax
push esi
push edi
mov eax, dword [0x4b9b20]
xor eax, esp
push eax
lea eax, [esp + 0x714]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x724]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea ecx, [esp + 0x304]
push ecx
mov dword [esp + 0x724], 0
call edi
push 0x49f190
lea ecx, [esp + 0x10]
call fcn.0041a8d0
push 0x701
push 4
lea edx, [esp + 0x54]
push edx
push 0
lea eax, [esp + 0x310]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x304]
push edx
call edi
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x50c]
push ecx
call edi
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x50]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x10]
push eax
push 0
push 0x104d
push ecx
mov dword [esp + 0x20], 7
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0x48dc78
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 1
call edi
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x104c
lea edx, [esp + 0x514]
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], 2
mov dword [esp + 0x34], edx
call edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ae22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x724]
add eax, 0xfffffff0
mov dword [esp + 0x71c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ae50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x714]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x704]
xor ecx, esp
call fcn.00466e70
add esp, 0x714
ret 4
Function at 0x41ef80
Capabilities:
Get file attributes

Disassembly:
sub esp, 0xa80
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0xa7c], eax
mov eax, dword [esp + 0xa88]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa90]
push edi
mov dword [esp + 0x18], ecx
xor ecx, ecx
push 0x40e
push ecx
lea edx, [esp + 0x276]
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0x278], cx
call fcn.004661f0
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x692]
push ecx
mov word [esp + 0x694], ax
call fcn.004661f0
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41eff0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x41f015
push 0x49ebf0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea edx, [esp + 0x680]
push edx
call ebx
push 0x48dc94
lea eax, [esp + 0x680]
push eax
call edi
push 0x250
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.004661f0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebp, 0xffffffff
je 0x41f19b
test ebp, ebp
je 0x41f19b
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
mov ecx, 0x48e72c
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f0b6
test dx, dx
je 0x41f0b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f0b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f090
xor eax, eax
jmp 0x41f0bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f171
mov ecx, 0x48dc78
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f0f6
test dx, dx
je 0x41f0f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f0f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f0d0
xor eax, eax
jmp 0x41f0fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f171
push esi
lea ecx, [esp + 0x270]
push ecx
call ebx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x270]
push eax
call edi
lea ecx, [esp + 0x26c]
push ecx
call ebp
test al, 0x10
je 0x41f13f
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x270]
push eax
call fcn.0041ef80
jmp 0x41f171
test al, 1
je 0x41f155
and eax, 0xfffffffe
push eax
lea ecx, [esp + 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x18]
push 2
add edx, 0x8c5
push edx
lea eax, [esp + 0x274]
push eax
call dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41f080
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x41f19d
xor eax, eax
mov ecx, dword [esp + 0xa8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466e70
add esp, 0xa80
ret 8
Function at 0x41f1c0
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0xe8c
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0xe88], eax
push ebx
mov ebx, dword [esp + 0xe98]
push ebp
mov ebp, dword [esp + 0xe98]
push esi
push edi
push 0
push ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41f203
mov dword [esp + 0x10], eax
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x682]
push ecx
mov word [esp + 0x684], ax
call fcn.004661f0
xor edx, edx
push 0x40e
push edx
lea eax, [esp + 0xa9e]
push eax
mov word [esp + 0xaa0], dx
call fcn.004661f0
xor ecx, ecx
push 0x40e
push ecx
lea edx, [esp + 0x28a]
push edx
mov word [esp + 0x28c], cx
call fcn.004661f0
mov eax, ebp
add esp, 0x24
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f262
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
mov edi, 0x5c
cmp word [ebp + eax*2 - 2], di
je 0x41f28b
push 0x49ebf0
push ebp
call esi
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f290
sub eax, edx
sar eax, 1
cmp word [ebx + eax*2 - 2], di
je 0x41f2ae
push 0x49ebf0
push ebx
call esi
push ebp
lea eax, [esp + 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x48dc94
lea ecx, [esp + 0x67c]
push ecx
call esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41f2ed
xor eax, eax
jmp 0x41f418
test edi, edi
je 0x41f40d
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x41f300
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41f40d
lea edx, [esp + 0x44]
push edx
push ebp
lea eax, [esp + 0xa90]
push 0x48e6d8
push eax
call esi
lea ecx, [esp + 0x54]
push ecx
push ebx
lea edx, [esp + 0x280]
push 0x48e6d8
push edx
call esi
add esp, 0x20
test byte [esp + 0x18], 0x10
jne 0x41f36a
push 0
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0xa90]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41f300
mov dword [esp + 0x10], eax
jmp 0x41f300
mov ecx, 0x48e72c
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f399
test dx, dx
je 0x41f395
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f399
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f373
xor eax, eax
jmp 0x41f39e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f300
mov ecx, 0x48dc78
lea eax, [esp + 0x44]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f3d6
test dx, dx
je 0x41f3d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f3d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f3b0
xor eax, eax
jmp 0x41f3db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f300
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x268]
push edx
lea eax, [esp + 0xa8c]
push eax
call fcn.0041f1c0
test eax, eax
jne 0x41f300
mov dword [esp + 0x10], eax
jmp 0x41f300
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xe98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466e70
add esp, 0xe8c
ret 8
Function at 0x420170
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push edi
mov edi, dword [esp + 0x218]
lea eax, [esp + 0x80]
push eax
push 0x101
xor ebx, ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4201b0
push str.Failed_to_load_winsock_stack_n
jmp 0x42028d
mov eax, dword [esp + 0x80]
cmp al, 1
jne 0x420288
shr eax, 8
cmp al, 1
jne 0x420288
push esi
lea ecx, [esp + 0x64]
mov dword [esp + 0xc], str.210.72.145.44
mov dword [esp + 0x10], str.time.windows.com
call fcn.0042c6d0
lea ecx, [esp + 0x34]
call fcn.0042bfa0
lea ecx, [esp + 0x3c]
call fcn.0042bfa0
lea ecx, [esp + 0x44]
call fcn.0042bfa0
lea ecx, [esp + 0x4c]
call fcn.0042bfa0
xor esi, esi
lea ebx, [ebx]
mov edx, dword [esp + esi*4 + 0xc]
push 0x7b
lea ecx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x70]
call fcn.0042c700
test eax, eax
jne 0x42023a
inc esi
cmp esi, 2
jb 0x420210
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
pop esi
jmp 0x420297
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x48]
call fcn.0042c520
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x6c]
call fcn.0042c370
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.00419400
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov ebx, 1
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
pop esi
jmp 0x420297
push str.Winsock_stack_does_not_support_version_which_this_program_requires_n
call fcn.00468cca
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x210]
pop edi
pop ebx
xor ecx, esp
call fcn.00466e70
add esp, 0x20c
ret 4

Function at 0x420f00
Capabilities:
Create process on windows

Disassembly:
jmp fcn.00420460
mov ecx, dword [0x4be390]
test ecx, ecx
jne 0x420f0d
xor eax, eax
ret
jmp 0x420c70