joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416310
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x14
push ebx
push ebp
push edi
mov edi, ecx
cmp edi, dword [esi + 0x34]
mov ebx, eax
je 0x416345
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x416345
mov ecx, dword [esi + 4]
push 2
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x416471
mov dword [esi + 0x34], edi
xor edi, edi
cmp ebx, edi
mov dword [esi + 0x30], 1
je 0x41637f
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x416370
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
lea eax, [esi + 0x2c]
call fcn.00405240
mov dword [esi + 0x20], edi
mov ecx, dword [esi + 0x28]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x41639e
mov dword [esi + 0x28], edi
push 0xffffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x28], eax
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
mov eax, dword [esi + 0x38]
push eax
push edi
call ebx
mov ebp, eax
mov eax, dword [esi + 0x20]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
xor eax, eax
push 0xd00
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x2c]
mov edx, dword [eax - 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push ebp
push edi
call ebx
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov edi, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
sub edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x10]
push 0
lea edi, [edi + ecx + 6]
lea edx, [edx + eax + 0xa]
sub edi, ecx
push edi
sub edx, eax
push edx
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 0x44]
test eax, eax
mov dword [esi + 0x3c], 0xff
je 0x41645e
movzx ecx, byte [esi + 0x3c]
mov edx, dword [esi + 4]
push 2
push ecx
push 0
push edx
call eax
mov eax, dword [esi + 4]
push 0
push 0x1f4
push 2
push eax
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x416480
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4164a6
mov ecx, dword [esi + 4]
push 2
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x417dc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x4d16b0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, 1
test byte [0x4d85bc], bl
mov dword [esp + 4], 0
jne 0x417e14
mov eax, dword [0x4d5c6c]
mov edx, dword [eax + 0xc]
or dword [0x4d85bc], ebx
mov ecx, 0x4d5c6c
call edx
add eax, 0x10
push 0x4a7db0
mov dword [0x4d85b8], eax
call fcn.0047ff6f
add esp, 4
mov eax, dword [0x4d85b8]
cmp dword [eax - 0xc], 0
jne 0x417e71
push 0x20a
lea ecx, [esp + 0xe]
push 0
push ecx
mov word [esp + 0x14], 0
call fcn.004854b0
add esp, 0xc
push ebx
push 0x25
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417e51
sub eax, edx
sar eax, 1
lea ecx, [esp + 8]
mov ebx, eax
push ecx
mov eax, 0x4d85b8
call fcn.00405240
mov eax, dword [0x4d85b8]
add eax, 0xfffffff0
call fcn.004050b0
mov ecx, dword [esp + 0x214]
add eax, 0x10
pop ebx
mov dword [esi], eax
xor ecx, esp
mov eax, esi
call fcn.0047f460
add esp, 0x214
ret

Function at 0x417ea0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x4d16b0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, 1
test byte [0x4d85b4], bl
mov dword [esp + 4], 0
jne 0x417ef4
mov eax, dword [0x4d5c6c]
mov edx, dword [eax + 0xc]
or dword [0x4d85b4], ebx
mov ecx, 0x4d5c6c
call edx
add eax, 0x10
push 0x4a7de0
mov dword [0x4d85b0], eax
call fcn.0047ff6f
add esp, 4
mov eax, dword [0x4d85b0]
cmp dword [eax - 0xc], 0
jne 0x417f51
push 0x20a
lea ecx, [esp + 0xe]
push 0
push ecx
mov word [esp + 0x14], 0
call fcn.004854b0
add esp, 0xc
push ebx
push 0x24
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417f31
sub eax, edx
sar eax, 1
lea ecx, [esp + 8]
mov ebx, eax
push ecx
mov eax, 0x4d85b0
call fcn.00405240
mov eax, dword [0x4d85b0]
add eax, 0xfffffff0
call fcn.004050b0
mov ecx, dword [esp + 0x214]
add eax, 0x10
pop ebx
mov dword [esi], eax
xor ecx, esp
mov eax, esi
call fcn.0047f460
add esp, 0x214
ret
Function at 0x41c790
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4a3218
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4d16b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.00409800
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41c7e4
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.0041c6c0
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.00409800
cmp dword [esp + 0x24], 8
jb 0x41c82a
mov eax, dword [esp + 0x10]
push eax
call fcn.0047f45b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x41c840
Capabilities:
Get file version info

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebp
push esi
xor ebp, ebp
push ebp
push ebx
mov word [eax], bp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
jne 0x41c866
pop esi
pop ebp
add esp, 8
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push esi
call fcn.0047e5bc
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x41c882
pop edi
pop esi
mov eax, 8
pop ebp
add esp, 8
ret
push edi
push esi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41c8ee
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x4ba834
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41c8ee
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
mov eax, dword [esp + 0x20]
push ecx
push edx
push str._d._d._d._d
push 0x7e
push eax
call fcn.0048165a
add esp, 0x1c
push edi
call fcn.0047f807
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebp, eax
call fcn.0047f807
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x41c910
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x178
mov eax, dword [0x4d16b0]
xor eax, esp
mov dword [esp + 0x174], eax
push ebx
push ebp
mov ebp, dword [esp + 0x184]
push esi
push edi
mov ebx, ecx
push ebp
call fcn.0041c840
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41c965
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41ca73
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x18]
push eax
push 0x40
lea ecx, [esp + 0x14c]
push ecx
push esi
mov edi, 0xb
call ebx
test eax, eax
je 0x41ca71
cmp dword [esp + 0x14], 0x40
jne 0x41ca71
cmp word [esp + 0x140], 0x5a4d
jne 0x41ca71
mov edx, dword [esp + 0x17c]
push 0
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x18]
push eax
push 0xf8
lea ecx, [esp + 0x54]
push ecx
push esi
call ebx
test eax, eax
je 0x41ca71
cmp dword [esp + 0x14], 0xf8
jne 0x41ca71
cmp dword [esp + 0x48], 0x4550
jne 0x41ca71
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c9f7
sub eax, edx
mov edx, dword [esp + 0x50]
sar eax, 1
mov ebx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
call fcn.00481357
mov esi, eax
mov ecx, 9
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x48]
push ecx
add edx, 1
push edx
add eax, 0x76c
push eax
mov ecx, 0x7e
push str.__04d__02d__02d__02d:_02d:_02d
sub ecx, ebx
push ecx
lea edx, [ebp + ebx*2]
push edx
call fcn.0048165a
add esp, 0x28
xor edi, edi
mov eax, edi
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047f460
add esp, 0x178
ret
Function at 0x41ca90
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4d16b0]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004854b0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x41cb01
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
jne 0x41cb01
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0047f460
add esp, 0x120
ret
mov eax, dword [esp + 0x14]
sub eax, 0
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 8]
mov ecx, str.Unknow_system
je 0x41cc2e
sub eax, 1
je 0x41cbb0
sub eax, 1
jne 0x41cc33
cmp esi, 4
ja 0x41cb3c
mov ecx, str.Microsoft_Windows_NT
jmp 0x41cc33
cmp esi, 5
jne 0x41cb98
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x41cb8c
mov ecx, str.Microsoft_Windows_2000
lea eax, [esp + 0x18]
push ebx
movzx ebx, word [esp + 0x14]
push ebx
push edx
push esi
push eax
mov eax, dword [esp + 0x13c]
push ecx
push str._s__s__Build__d._d._d_
push eax
push edi
call fcn.0048165a
mov ecx, dword [esp + 0x144]
add esp, 0x20
pop ebx
pop esi
xor ecx, esp
xor eax, eax
call fcn.0047f460
add esp, 0x120
ret
cmp edx, 1
jne 0x41cb4e
mov ecx, str.Microsoft_Windows_XP
jmp 0x41cb4e
cmp esi, 6
jne 0x41cc33
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x41cb4e
mov ecx, str.Microsoft_Windows_Vista
jmp 0x41cb4e
cmp esi, 4
jne 0x41cc27
test edx, edx
jne 0x41cbe8
mov ax, word [esp + 0x1a]
cmp ax, 0x43
je 0x41cbd9
cmp ax, 0x42
je 0x41cbd9
mov ecx, str.Microsoft_Windows_95
mov eax, 0x4ac230
jmp 0x41cb52
mov ecx, str.Microsoft_Windows_95_OSR2
mov eax, 0x4ac230
jmp 0x41cb52
cmp edx, 0xa
jne 0x41cc13
cmp word [esp + 0x1a], 0x41
jne 0x41cc04
mov ecx, str.Microsoft_Windows_98_SE
mov eax, 0x4ac230
jmp 0x41cb52
mov ecx, str.Microsoft_Windows_98
mov eax, 0x4ac230
jmp 0x41cb52
cmp edx, 0x5a
jne 0x41cc27
mov ecx, str.Microsoft_Windows_Me
mov eax, 0x4ac230
jmp 0x41cb52
mov ecx, str.Microsoft_Windows_Me_later
jmp 0x41cc33
mov ecx, str.Microsoft_Win32s
cmp esi, 4
ja 0x41cb4e
mov eax, 0x4ac230
jmp 0x41cb52
Function at 0x41cc50
Capabilities:
Create udp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
sub esp, 0x1a8
mov eax, dword [0x4d16b0]
xor eax, esp
mov dword [esp + 0x1a4], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1b4]
mov ebx, ecx
cmp ebx, 0x5a0
push esi
push edi
jbe 0x41cc7e
mov ebx, 0x5a0
lea eax, [esp + 0x20]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x41cd18
push str.stat.qq.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x41cd11
xor eax, eax
push 0x26b0
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov word [esp + 0x22], ax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov edx, dword [esi + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
jne 0x41ccf2
mov eax, edx
add eax, 4
add ecx, 1
cmp dword [eax], 0
je 0x41cce7
mov ecx, dword [edx + ecx*4]
mov eax, dword [ecx]
test eax, eax
mov dword [esp + 0x14], eax
je 0x41cd11
push 0x10
lea edx, [esp + 0x14]
push edx
push 0
push ebx
push ebp
push edi
call dword [sym.imp.WS2_32.dll_sendto]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047f460
add esp, 0x1a8
ret

Function at 0x41cd40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x808
mov eax, dword [0x4d16b0]
xor eax, esp
mov dword [esp + 0x804], eax
push ebx
push edi
push 0x802
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.004854b0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
lea eax, [esp + 8]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41cd90
sub eax, edx
sar eax, 1
lea edx, [esp + 8]
mov ebx, eax
push edx
mov eax, esi
call fcn.00405240
mov ecx, dword [esp + 0x80c]
xor eax, eax
test edi, edi
pop edi
setge al
pop ebx
xor ecx, esp
call fcn.0047f460
add esp, 0x808
ret
Function at 0x41d2b0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x17c
mov eax, dword [0x4d16b0]
xor eax, esp
mov dword [esp + 0x178], eax
mov eax, dword [esp + 0x180]
push ebp
lea edx, [esp + 8]
push edx
push 0x40
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x140]
push eax
push ebx
push esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], 0
call edi
cmp dword [esp + 8], 0x40
jne 0x41d3c5
cmp word [esp + 0x138], 0x5a4d
jne 0x41d3c5
mov ecx, dword [esp + 0x174]
lea edx, [esp + 8]
push edx
push 0xf8
lea eax, [esp + 0x20]
push eax
lea ebp, [ebx + ecx]
push ebp
push esi
mov dword [esp + 0x1c], 0
call edi
cmp dword [esp + 8], 0xf8
jne 0x41d3c5
cmp dword [esp + 0x18], 0x4550
jne 0x41d3c5
cmp word [esp + 0x1c], 0x14c
jne 0x41d3c5
cmp word [esp + 0x30], 0x10b
jne 0x41d3c5
add ebp, 0xf8
cmp word [esp + 0x1e], 0
mov dword [esp + 0xc], 0
jbe 0x41d3c5
lea ecx, [esp + 8]
push ecx
push 0x28
lea edx, [esp + 0x118]
push edx
push ebp
push esi
mov dword [esp + 0x1c], 0
call edi
cmp dword [esp + 8], 0x28
jne 0x41d3c5
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x41d3c5
mov ecx, dword [esp + 0x134]
and ecx, 0x20000020
cmp ecx, 0x20000020
je 0x41d3dd
mov eax, dword [esp + 0xc]
movzx edx, word [esp + 0x1e]
add eax, 1
cmp eax, edx
mov dword [esp + 0xc], eax
jb 0x41d36f
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0047f460
add esp, 0x17c
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x120]
add eax, ebx
mov dword [ecx], eax
mov ecx, dword [esp + 0x10]
add eax, edx
mov dword [ecx], eax
mov ecx, dword [esp + 0x17c]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0047f460
add esp, 0x17c
ret
Function at 0x41fd60
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, eax
mov eax, dword [esi]
push edi
push eax
call ebp
mov ecx, dword [esi + 4]
push ecx
mov edi, eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
xor ebx, ebx
sub eax, edx
mov dword [esp + 0x10], eax
jmp 0x41fd94
mov eax, dword [esp + 0x10]
lea eax, [eax + ebx*4]
mov ecx, dword [esp + eax + 0x14]
push ecx
call ebp
mov dword [esp + ebx*4 + 0x14], eax
add ebx, 1
cmp ebx, 4
jl 0x41fd90
mov ecx, dword [esp + 0x20]
mov eax, 0xe3779b90
mov dword [esp + 0x10], 0x10
jmp 0x41fdc0
mov ebx, edi
shl ebx, 4
add ebx, dword [esp + 0x1c]
mov edx, edi
shr edx, 5
add edx, ecx
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x18]
mov ebx, esi
shl ebx, 4
add ebx, dword [esp + 0x14]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
sub edi, edx
add eax, 0x61c88647
sub dword [esp + 0x10], 1
jne 0x41fdc0
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov ebx, dword [esp + 0x2c]
push esi
mov dword [ebx], eax
call edi
pop edi
pop esi
pop ebp
mov dword [ebx + 4], eax
pop ebx
add esp, 0x14
ret
Function at 0x421ba0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4d16b0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push connect
mov esi, ecx
mov ebp, 3
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x421d2f
push esi
lea ecx, [esp + 0x24]
push str._sConnection
push ecx
mov eax, 0x103
call fcn.00425990
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x2c]
push eax
push ecx
call edi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x421d28
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 4
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.MediaSubType
push edx
call esi
test eax, eax
jne 0x421d21
push 0x104
push eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x103
call fcn.004854b0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.PnpInstanceID
push ecx
call esi
test eax, eax
jne 0x421d21
mov esi, 1
cmp dword [esp + 0xc], esi
jne 0x421d11
push ebp
lea edx, [esp + 0x24]
push 0x4bc510
push edx
call fcn.004817b8
add esp, 0xc
test eax, eax
jne 0x421cec
xor ebp, ebp
jmp 0x421d21
cmp dword [esp + 0xc], esi
jne 0x421d11
push 3
lea eax, [esp + 0x24]
push 0x4bc510
push eax
call fcn.004817b8
add esp, 0xc
test eax, eax
je 0x421d11
mov ebp, 2
jmp 0x421d21
xor ecx, ecx
cmp dword [esp + 0xc], 2
setne cl
lea ecx, [ecx + ecx + 1]
mov ebp, ecx
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.0047f460
add esp, 0x11c
ret
Function at 0x422250
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a3b18
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4d16b0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d16b0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea edi, [esp + 0x3c]
call fcn.00422590
add esp, 4
mov dword [esp + 0x60], ebx
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x4222a4
lea eax, [esp + 0x3c]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 1
push connect
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x422384
push 1
lea edi, [esp + 0x20]
call fcn.00422590
lea eax, [esp + 0x3c]
add esp, 4
push eax
call fcn.00422d30
add esp, 4
test al, al
jne 0x422337
mov ecx, edi
push ecx
call fcn.00422d30
add esp, 4
test al, al
je 0x422337
mov ecx, dword [esp + 0x3c]
mov edi, 8
cmp dword [esp + 0x50], edi
jae 0x422305
lea ecx, [esp + 0x3c]
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x422313
lea eax, [esp + 0x20]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x42233c
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x42232e
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x42233c
mov edi, 8
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x42234a
lea eax, [esp + 0x20]
push ebx
push ebx
push 3
push ebx
push 1
push connect
push eax
call ebp
cmp dword [esp + 0x34], edi
mov esi, eax
jb 0x42236e
mov edx, dword [esp + 0x20]
push edx
call fcn.0047f45b
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
je 0x4223b9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x10
jb 0x4223b2
push ebx
lea eax, [esp + 0x1c]
push eax
push edi
push 0x4d8580
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4223b2
cmp dword [esp + 0x18], edi
jne 0x4223b2
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x50], 8
jb 0x4223cd
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0047f45b
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0047f460
add esp, 0x50
ret
Function at 0x4223f0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a3b18
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4d16b0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d16b0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea edi, [esp + 0x3c]
call fcn.00422590
add esp, 4
mov dword [esp + 0x60], ebx
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x422444
lea eax, [esp + 0x3c]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x4224bb
push 1
lea edi, [esp + 0x20]
call fcn.00422590
mov eax, dword [esp + 0x24]
mov edi, 8
add esp, 4
cmp dword [esp + 0x34], edi
jae 0x422481
lea eax, [esp + 0x20]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call ebp
cmp dword [esp + 0x34], edi
mov esi, eax
jb 0x4224a5
mov eax, dword [esp + 0x20]
push eax
call fcn.0047f45b
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
je 0x4224e3
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x10
push 0x4d8580
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4224dc
cmp dword [esp + 0x18], 0x10
jne 0x4224dc
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x50], 8
jb 0x4224f7
mov edx, dword [esp + 0x3c]
push edx
call fcn.0047f45b
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0047f460
add esp, 0x50
ret