joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bb0
Capabilities:
Generate random numbers via rtlgenrandom
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push edi
push 0
push 0x40000080
push 3
push 0
push 1
mov edi, ecx
push 0xc0000000
push edi
mov dword [ebp - 0x54], edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x401c0a
push 0
push 0x40000080
push 3
push 0
push 1
push 0xc0000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x401d6a
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x50]
or eax, dword [ebp - 0x4c]
je 0x401d63
push 0
push 0
push dword [0x406380]
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x401d63
push 4
push 0x3000
push 0x100514
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x58], ebx
test ebx, ebx
je 0x401d6a
mov dword [ebx + 0x14], esi
lea eax, [ebx + 0x6c]
mov ecx, dword [ebp - 0x50]
lea esi, [ebx + 0x1000f8]
mov edx, dword [ebp - 0x4c]
push 0x100084
push 0
push eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov dword [ebx + 0x10], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebx + 0x100104]
push edi
push eax
call esi
push dword [ebp - 0x54]
lea edi, [ebx + 0x10030c]
push edi
call esi
push 0x404580
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x40
lea eax, [ebp - 0x48]
mov dword [ebx + 0x1000f0], 0x100000
push eax
mov dword [ebx + 0x1000f4], 3
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x100100], 0
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
lea edi, [ebx + 0x28]
mov ebx, 0x10
lea eax, [ebp - 0x48]
sub eax, edi
mov dword [ebp - 0x54], eax
xor esi, esi
mov dword [edi], 0
xor ecx, ecx
lea edx, [eax + edi]
nop
movzx eax, byte [edx]
lea edx, [edx + 1]
shl eax, cl
add ecx, 8
or esi, eax
cmp ecx, 0x20
jl 0x401d20
mov eax, dword [ebp - 0x54]
mov dword [edi], esi
add edi, 4
sub ebx, 1
jne 0x401d11
push dword [ebp - 0x58]
push 0
push 0
push dword [0x406380]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040237f
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040237f
mov esp, ebp
pop ebp
ret
Function at 0x401d80
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shl eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401e1f
mov ecx, dword [ebp - 0x14]
add ecx, ecx
push ecx
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x406380], eax
xor esi, esi
mov eax, dword [ebp - 0x14]
add eax, eax
je 0x401e0b
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [eax]
push 0
push 0
push 0
push 0x401760
push 0
push 0
call edi
mov eax, dword [ebp - 0x14]
inc esi
add eax, eax
cmp esi, eax
jb 0x401df0
call fcn.00401ff0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3a98
call esi
jmp 0x401e16
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040237f
mov esp, ebp
pop ebp
ret
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4038d0
Capabilities:
Hide graphical window

Disassembly:
jmp 0x437f50
push 0xffffffffffffffff
push 0x4d6e39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x4d89a0
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], 1
push eax
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
je 0x437fa0
mov ecx, dword [esi + 0xc]
push 0
push ecx
call dword [sym.imp.user32.dll_ShowWindow]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.user32.dll_DestroyWindow]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x437fae
push eax
call dword [sym.imp.user32.dll_DestroyCursor]
mov eax, dword [esi + 0x68]
push eax
call fcn.004c7e56
mov eax, dword [esi + 0x90]
push eax
call fcn.004c7e56
mov eax, dword [esi + 0x6c]
push eax
call fcn.004c7e56
add esp, 0xc
lea ecx, [esi + 0x1c4]
mov byte [esp + 0x14], 0
call fcn.00436810
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x14], 0xffffffff
test eax, eax
mov dword [esi + 0x3c], 0x4d89d8
je 0x43802a
mov eax, dword [esi + 0x44]
xor edi, edi
test eax, eax
jle 0x43802a
cmp edi, eax
push ebx
jge 0x438021
test edi, edi
jl 0x438021
mov eax, dword [esi + 0x40]
mov ebx, dword [eax + edi*4]
test ebx, ebx
je 0x438021
mov ecx, ebx
call fcn.00453a10
push ebx
call fcn.004c7e56
add esp, 4
mov eax, dword [esi + 0x44]
inc edi
cmp edi, eax
jl 0x438003
pop ebx
mov ecx, dword [esi + 0x40]
push ecx
call fcn.004c7e56
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x404120
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [sym.imp.user32.dll_SendMessageA]
push 0
push eax
push 0x419
push esi
call edi
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x41d
push esi
call edi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
mov dword [esp + 8], eax
lea eax, [edx + ecx]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.user32.dll_ClientToScreen]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.user32.dll_SetCursorPos]
pop edi
pop esi
add esp, 0x18
ret

Function at 0x4041a0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x18
lea eax, [esp]
push esi
push edi
push eax
call dword [sym.imp.user32.dll_GetCursorPos]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.user32.dll_ScreenToClient]
mov edx, dword [esp + 0x28]
mov edi, dword [sym.imp.user32.dll_SendMessageA]
push 0
push edx
push 0x419
push esi
call edi
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x41d
push esi
call edi
pop edi
pop esi
test eax, eax
jne 0x4041ed
add esp, 0x18
ret
mov edx, dword [esp + 4]
mov eax, dword [esp]
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.user32.dll_PtInRect]
add esp, 0x18
ret
Function at 0x404ce0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d61cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
mov eax, dword [esp + 0x1cc]
mov ecx, dword [esp + 0x1c8]
push ebp
mov ebp, dword [esp + 0x1c8]
push esi
push edi
push 1
push eax
push ecx
push ebp
lea ecx, [esp + 0x70]
call fcn.0042a2e0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c8], 0
cmp eax, 1
jne 0x404dc9
mov eax, dword [esp + 0x1dc]
test eax, eax
je 0x404dc9
mov esi, dword [sym.imp.user32.dll_LoadCursorA]
push ebx
push 0x7f02
push 0
call esi
mov ebx, dword [sym.imp.user32.dll_SetCursor]
push eax
call ebx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, 0x80000000
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x70]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
push 0x7f00
push 0
mov edi, eax
call esi
push eax
call ebx
test edi, edi
pop ebx
jne 0x404dc9
push 0x1fe
push ebp
push 0xfffffffffffffffa
push ebp
call dword [sym.imp.user32.dll_GetWindowLongA]
push eax
call fcn.00443860
add esp, 0xc
mov eax, dword [esp + 0x1b4]
mov dword [esp + 0x1c8], 0xffffffff
test eax, eax
mov dword [esp + 0x1a4], 0x4d8700
je 0x404e29
mov eax, dword [esp + 0x1ac]
xor edi, edi
test eax, eax
jle 0x404e29
cmp edi, eax
jge 0x404e24
test edi, edi
jl 0x404e24
mov edx, dword [esp + 0x1a8]
mov esi, dword [edx + edi*4]
test esi, esi
je 0x404e24
mov ecx, esi
call fcn.0042a2a0
push esi
call fcn.004c7e56
mov eax, dword [esp + 0x1b0]
add esp, 4
inc edi
cmp edi, eax
jl 0x404dfb
mov eax, dword [esp + 0x1a8]
push eax
call fcn.004c7e56
mov ecx, dword [esp + 0x1c4]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x1c0
ret

Function at 0x404ed0
Capabilities:
Create process on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x7f02
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov edi, dword [sym.imp.user32.dll_SetCursor]
push eax
call edi
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [esp + 0x1c]
push 5
push eax
push 0
push ebp
push ecx
call dword [sym.imp.user32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.shell32.dll_ShellExecuteA]
push ebx
mov esi, eax
call edi
cmp esi, 0x1b
je 0x404f28
cmp esi, 0x1f
je 0x404f28
xor eax, eax
cmp esi, 0x20
pop edi
pop esi
pop ebp
pop ebx
setg al
ret
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 1
push edx
push ebp
push eax
call fcn.00404ce0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405720
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x370
push esi
push edi
mov esi, ecx
push eax
call fcn.0044b360
mov edi, dword [sym.imp.shell32.dll_SHGetFileInfo]
add esp, 4
lea ecx, [esp + 8]
mov dword [esi], eax
push 0x4209
push 0x160
push ecx
push 0
push eax
mov dword [esi + 0xc], 0
call edi
test eax, eax
je 0x405765
lea edx, [esp + 0x14]
push edx
jmp 0x40576a
push 0x4fbe40
call fcn.00442c90
mov edx, dword [esi]
add esp, 4
lea ecx, [esp + 0x270]
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
push ecx
push edx
mov dword [esi + 0x10], eax
call dword [sym.imp.shell32.dll_SHGetPathFromIDList]
test eax, eax
je 0x40582f
push 0
lea eax, [esp + 0x16c]
push 0x640001
lea ecx, [esp + 0x278]
push eax
push ecx
push 0
call fcn.0044bb70
add esp, 0x14
test eax, eax
jl 0x40582f
lea edx, [esp + 0x168]
push edx
call fcn.00442c90
add esp, 4
mov dword [esi + 8], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x168]
push 0x800
push 0x160
push eax
push 0
push ecx
call edi
test eax, eax
je 0x40582f
test dword [esp + 0x10], 0x20000000
je 0x40580a
mov dword [esi + 0xc], 1
mov eax, esi
pop edi
pop esi
add esp, 0x370
ret 4
push 0x2000
lea edx, [esp + 0xc]
push 0x160
push edx
lea eax, [esp + 0x174]
push 0
push eax
call edi
neg eax
sbb eax, eax
add eax, 3
mov dword [esi + 0xc], eax
mov eax, esi
pop edi
pop esi
add esp, 0x370
ret 4
Function at 0x405980
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 0x10
lea eax, [esp + 0x18]
push 0x405b80
push eax
mov dword [esp + 0x20], ebp
call sub.user32.dll_DdeInitializeA
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x405b77
mov ecx, dword [esp + 0x10]
push 0x3ec
push 0x4ee45c
push ecx
call sub.user32.dll_DdeCreateStringHandleA
mov edx, dword [esp + 0x10]
push 0x3ec
mov esi, eax
push 0x4ee3b4
push edx
mov dword [esp + 0x28], esi
call sub.user32.dll_DdeCreateStringHandleA
mov edi, eax
mov eax, dword [esp + 0x10]
push ebp
push edi
push esi
push eax
mov dword [esp + 0x28], edi
call sub.user32.dll_DdeConnect
mov ebx, eax
cmp ebx, ebp
jne 0x405a64
mov ecx, dword [esp + 0x10]
push ecx
call sub.user32.dll_DdeGetLastError
cmp eax, 0x400a
jne 0x405b53
mov edx, dword [esp + 0x74]
push 0xa
push 0x4fbe40
push 0x4ee308
push edx
push ebp
push ebp
call dword [sym.imp.shell32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x405b77
test ebx, ebx
jne 0x405a64
mov eax, dword [esp + 0x10]
push ebx
push edi
push esi
push eax
call sub.user32.dll_DdeConnect
mov ebx, eax
test ebx, ebx
jne 0x405a4e
mov ecx, dword [esp + 0x10]
push ecx
call sub.user32.dll_DdeGetLastError
mov dword [esp + 0x14], eax
push 0x32
call dword [sym.imp.kernel32.dll_Sleep]
inc ebp
cmp ebp, 0x14
jl 0x405a29
test ebx, ebx
je 0x405b53
mov al, byte [0x4ee458]
mov edx, dword [0x4ee454]
mov byte [esp + 0x24], al
mov ecx, 0x12
xor eax, eax
lea edi, [esp + 0x25]
mov dword [esp + 0x20], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x7c]
cmp eax, 0xffffffff
je 0x405aaa
test eax, eax
mov eax, 0x4ee3f8
jne 0x405a9e
mov eax, 0x4ee3f0
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcat]
mov eax, dword [esp + 0x80]
cmp eax, 0xffffffff
je 0x405ad0
test eax, eax
mov eax, 0x4ee3e4
jne 0x405ac4
mov eax, 0x4ee3d8
lea edx, [esp + 0x20]
push eax
push edx
call dword [sym.imp.kernel32.dll_lstrcat]
mov ebp, dword [esp + 0x78]
mov edi, dword [sym.imp.kernel32.dll_lstrlen]
push ebp
call edi
mov esi, eax
lea eax, [esp + 0x20]
push eax
call edi
lea ecx, [esi + eax + 5]
push ecx
call fcn.004c7e90
add esp, 4
lea edx, [esp + 0x20]
mov esi, eax
push edx
push 0x4ee44c
push esi
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
push ebp
mov ebp, dword [sym.imp.kernel32.dll_lstrcat]
push esi
call ebp
push 0x4ee448
push esi
call ebp
push 0
push 0xffffffffffffffff
push 0x4050
push 0
push 0
push ebx
push esi
call edi
inc eax
push eax
push esi
call sub.user32.dll_DdeClientTransaction
mov eax, dword [esp + 0x10]
push eax
call sub.user32.dll_DdeGetLastError
push esi
mov dword [esp + 0x18], eax
call fcn.004c7e56
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
add esp, 4
mov ecx, dword [esp + 0x10]
push esi
push ecx
call sub.user32.dll_DdeFreeStringHandle
mov edx, dword [esp + 0x10]
push edi
push edx
call sub.user32.dll_DdeFreeStringHandle
mov eax, dword [esp + 0x10]
push eax
call sub.user32.dll_DdeUninitialize
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
Function at 0x405dc0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x13c
mov ecx, dword [esp + 0x144]
push ebx
lea eax, [esp + 8]
push edi
xor edi, edi
push eax
push ecx
mov dword [esp + 0x14], edi
call fcn.0044b4f0
add esp, 8
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x405f28
push eax
call fcn.0044b810
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x405f28
mov edx, dword [ebx]
push ebp
mov ebp, dword [esp + 0x14c]
lea eax, [esp + 0xc]
push esi
push eax
push edi
lea ecx, [esp + 0x1c]
push 0x4d8a18
push ecx
push 1
push ebp
push ebx
call dword [edx + 0x28]
mov esi, eax
cmp esi, edi
jl 0x405ef9
call dword [sym.imp.user32.dll_CreatePopupMenu]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x405eef
mov ecx, dword [esp + 0x10]
push 4
push 0x7fff
push 1
mov edx, dword [ecx]
push edi
push eax
push ecx
call dword [edx + 0xc]
mov esi, eax
cmp esi, edi
jl 0x405ee4
mov eax, dword [esp + 0x15c]
mov ecx, dword [esp + 0x158]
mov edx, dword [esp + 0x18]
push edi
push ebp
push edi
push eax
push ecx
push 0x102
push edx
call dword [sym.imp.user32.dll_TrackPopupMenu]
cmp eax, edi
je 0x405ee4
dec eax
mov dword [esp + 0x20], 0x24
and eax, 0xffff
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x44]
push eax
push 0x105
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov esi, eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.user32.dll_DestroyMenu]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0044b4a0
mov edx, dword [esp + 0x18]
push edx
call fcn.0044b4a0
add esp, 8
xor eax, eax
cmp esi, edi
pop esi
pop ebp
pop edi
pop ebx
setge al
add esp, 0x13c
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x13c
ret
Function at 0x4064a0
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x20]
movsx eax, byte [esi]
push eax
call fcn.004c8393
add esp, 4
cmp al, 0x41
mov byte [esp + 0x20], al
jl 0x406614
cmp al, 0x5a
jg 0x406614
cmp byte [esi + 1], 0x3a
jne 0x406614
mov al, byte [esi + 2]
add esi, 2
cmp al, 0x5c
mov dword [esp + 0x14], esi
jne 0x406614
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x406614
push ebx
push ebp
mov ebx, 0x640
push edi
push ebx
call fcn.004c8a1a
add esp, 4
mov ebp, eax
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push ebp
push eax
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0xffffffff
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x406555
mov eax, dword [esp + 0x14]
push eax
push ebp
mov ebx, eax
call fcn.004c86eb
add esp, 8
mov ebp, eax
jmp 0x406519
test eax, eax
jne 0x4065f5
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jle 0x406519
lea edi, [ebp + 0x10]
mov eax, dword [edi]
test eax, eax
je 0x406585
movsx edx, byte [eax]
push edx
call fcn.004c8393
movsx ecx, byte [esp + 0x30]
add esp, 4
cmp ecx, eax
je 0x406593
mov eax, dword [esp + 0x10]
inc esi
add edi, 0x20
cmp esi, eax
jl 0x40656a
jmp 0x406519
shl esi, 5
or ecx, 0xffffffff
xor eax, eax
mov edi, dword [esi + ebp + 0x14]
mov edx, dword [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x20], 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004c85b7
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call sub.mpr.dll_WNetCloseEnum
push ebp
call fcn.004c84ce
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret
xor eax, eax
pop esi
add esp, 0x14
ret
Function at 0x408600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x220
push esi
mov esi, ecx
push edi
lea eax, [esp + 0x20]
mov ecx, dword [esi + 0x200]
push 0x104
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea edx, [esp + 0x20]
push 0x4ee5ac
push edx
call fcn.00443d50
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_lstrcpy]
mov edx, dword [esi + 0xc]
mov ecx, 6
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.user32.dll_SendMessageA]
lea ecx, [esp + 8]
push ecx
push 0
lea eax, [esp + 0x12c]
push 0x1045
push edx
mov dword [esp + 0x18], 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x104
call edi
test eax, eax
je 0x4086e9
cmp dword [esi + 0x4c4], 8
jle 0x4086cf
mov eax, dword [0x4fb8c0]
cmp eax, 3
je 0x4086cf
cmp eax, 5
je 0x4086cf
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4086cf
lea ecx, [esp + 0x20]
lea edx, [esp + 0x124]
push ecx
push edx
call dword [sym.imp.kernel32.dll_lstrcmpi]
test eax, eax
je 0x4086e9
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x12
mov dword [esp + 0x10], eax
jmp 0x4086d7
mov dword [esp + 8], 0
mov edx, dword [esi + 0xc]
lea ecx, [esp + 8]
push ecx
push 0
push 0x1044
push edx
call edi
pop edi
pop esi
add esp, 0x220
ret
Function at 0x40b200
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.user32.dll_UpdateWindow]
push 0x4fb718
call dword [sym.imp.kernel32.dll_lstrlen]
test eax, eax
je 0x40b288
mov eax, dword [0x4fb714]
test eax, eax
je 0x40b288
push 0
push 0x4fb718
call fcn.004c818e
add esp, 8
cmp eax, 0xffffffff
jne 0x40b272
push 0x5c
push 0x4fb718
call fcn.004c82b0
add esp, 8
test eax, eax
je 0x40b26b
push 0
push 0x4fb718
mov byte [eax], 0
call fcn.004c818e
add esp, 8
cmp eax, 0xffffffff
je 0x40b23f
jmp 0x40b272
mov byte [0x4fb718], 0
push 0
push 0
push 1
push 0x4fb718
mov ecx, esi
call fcn.00411e90
test eax, eax
jne 0x40b2aa
lea ecx, [esp + 4]
push ecx
push 0x105
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
push 0
push 0
lea edx, [esp + 0xc]
push 1
push edx
mov ecx, esi
call fcn.00411e90
pop esi
add esp, 0x108
ret

Function at 0x40b2c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.0041a060
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.user32.dll_ShowWindow]
pop esi
ret

Function at 0x40b2e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.user32.dll_GetFocus]
cmp eax, dword [esi + 0x24]
jne 0x40b329
push 0xffffffffffffffff
mov ecx, esi
call fcn.00418060
test eax, eax
je 0x40b404
mov eax, dword [eax + 8]
mov ecx, dword [esi + 8]
push 5
push 0
push 0
push eax
push 0
push ecx
call dword [sym.imp.shell32.dll_ShellExecuteA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov edx, dword [esi + 0xc]
push 0
push 0
push 0x1032
push edx
call dword [sym.imp.user32.dll_SendMessageA]
mov edi, eax
cmp edi, 1
jl 0x40b404
push 0x7f02
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov ebx, dword [sym.imp.user32.dll_SetCursor]
push eax
call ebx
cmp edi, 1
mov ebp, eax
mov ecx, esi
jg 0x40b3fc
call fcn.00412510
mov ecx, eax
test ecx, ecx
je 0x40b404
mov eax, dword [ecx + 0xc]
test eax, eax
mov eax, dword [ecx + 8]
je 0x40b3d0
cmp eax, 2
jne 0x40b39d
mov ecx, esi
call fcn.0040c570
push ebp
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
lea eax, [esp + 0x10]
push 1
lea edx, [esi + 0x20c]
push eax
push edx
call fcn.0041df30
push 0
push 0
lea eax, [esp + 0x18]
push 1
push eax
mov ecx, esi
call fcn.00411e90
push ebp
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
test eax, eax
jne 0x40b401
mov eax, dword [ecx + 0x3c]
test eax, eax
jge 0x40b3fa
call fcn.0041df00
test eax, eax
jne 0x40b3fa
push eax
mov ecx, esi
call fcn.0040bf10
push ebp
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov ecx, esi
call fcn.0040b410
push ebp
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret