joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0x400
push 0x4577c4
call esi
push 0x400
push 0x457794
call esi
push 0x400
push 0x45777c
call esi
push 0x400
push 0x457760
call esi
push 0x400
push 0x4577ac
call esi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
pop esi
cmp eax, 1
jbe 0x4178e1
imul eax, eax, 0x96
mov dword [0x455a88], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x4574b0]
mov eax, dword [0x457644]
push 0x458c68
push 1
push 0
push 0x417c60
push 0
push 0
mov dword [0x458c74], 1
mov dword [0x457758], ecx
mov dword [0x45775c], edx
mov dword [0x457778], eax
call fcn.004247b9
push 0x458c70
push 1
push 0
push 0x4183d0
push 0
push 0
mov dword [0x4589fc], eax
call fcn.004247b9
add esp, 0x30
mov dword [0x458c6c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x417950
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4577c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x14
call fcn.004245a0
add esp, 4
test eax, eax
je 0x417981
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov esi, eax
jmp 0x417983
xor esi, esi
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push esi
mov dword [esi + 0x10], eax
call dword [0x457560]
mov eax, dword [ebp + 8]
push esi
push eax
call dword [0x4575bc]
add esp, 0xc
cmp dword [0x458c48], 0
jne 0x4179b9
mov dword [0x458c48], esi
jmp 0x4179c2
mov ecx, dword [0x458c4c]
mov dword [ecx + 4], esi
push 0x4577c4
mov dword [0x458c4c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [0x4589fc]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x418bf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4545c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0042c9e0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call esi
cmp dword [ebp - 0x11c], 6
jne 0x418c4b
cmp dword [ebp - 0x118], 2
jne 0x418c4b
cmp byte [ebp - 6], 1
je 0x418cca
push 0x11c
lea edx, [ebp - 0x120]
push 0
push edx
call fcn.0042c9e0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call esi
cmp dword [ebp - 0x11c], 6
jne 0x418c8c
cmp dword [ebp - 0x118], 3
jne 0x418c8c
cmp byte [ebp - 6], 1
je 0x418cca
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x418d0a
push str.SetProcessDPIAware
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x418caf
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004243bb
mov esp, ebp
pop ebp
ret
push str.Shcore.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x418d0a
push str.SetProcessDpiAwareness
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x418cef
push 2
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004243bb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004243bb
mov esp, ebp
pop ebp
ret
Function at 0x419350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push str.SystemCurrentcontrolsetServicesWin_Win7
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0x404
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4193b5
mov eax, 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.LanguageID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4193c0
Capabilities:
List tcp connections and listeners
List udp connections and listeners

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0x1c
xor esi, esi
nop
test esi, esi
je 0x4193ed
push esi
call fcn.00424a28
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.00424a1d
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
push 0
push esi
call fcn.0042c9e0
add esp, 0x10
push 0
push 5
push 2
push 1
lea edx, [ebp - 4]
push edx
push esi
call edi
cmp eax, 0x7a
je 0x4193e0
test eax, eax
jne 0x419467
xor edi, edi
cmp dword [esi], edi
jbe 0x419467
lea ebx, [esi + 0x18]
jmp 0x419430
movzx eax, word [ebx - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, 0x1fd6
cmp cx, ax
jne 0x41944a
cmp dword [ebx], 4
ja 0x419454
inc edi
add ebx, 0x18
cmp edi, dword [esi]
jb 0x419430
jmp 0x419467
mov ecx, dword [ebp + 8]
lea edx, [edi + edi*2 + 3]
mov eax, dword [esi + edx*8]
mov dword [ecx], eax
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 4]
push edx
push 0
push esi
call fcn.0042c9e0
push esi
call fcn.00424a28
mov eax, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
jne 0x41952f
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetExtendedUdpTable]
mov dword [ebp - 8], 0x10
xor esi, esi
test esi, esi
je 0x4194a3
push esi
call fcn.00424a28
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.00424a1d
mov ecx, dword [ebp - 8]
push ecx
mov esi, eax
push 0
push esi
call fcn.0042c9e0
add esp, 0x10
push 0
push 1
push 2
push 1
lea edx, [ebp - 8]
push edx
push esi
call edi
cmp eax, 0x7a
je 0x419496
test eax, eax
jne 0x419517
xor edi, edi
cmp dword [esi], edi
jbe 0x419517
lea ebx, [esi + 0xc]
mov edi, edi
movzx eax, word [ebx - 4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, 0x1fd6
cmp cx, ax
jne 0x4194fa
cmp dword [ebx], 4
ja 0x419504
inc edi
add ebx, 0xc
cmp edi, dword [esi]
jb 0x4194e0
jmp 0x419517
mov ecx, dword [ebp + 8]
lea edx, [edi + edi*2 + 3]
mov eax, dword [esi + edx*4]
mov dword [ecx], eax
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 8]
push edx
push 0
push esi
call fcn.0042c9e0
push esi
call fcn.00424a28
mov eax, dword [ebp - 0xc]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a2e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x4545c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
cmp dword [esi + 0x18], 0
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x454], ecx
je 0x41a389
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [edi], eax
test eax, eax
je 0x41a389
lea edx, [ebp - 0x448]
push edx
push eax
mov dword [ebp - 0x448], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x444], edi
cmp edi, 0xffffffff
je 0x41a389
push 0x228
lea eax, [ebp - 0x438]
push 0
push eax
call fcn.0042c9e0
add esp, 0xc
lea ecx, [ebp - 0x43c]
push ecx
push edi
mov dword [ebp - 0x43c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x41a39d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004243bb
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x41a3b0
mov edx, dword [ebp - 0x434]
cmp edx, dword [ebp - 0x448]
je 0x41a3d1
lea eax, [ebp - 0x43c]
push eax
push edi
call ebx
test eax, eax
jne 0x41a3b0
jmp 0x41a4a3
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.0042c9e0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x210]
push 0x44ea28
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x210]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a411
mov ebx, dword [esi + 0x18]
mov esi, dword [esi + 0x14]
sub eax, edx
lea edx, [ebp - 0x210]
push edx
sar eax, 1
mov edi, eax
push ebx
push esi
mov dword [ebp - 0x44c], esi
mov esi, edi
call fcn.0041afc0
add esp, 0xc
test eax, eax
je 0x41a457
xor eax, eax
mov word [ebp + edi*2 - 0x212], ax
lea edi, [ebp - 0x210]
jmp 0x41a492
mov ecx, dword [ebp - 0x44c]
push str.Line.exe_
push ebx
push ecx
mov esi, 9
call fcn.0041afc0
add esp, 0xc
test eax, eax
je 0x41a49d
mov edi, dword [ebp - 0x450]
call fcn.0041a4d0
test al, al
je 0x41a49d
mov edx, dword [ebp - 0x454]
mov byte [edx], 1
mov edi, str.Line.exe
mov esi, dword [ebp - 0x440]
call fcn.00418510
mov edi, dword [ebp - 0x444]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x440]
xor eax, eax
cmp eax, dword [ecx + 4]
mov ecx, dword [ebp - 4]
pop ebx
sbb eax, eax
pop edi
xor ecx, ebp
neg eax
pop esi
call fcn.004243bb
mov esp, ebp
pop ebp
ret 8
Function at 0x41a4d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x4545c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [edi]
xor eax, eax
push 8
lea ecx, [ebp - 0x14]
push ecx
push edx
mov word [ebp - 0x14], ax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x14]
lea edx, [eax + 2]
jmp 0x41a510
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a510
push esi
sub eax, edx
sar eax, 1
push str.LINE
push eax
lea eax, [ebp - 0x14]
push eax
mov esi, 4
call fcn.0041afc0
add esp, 0xc
test eax, eax
jne 0x41a54c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004243bb
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x92]
push edx
mov word [ebp - 0x94], cx
call fcn.0042c9e0
mov ecx, dword [edi]
add esp, 0xc
push 0x40
lea eax, [ebp - 0x94]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x94]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a582
sub eax, edx
sar eax, 1
push 0x44c65c
push eax
lea edx, [ebp - 0x94]
push edx
mov esi, 0x12
call fcn.0041afc0
mov ecx, dword [ebp - 4]
add esp, 0xc
test eax, eax
sete al
xor ecx, ebp
pop esi
call fcn.004243bb
mov esp, ebp
pop ebp
ret
Function at 0x41a840
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4384ab
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4545c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb8], ecx
xor ecx, ecx
mov dword [ebp - 0xb0], eax
mov ebx, edx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 4], ecx
mov edi, dword [eax + 0x24]
lea esi, [ebp - 0xac]
call fcn.00418510
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xa8]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x41a8b9
xor edx, edx
mov word [eax + ecx*2 - 2], dx
xor eax, eax
push 0x7e
push eax
lea ecx, [ebp - 0x92]
push ecx
mov dword [ebp - 0xb4], 0x40
mov word [ebp - 0x94], ax
call fcn.0042c9e0
add esp, 0xc
lea edx, [ebp - 0xb4]
push edx
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [ebp - 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebx + 4]
test eax, eax
je 0x41a91e
push eax
push ebx
call dword [0x457618]
add esp, 8
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x104
push ebx
mov dword [ebx + 4], 0x104
call dword [0x457610]
mov esi, dword [ebp - 0xb8]
movzx eax, word [ebp - 0x9e]
movzx ecx, word [ebp - 0xa2]
movzx edx, word [ebp - 0xa4]
add esp, 8
cmp dword [esi + 4], 0
jbe 0x41a997
movzx edi, word [ebp - 0x98]
mov esi, dword [esi]
push edi
movzx edi, word [ebp - 0x9a]
push edi
movzx edi, word [ebp - 0x9c]
push edi
push eax
push ecx
push edx
push esi
push eax
mov eax, dword [ebp - 0xac]
push ecx
mov ecx, dword [ebx]
push edx
lea edx, [ebp - 0x94]
push edx
push eax
push str._s_s_04u_02u_02u_s_04u__02u__02u__02u__02u__02u.jpg
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x38
jmp 0x41a9d4
movzx esi, word [ebp - 0x98]
push esi
movzx esi, word [ebp - 0x9a]
push esi
movzx esi, word [ebp - 0x9c]
push esi
push eax
push ecx
push edx
push eax
mov eax, dword [ebp - 0xac]
push ecx
mov ecx, dword [ebx]
push edx
lea edx, [ebp - 0x94]
push edx
push eax
push str._s_s_04u_02u_02u_04u__02u__02u__02u__02u__02u.jpg
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x34
mov edx, dword [ebp - 0xb0]
push edx
call fcn.0041aa30
mov bl, al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x41aa04
push eax
lea eax, [ebp - 0xac]
push eax
call dword [0x457618]
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004243bb
mov esp, ebp
pop ebp
ret 4
Function at 0x41b0f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4545c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0042c9e0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x41b152
cmp dword [ebp - 0x118], 0
jne 0x41b152
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004243bb
mov esp, ebp
pop ebp
ret
xor eax, eax
push str.GetNativeSystemInfo
push str.kernel32
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b1b2
lea edx, [ebp - 0x144]
push edx
call eax
movzx eax, word [ebp - 0x144]
cmp eax, 6
je 0x41b1d6
xor ecx, ecx
cmp eax, 9
sete cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004243bb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004243bb
mov esp, ebp
pop ebp
ret
Function at 0x41b5b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x4545c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x5c
push eax
mov dword [ebp - 0x448], eax
call fcn.0042443c
mov esi, eax
add esp, 8
test esi, esi
je 0x41b753
push 0x228
lea eax, [ebp - 0x434]
push 0
add esi, 2
push eax
mov dword [ebp - 0x44c], esi
mov dword [ebp - 0x438], 0x22c
call fcn.0042c9e0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x438]
mov edi, eax
push ecx
push edi
mov dword [ebp - 0x440], edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41b74c
mov ebx, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
jmp 0x41b640
lea edx, [ebp - 0x414]
push esi
push edx
call fcn.004321a7
add esp, 8
test eax, eax
jne 0x41b705
mov eax, dword [ebp - 0x430]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
lea ecx, [ebp - 0x43c]
mov edi, eax
push ecx
push edi
mov dword [ebp - 0x43c], 0
call ebx
push 0x208
lea edx, [ebp - 0x20c]
push 0
push edx
call fcn.0042c9e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x448]
lea ecx, [ebp - 0x20c]
push ecx
push edx
call fcn.004321a7
add esp, 8
test eax, eax
jne 0x41b705
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
lea eax, [ebp - 0x444]
push eax
push esi
mov dword [ebp - 0x444], 0
call ebx
mov ecx, dword [ebp - 0x444]
cmp ecx, dword [ebp - 0x43c]
jne 0x41b705
cmp edi, esi
jne 0x41b728
mov edi, dword [ebp - 0x440]
lea edx, [ebp - 0x438]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x41b74c
mov esi, dword [ebp - 0x44c]
jmp 0x41b640
mov eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x43c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004243bb
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x270f
pop ebx
call fcn.004243bb
mov esp, ebp
pop ebp
ret
Function at 0x41bee0
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x3c], 0
push edi
je 0x41befd
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov ebx, dword [sym.imp.MPR.dll_WNetAddConnection2W]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
push 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
push ecx
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x1c]
push eax
call ebx
mov edi, eax
cmp edi, 0x4c3
jne 0x41bf6c
mov ecx, dword [esi + 4]
push 1
push 0
push ecx
call dword [sym.imp.MPR.dll_WNetCancelConnection2W]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
push 4
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
call ebx
mov edi, eax
test edi, edi
je 0x41bf8a
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x10]
push edx
push 0x44ef50
push 6
xor edx, edx
call fcn.004167d0
add esp, 0xc
test edi, edi
sete al
pop edi
mov byte [esi + 0x3c], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41c0f0
Capabilities:
Copy file

Disassembly:
test byte [ecx + 0x1c], 0x10
push ebx
lea eax, [ecx + 0x20]
je 0x41c110
cmp dword [eax + 0x14], 8
jb 0x41c102
mov eax, dword [eax]
mov edx, dword [ecx + 0xc]
push edx
push eax
call fcn.0041c500
mov bl, al
jmp 0x41c131
cmp dword [eax + 0x14], 8
jb 0x41c118
mov eax, dword [eax]
xor edx, edx
cmp byte [ecx + 0x18], dl
mov ecx, dword [ecx + 0xc]
sete dl
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
xor edx, edx
xor ecx, ecx
push 0
test bl, bl
je 0x41c14e
push str.Download_successful._NetworkDownload_
push 3
call fcn.004167d0
add esp, 0xc
mov al, bl
pop ebx
ret
push str.Download_failed._NetworkDownload_
push 3
call fcn.004167d0
add esp, 0xc
mov al, bl
pop ebx
ret
Function at 0x4243bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4545c0]
jne 0x4243c5
repz ret
jmp fcn.00427767

Function at 0x425f14
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x425f3b
call fcn.00427df7
mov dword [eax], esi
call fcn.00427de4
push 0x16
pop esi
mov dword [eax], esi
call fcn.0042894a
mov eax, esi
jmp 0x425f90
test dword [ebp + 0xc], 0xfffffff9
jne 0x425f21
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x425f68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00427e0a
pop ecx
call fcn.00427de4
mov eax, dword [eax]
jmp 0x425f90
test al, 0x10
jne 0x425f8e
test al, 1
je 0x425f8e
test byte [ebp + 0xc], 2
je 0x425f8e
call fcn.00427df7
mov dword [eax], 5
call fcn.00427de4
mov dword [eax], 0xd
jmp 0x425f5f
xor eax, eax
pop esi
pop ebp
ret
Function at 0x431c32
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4545c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00427e2d
and dword [ebp - 0x14], 0
cmp dword [0x457108], 0
mov dword [ebp - 0x18], eax
jne 0x431ce5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x431d8d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x431d8d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x457108], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45710c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x457110], eax
call edi
push eax
call esi
mov dword [0x457118], eax
test eax, eax
je 0x431ce5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x457114], eax
mov eax, dword [0x457114]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x431d3e
cmp dword [0x457118], ecx
je 0x431d3e
push eax
call esi
push dword [0x457118]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x431d3e
test ebx, ebx
je 0x431d3e
call edi
test eax, eax
je 0x431d35
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x431d35
test byte [ebp - 8], 1
jne 0x431d3e
or dword [ebp + 0x10], 0x200000
jmp 0x431d71
mov eax, dword [0x45710c]
cmp eax, dword [ebp - 0x18]
je 0x431d71
push eax
call esi
test eax, eax
je 0x431d71
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x431d71
mov eax, dword [0x457110]
cmp eax, dword [ebp - 0x18]
je 0x431d71
push eax
call esi
test eax, eax
je 0x431d71
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x457108]
call esi
test eax, eax
je 0x431d8d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x431d8f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004243bb
leave
ret
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x402118
push str.outputconsoleapplication1.exe
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov edi, eax
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push edi
mov ebx, eax
call esi
xor edx, edx
mov ecx, ebx
add ecx, 1
setb dl
neg edx
or edx, ecx
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push edi
push ebx
push 1
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [ebp - 4]
add esp, 0x3c
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putchar]
xor esi, esi
mov byte [ebx + eax], 0
movsx eax, byte [esi + eax]
push eax
call edi
mov eax, dword [ebp - 4]
inc esi
add esp, 4
cmp esi, ebx
jl 0x401072
jmp 0x401084

Function at 0x401891
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4018d0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4018d0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4018d0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4018d0
cmp dword [ecx + 0x74], 0xe
jbe 0x4018d0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret