joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4310c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46acf8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4310f9
inc eax
mov dword [esi + 0x10], eax
jmp 0x43120c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43110d
mov eax, 0xffffffc7
jmp 0x43120e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43111e
cmp dword [esi + 8], eax
jne 0x43110d
cmp dword [esi + 8], eax
jne 0x431137
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x431137
mov eax, 0xffffffc7
jmp 0x43120e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43114b
push eax
mov ecx, ebx
call fcn.004308f0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401ee0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43117c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401f00
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00430060
test eax, eax
mov dword [esp + 0x38], eax
je 0x4311af
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46f510
call fcn.004020e0
mov eax, dword [esp + 0x38]
jmp 0x43120e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00430f20
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4311f3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00430f40
mov esi, eax
test esi, esi
jne 0x431223
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00430f20
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4311c5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46f510
call fcn.004020e0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46f510
call fcn.004020e0
mov eax, esi
jmp 0x43120e

Function at 0x434340
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4343a0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4343a0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4343a0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4343a0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4343e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43a530
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46b328
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00463d8b
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00439ed0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00463cb9
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00460574
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00460574
push 1
push 0
push 0
mov ecx, esi
call fcn.0046051c
push 1
push 0
push 1
mov ecx, esi
call fcn.0046051c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00463dfd
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43a6b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46b348
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00463d8b
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00439ed0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00463cb9
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43a774
cmp dword [esp + 0x40], 1
jne 0x43a772
cmp ecx, eax
jge 0x43a774
mov eax, ecx
cmp eax, 0xc8
jge 0x43a780
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043a530
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00463dfd
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43af00
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46b3b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045e995
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00464033
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046554f
test eax, eax
je 0x43b01c
mov ecx, dword [esp + 0x3c]
call fcn.00464060
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43afe0
push edi
mov ecx, esi
call fcn.004616c2
mov ecx, esi
call fcn.0043b180
cmp dword [esp + 0x38], 1
jne 0x43b015
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004617fd
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43da40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43da73
push esi
call fcn.00440b30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43da6c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43daf9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43dae2
mov eax, dword [esi + 8]
test eax, eax
je 0x43da97
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43dade
cmp eax, 2
je 0x43dae2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43da8a
cmp eax, 3
je 0x43dabd
cmp eax, 1
jne 0x43da8a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43da8a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43da8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043db20
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43db08
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043db20
add esp, 4
pop esi
ret

Function at 0x448ee0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x448f46
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x448f46
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x448f27
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4492d0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x449308
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x449fd0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44a019
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x44a490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46b8b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044a040
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044a0c0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044a0c0
lea ecx, [esi + 0xc]
call fcn.0045d371
lea ecx, [esi + 0x10]
call fcn.0045d371
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044b650
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044b650
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044b650
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045d3e6
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045d3e6
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45f78a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45f7c2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045d841
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045d819
jmp 0x45f7ce
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x460e7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x460ebe
call fcn.00466bf0
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x460ebe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x460eb5
xor eax, eax
jmp 0x460ec6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00460ecc
pop edi
pop esi
pop ebx
ret 4

Function at 0x467120
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46714e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46716c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00467086
jmp 0x46716c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46716c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00467086
test edi, edi
mov eax, edi
jne 0x467156
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4144de
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420044]
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.0040c83f
and dword [ebp - 0x14], 0
cmp dword [0x4225d8], 0
mov dword [ebp - 0x18], eax
jne 0x414591
push 0x41b314
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414639
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41b308
push ebx
call edi
test eax, eax
je 0x414639
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x41b2f8
push ebx
mov dword [0x4225d8], eax
call edi
push eax
call esi
push 0x41b2e4
push ebx
mov dword [0x4225dc], eax
call edi
push eax
call esi
push 0x41b2c8
push ebx
mov dword [0x4225e0], eax
call edi
push eax
call esi
mov dword [0x4225e8], eax
test eax, eax
je 0x414591
push 0x41b2b0
push ebx
call edi
push eax
call esi
mov dword [0x4225e4], eax
mov eax, dword [0x4225e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4145ea
cmp dword [0x4225e8], ecx
je 0x4145ea
push eax
call esi
push dword [0x4225e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4145ea
test ebx, ebx
je 0x4145ea
call edi
test eax, eax
je 0x4145e1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4145e1
test byte [ebp - 8], 1
jne 0x4145ea
or dword [ebp + 0x10], 0x200000
jmp 0x41461d
mov eax, dword [0x4225dc]
cmp eax, dword [ebp - 0x18]
je 0x41461d
push eax
call esi
test eax, eax
je 0x41461d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41461d
mov eax, dword [0x4225e0]
cmp eax, dword [ebp - 0x18]
je 0x41461d
push eax
call esi
test eax, eax
je 0x41461d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4225d8]
call esi
test eax, eax
je 0x414639
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41463b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a7df
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x40155a
Capabilities:
Enumerate network shares

Disassembly:
push 0x20
mov eax, 0x42f429
call fcn.0041ae41
mov ebx, ecx
mov esi, edx
and dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov eax, dword [edi - 0xc]
cmp eax, 1
jl 0x40173f
cmp ebx, 1
je 0x40159a
cmp ebx, 2
je 0x40159a
cmp ebx, 3
je 0x40159a
cmp ebx, 4
je 0x40159a
cmp ebx, 5
jne 0x40173f
lea eax, [ebp + 8]
lea ecx, [esi + 0x4c]
push eax
call fcn.00408f44
mov dword [esi + 0x50], ebx
add esi, 0x40
push 0x4341b0
mov ecx, esi
mov dword [ebp - 0x28], esi
call fcn.0040910e
mov eax, dword [edi - 0xc]
cmp eax, 2
jl 0x4016bc
xor esi, esi
inc esi
cmp ebx, esi
jne 0x4016bc
cmp eax, esi
jge 0x4015e0
push 0x80070057
call fcn.00401027
movzx eax, word [edi + 2]
cmp ax, 0x3a
jne 0x4016bc
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push esi
push esi
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x4016bc
mov dword [ebp - 0x14], esi
mov esi, 0x4000
push esi
mov dword [ebp - 0x10], esi
call fcn.0040f40a
pop ecx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
mov edi, eax
je 0x401699
mov byte [eax], 0
inc eax
dec ecx
jne 0x401620
jmp 0x401699
push dword [edi + 0x10]
lea ecx, [ebp - 0x18]
call fcn.00408779
push 2
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00408c35
push dword [ebp - 0x18]
mov eax, dword [eax]
push eax
call fcn.00418f4c
pop ecx
mov ebx, eax
pop ecx
mov ecx, dword [ebp - 0x20]
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00401128
test bl, bl
je 0x401675
push dword [edi + 0x14]
lea ecx, [ebp + 8]
call fcn.0040910e
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], esi
mov ecx, esi
mov eax, edi
mov byte [eax], 0
inc eax
dec ecx
jne 0x401683
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401128
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
je 0x401629
push edi
call fcn.0040f40f
mov edi, dword [ebp + 8]
pop ecx
push 2
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 8]
call fcn.00408c35
push 0x4341b4
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00408e77
mov ebx, eax
neg ebx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00401128
test bl, bl
je 0x401733
push 0x4341bc
push 2
pop ecx
lea esi, [ebp + 8]
call fcn.00408a59
cmp eax, 0xffffffff
je 0x401733
add eax, 0xfffffffe
push eax
push 2
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00408b70
mov ecx, dword [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.00408f44
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00401128
lea ecx, [edi - 0x10]
call fcn.00401128
xor eax, eax
jmp 0x40175b
push 0x4341b0
lea ecx, [esi + 0x4c]
call fcn.0040910e
and dword [esi + 0x50], 0
lea ecx, [edi - 0x10]
call fcn.00401128
push 3
pop eax
call fcn.0041aee0
ret 4
Function at 0x401821
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x42efed
call fcn.0041ae41
lea eax, [ebp + 8]
xor ebx, ebx
lea ecx, [edi + 0xe4]
push eax
mov dword [ebp - 4], ebx
call fcn.00408f44
lea esi, [edi + 0xe8]
mov eax, dword [esi]
cmp eax, ebx
je 0x401856
push eax
call fcn.00419fd0
pop ecx
mov dword [esi], ebx
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 8]
push 0x4341d8
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00418cee
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0x10], eax
setne al
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
je 0x401888
push dword [ebp - 0x10]
call fcn.00419fd0
pop ecx
push 0x4341dc
push ebx
push esi
call fcn.00418cee
mov esi, dword [esi]
add esp, 0xc
test esi, esi
je 0x4018ca
test eax, eax
jne 0x4018ca
cmp dword [ebp - 0x14], eax
jne 0x4018be
push esi
push 1
lea eax, [ebp + 8]
push 2
push eax
mov dword [ebp + 8], 0xfeff
call fcn.00419e07
add esp, 0x10
lea ecx, [ebx - 0x10]
call fcn.00401128
xor eax, eax
jmp 0x401913
lea eax, [ebp - 0x14]
push str.ERROR:_Opening_log_file:__
push eax
lea ecx, [ebp + 8]
call fcn.00408d4e
add esp, 4
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.__failed_
push eax
push ecx
mov byte [ebp - 4], 1
call fcn.00408cea
add esp, 0xc
mov ecx, edi
call fcn.00401797
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401128
lea ecx, [ebx - 0x10]
call fcn.00401128
push 0x22
pop eax
call fcn.0041aee0
ret 4

Function at 0x403193
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [edi + 0xd8]
mov eax, dword [esi]
test eax, eax
je 0x4031ae
push eax
call fcn.00419fd0
and dword [esi], 0
pop ecx
mov eax, dword [edi + 0xd4]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4031ec
push 0x434bd8
push eax
push esi
call fcn.00418cee
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
je 0x403226
test eax, eax
jne 0x403226
push ecx
push 1
lea eax, [ebp - 4]
push 2
push eax
mov dword [ebp - 4], 0xfeff
call fcn.00419e07
add esp, 0x10
cmp dword [edi + 0x50], 1
jne 0x403210
push 0x4050a9
push ecx
lea eax, [edi + 0x4c]
mov dword [ebp - 4], esp
mov ecx, esp
push eax
call fcn.00408f26
mov ecx, edi
call fcn.00403d82
mov dword [ebp - 4], eax
mov eax, dword [esi]
test eax, eax
je 0x403220
push eax
call fcn.00419fd0
and dword [esi], 0
pop ecx
mov eax, dword [ebp - 4]
pop esi
leave
ret
push 0x22
pop eax
jmp 0x403223