joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402850
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
push 3
mov esi, eax
call dword [sym.imp.USER32.dll_SetDebugErrorLevel]
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004579a0
mov eax, 1
mov dword [esp + 0x58], eax
mov word [esp + 0x5c], ax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x10]
add esp, 0xc
test eax, eax
mov dword [esp + 0x20], 0x44
je 0x4028ab
cmp byte [eax], 0
jne 0x4028ad
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [esi + 8]
and eax, 0x2000
neg eax
push 0
sbb eax, eax
add eax, 2
or eax, 0x4000220
push eax
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0x14]
push edx
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x1c], 0
je 0x402a04
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov edx, dword [esi + 0x24]
mov eax, dword [esp + 0x18]
mov dword [edx + 0x378], eax
push 0xffffffffffffffff
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x4029cd
mov dword [esi + 0x88], 0x10002
cmp byte [0x48d648], 0
je 0x402952
mov ecx, esi
call fcn.00402a10
jmp 0x4029ac
mov edi, dword [0x48d51c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x48d580]
jne 0x40296c
push esi
call fcn.00402270
lea ebx, [edi + 0x238]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
je 0x4029a5
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4029a5
push esi
push fcn.00402270
push 0x8d2
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [edi + 0x250]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0x88]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
cmp dword [esi + 0x24], 0
jne 0x402922
jmp 0x4029d7
or dword [0x48d518], 0x100000
cmp byte [0x48d648], 0
jne 0x402a04
push 0x48d1c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00402390
push esi
call fcn.0042f8ec
add esp, 4
push 0x48d1c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x464
mov eax, dword [0x488e40]
xor eax, esp
mov dword [esp + 0x45c], eax
mov eax, dword [esp + 0x46c]
cmp dword [eax + 0x18], 0
push ebx
push ebp
mov ebp, dword [esp + 0x470]
push esi
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jbe 0x405245
mov esi, dword [eax + 0xc]
mov edi, dword [ebp + 0x37c]
lea ecx, [esp + 0x1c]
push ecx
add esi, 0x78
mov ebx, 4
mov dword [esp + 0x20], 0
call fcn.00416fd0
add esp, 4
test al, al
je 0x405245
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40523d
mov edx, dword [esp + 0x18]
add esi, dword [edx + 0x10]
mov edi, dword [ebp + 0x37c]
lea eax, [esp + 0x40]
push eax
mov ebx, 0x28
mov dword [esp + 0x20], esi
call fcn.00416fd0
add esp, 4
test al, al
je 0x405245
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x10]
mov edx, dword [esp + 0x5c]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x38], ecx
lea ecx, [eax + edx]
mov edx, dword [esp + 0x64]
add eax, edx
xor edx, edx
cmp dword [esp + 0x58], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
jle 0x40523d
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
mov esi, dword [esp + 0x20]
mov edi, dword [ebp + 0x37c]
lea eax, [esp + 0x2c]
push eax
mov ebx, 4
mov dword [esp + 0x30], 0
call fcn.00416fd0
add esp, 4
test al, al
je 0x405245
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0x37c]
mov ecx, dword [ecx + 0x10]
add ecx, dword [esp + 0x2c]
push 0
push edx
mov edx, 0x400
lea eax, [esp + 0x70]
mov byte [esp + 0x70], 0
call fcn.00417260
add esp, 8
test al, al
je 0x40521e
mov edi, dword [esp + 0x14]
xor ebp, ebp
lea esi, [edi + 0x324]
mov ecx, dword [esi]
lea eax, [esp + 0x68]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405178
test dl, dl
je 0x405174
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405178
add eax, 2
add ecx, 2
test dl, dl
jne 0x405158
xor eax, eax
jmp 0x40517d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405193
add ebp, 1
add esi, 0x10
cmp ebp, 5
jb 0x405152
mov ebp, edi
jmp 0x40521e
mov esi, dword [esp + 0x28]
mov edi, dword [edi + 0x37c]
lea eax, [esp + 0x24]
push eax
mov ebx, 2
call fcn.00416fd0
add esp, 4
test al, al
je 0x405245
movzx eax, word [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x50]
shl ebp, 4
add ebp, ecx
lea ecx, [eax + edx]
lea edx, [esp + 0x3c]
mov dword [ebp + 0x328], ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x18]
mov edi, dword [edx + 0x37c]
lea esi, [ecx + eax*4]
mov ebx, 4
call fcn.00416fd0
add esp, 4
test al, al
je 0x405245
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x30]
add ecx, dword [esp + 0x3c]
add eax, 1
cmp eax, 5
mov dword [ebp + 0x32c], ecx
mov dword [esp + 0x30], eax
jae 0x405262
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
add dword [esp + 0x20], 4
add dword [esp + 0x28], 2
add eax, 1
cmp eax, dword [esp + 0x58]
mov dword [esp + 0x34], eax
jl 0x4050e8
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x46c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00454016
add esp, 0x464
ret 8
mov eax, 1
jmp 0x405247
Function at 0x405270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
test ebp, ebp
push esi
push edi
je 0x4052c3
cmp dword [ebp + 0x18], 0
jbe 0x4052c3
mov esi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x50]
mov edi, dword [ecx + 0x37c]
lea eax, [esp + 0x10]
push eax
add esi, 0x78
mov ebx, 4
mov dword [esp + 0x14], 0
call fcn.00416fd0
add esp, 4
test al, al
je 0x4052c3
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x4052cf
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8
add esi, dword [ebp + 0x10]
mov eax, dword [esp + 0x50]
mov edi, dword [eax + 0x37c]
lea edx, [esp + 0x20]
push edx
mov ebx, 0x28
mov dword [esp + 0x14], esi
call fcn.00416fd0
add esp, 4
test al, al
je 0x4052c3
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x34]
add ecx, dword [esp + 0x3c]
add edx, eax
cmp eax, edx
mov dword [esp + 0x1c], ecx
mov ebp, eax
jae 0x40538c
lea edx, [eax + 0x32]
shl edx, 4
add edx, dword [esp + 0x50]
mov dword [esp + 0x14], edx
jmp 0x405325
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
mov edx, ebp
sub edx, eax
mov eax, dword [esp + 0x54]
mov edi, dword [eax + 0x37c]
lea esi, [ecx + edx*4]
mov ebx, 4
mov dword [esp + 0x1c], 0
call fcn.00416fd0
add esp, 4
test al, al
je 0x4052c3
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405376
lea ecx, [ebp - 1]
cmp ecx, ebx
ja 0x405376
mov edx, dword [esp + 0x54]
mov ecx, dword [edx + 0x10]
mov edx, dword [esp + 0x14]
add ecx, eax
mov dword [edx], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
add dword [esp + 0x14], 0x10
add ebp, 1
add ecx, eax
cmp ebp, ecx
jb 0x405321
mov ecx, dword [esp + 0x50]
xor eax, eax
add ecx, 0x330
jmp 0x4053a0
cmp dword [ecx], 0
je 0x4052bb
add eax, 1
add ecx, 0x10
cmp eax, 5
jb 0x4053a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3c
ret 8
Function at 0x406ed0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x14
mov eax, dword [0x488e40]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x10
lea eax, [esp + 0xc]
push eax
push 0x21
xor ebx, ebx
push 0x400
mov dword [esi + 0x244], ebx
call edi
test eax, eax
je 0x406f21
push ebx
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.00454a68
add esp, 0xc
cmp eax, 1
je 0x406f1b
cmp eax, 2
jne 0x406f21
mov dword [esi + 0x244], eax
push 0x10
lea edx, [esp + 0xc]
push edx
push 0x22
push 0x400
mov dword [esi + 0x248], ebx
call edi
test eax, eax
je 0x406f5a
push ebx
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00454a68
add esp, 0xc
cmp eax, 1
je 0x406f54
cmp eax, 2
jne 0x406f5a
mov dword [esi + 0x248], eax
push 0x10
lea ecx, [esp + 0xc]
push ecx
push 0x23
push 0x400
mov byte [esi + 0x24c], bl
call edi
test eax, eax
je 0x406f8e
push ebx
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.00454a68
add esp, 0xc
cmp eax, 1
jne 0x406f8e
mov byte [esi + 0x24c], al
push 0x10
lea eax, [esp + 0xc]
push eax
push 0x25
push 0x400
mov byte [esi + 0x24d], bl
call edi
test eax, eax
je 0x406fc2
push ebx
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.00454a68
add esp, 0xc
cmp eax, 1
jne 0x406fc2
mov byte [esi + 0x24d], al
push 0x10
lea edx, [esp + 0xc]
push edx
push 0x1d
push 0x400
mov byte [esi + 0x24e], 0x2f
call edi
cmp eax, 2
jne 0x406fe8
mov al, byte [esp + 8]
mov byte [esi + 0x24e], al
push 0x10
lea ecx, [esp + 0xc]
push ecx
push 0x1e
push 0x400
mov byte [esi + 0x24f], 0x3a
call edi
cmp eax, 2
jne 0x40700e
mov dl, byte [esp + 8]
mov byte [esi + 0x24f], dl
push 0x10
lea eax, [esp + 0xc]
push eax
push 0xf
push 0x400
mov byte [esi + 0x250], 0x2c
call edi
cmp eax, 2
pop edi
pop ebx
jne 0x407035
mov cl, byte [esp]
mov byte [esi + 0x250], cl
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00454016
add esp, 0x14
ret
Function at 0x40a470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a489
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a4c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40a4c0
lea ebx, [ebx]
cmp esi, eax
jae 0x40a4c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40a4b0
cmp esi, eax
jb 0x40a4ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40aa70
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x46bd40
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x488e40]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
push 0
push str.Command
push str.External_Viewer
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x48d550
call fcn.0043f390
lea esi, [edi + 0x74]
push eax
mov ecx, esi
mov dword [esp + 0x24], 0
call fcn.00410a80
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aaee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push str.Arguments
push str.External_Viewer
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x48d550
call fcn.0043f390
lea ebp, [edi + 0x78]
push eax
mov ecx, ebp
mov dword [esp + 0x24], 1
call fcn.00410a80
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ab44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x40ac49
mov eax, ecx
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x105
or edx, eax
jge 0x40ab75
push 0x105
mov ecx, esi
call fcn.00409ec0
mov ecx, dword [esi]
push 0x105
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [esi]
test ecx, ecx
jne 0x40ab8d
xor eax, eax
jmp 0x40aba3
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40ab92
sub eax, edi
js 0x40ac5c
cmp eax, dword [ecx - 8]
jg 0x40ac5c
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
push 0x15
push str._viewersquikview.exe
mov ecx, esi
mov byte [eax + edx], 0
call fcn.00409c60
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40abd6
cmp eax, 0x10
jne 0x40ac3b
mov eax, dword [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x800
or ecx, edx
jge 0x40abfc
push 0x800
mov ecx, esi
call fcn.00409ec0
mov eax, dword [esi]
push 0x800
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [esi]
test edx, edx
jne 0x40ac16
xor eax, eax
jmp 0x40ac2d
mov eax, edx
lea edi, [eax + 1]
jmp 0x40ac20
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ac20
sub eax, edi
js 0x40ac5c
cmp eax, dword [edx - 8]
jg 0x40ac5c
mov dword [edx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
push 4
push str.__1_
mov ecx, ebp
call fcn.0040a0a0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push 0x80070057
call fcn.00409d90
int3
Function at 0x40dd40
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x158
mov eax, dword [0x488e40]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
push ebp
mov ebp, dword [esp + 0x164]
cmp dword [ebp + 0x8a4], 0
push esi
push edi
jne 0x40dd78
cmp dword [ebp + 0x8a8], 0x138
jb 0x40de3c
lea eax, [ebp + 0x8b4]
push 0x2e
push eax
call fcn.00455c50
add eax, 1
add esp, 8
cmp eax, 1
je 0x40de3c
cmp byte [eax], 0
je 0x40de3c
push eax
push str.:_s:
mov esi, 0x106
lea edi, [esp + 0x60]
call fcn.00416ab0
mov ecx, edi
push ecx
call fcn.004544cb
mov eax, dword [ebp + 0x74]
lea ebx, [ebp + 0x74]
add esp, 0xc
cmp dword [eax - 0xc], 0
jl 0x40dddd
mov edx, edi
push edx
push eax
call fcn.004553e8
add esp, 8
test eax, eax
je 0x40dddd
sub eax, dword [ebx]
jns 0x40de3c
push 0
push 0x8000080
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40de3c
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x40
lea edx, [esp + 0x24]
push edx
push esi
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x40de35
cmp dword [esp + 0x10], 0x40
je 0x40de57
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00454016
add esp, 0x158
ret 4
cmp word [esp + 0x18], 0x5a4d
jne 0x40de35
mov eax, dword [esp + 0x54]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x40de35
xor eax, eax
push eax
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
call edi
test eax, eax
je 0x40de35
cmp dword [esp + 0x10], 4
jne 0x40de2d
cmp dword [esp + 0x14], 0x4550
jne 0x40de35
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x59]
push eax
mov ecx, ebx
call fcn.00409900
lea eax, [esp + 0x58]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40dec0
sub eax, edx
mov edx, dword [ebp + 0x20]
mov byte [esp + eax + 0x57], cl
lea ecx, [esp + 0x59]
push ecx
push 3
push 0x8d2
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40de3c
Function at 0x40f1e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x914
mov eax, dword [0x488e40]
xor eax, esp
mov dword [esp + 0x910], eax
push ebp
push esi
mov esi, dword [esp + 0x924]
mov eax, dword [esi + 4]
cmp eax, 9
push edi
mov edi, dword [esp + 0x924]
mov dword [esp + 0x10], edi
jge 0x40f21a
mov eax, dword [eax*4 + 0x48a5d8]
jmp 0x40f21f
mov eax, str.Unknown
mov cl, byte [ecx + 0x76]
push edx
neg cl
push 0xffff0000
push esi
push 0x20
sbb ecx, ecx
and ecx, 0x20
push ecx
push 0
push 0
push eax
push 0x2f
mov ecx, edi
call fcn.0043e988
mov ebp, dword [esi + 8]
test ebp, ebp
mov dword [esp + 0xc], eax
je 0x40f313
push ebx
test byte [ebp + 4], 1
jne 0x40f284
lea edx, [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f27f
movzx ecx, word [ebp + 4]
shr eax, 2
xor eax, ecx
test al, 4
je 0x40f27f
and ecx, 0xfffd
mov word [ebp + 4], cx
jmp 0x40f284
or word [ebp + 4], 2
movzx ecx, word [ebp + 4]
mov eax, ecx
shr eax, 1
mov ebx, eax
not ebx
and ebx, 2
and eax, 1
or ebx, 1
add ebx, eax
test cl, 8
lea eax, [ebp + 8]
je 0x40f2e8
movzx ecx, word [ebp + 6]
push eax
lea edx, [ecx + ebp + 8]
push edx
push str._s___s
mov esi, 0x908
lea edi, [esp + 0x24]
call fcn.00416ab0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push 0xffff0002
push eax
push ebp
push 0
push 0
push ebx
push ebx
mov ecx, edi
push ecx
mov ecx, dword [esp + 0x34]
push 0x27
call fcn.0043e988
mov edi, dword [esp + 0x14]
jmp 0x40f303
mov edx, dword [esp + 0x10]
push 0xffff0002
push edx
push ebp
push 0
push 0
push ebx
push ebx
push eax
push 0x27
mov ecx, edi
call fcn.0043e988
mov ebp, dword [ebp]
test ebp, ebp
jne 0x40f251
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [esp + 0x91c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00454016
add esp, 0x914
ret 8
Function at 0x411250
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x37c
mov eax, dword [0x488e40]
xor eax, esp
mov dword [esp + 0x378], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
mov esi, edx
push eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], ecx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
jne 0x4112bb
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.00454016
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x411335
mov ebx, edi
mov ecx, esi
call fcn.00427690
mov bl, al
test bl, bl
je 0x4112f9
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4112f9
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4112ec
cmp eax, 2
je 0x4112ec
cmp eax, 3
jne 0x4112f9
push ecx
mov ecx, edi
call fcn.00424480
add esp, 4
and bl, al
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x41131e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x384]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00454016
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x41135b
cmp eax, 3
je 0x41135b
cmp eax, 4
jne 0x4112f9
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0x18]
push edi
mov ecx, esi
call fcn.0041d500
add esp, 8
jmp 0x4112cc
mov ebx, dword [esi + 0x30]
test ebx, ebx
jne 0x41136d
lea ebx, [esp + 0x20]
mov esi, ebx
call fcn.004186e0
push edi
mov edi, str._System_Information__r_n_r_n
call fcn.00416f60
add esp, 4
test al, al
je 0x411419
mov esi, dword [esp + 0x10]
push esi
push 0x411430
push ebx
call fcn.00418c20
add esp, 0xc
test al, al
je 0x411419
push esi
mov edi, 0x47656c
call fcn.00416f60
add esp, 4
test al, al
je 0x411419
mov edi, dword [esp + 0x1c]
push esi
mov ecx, edi
call fcn.00411540
add esp, 4
test al, al
je 0x411419
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x20]
cmp dword [ebp + 0xc], 3
push eax
mov eax, dword [ebp + 0x1c]
push ecx
push edx
push eax
sete bl
push edi
call fcn.00420e30
add esp, 0x14
test al, al
je 0x411419
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push ecx
push edx
mov eax, esi
push eax
mov ecx, edi
call fcn.0041bf10
add esp, 0xc
test al, al
je 0x411419
mov ecx, esi
push ecx
mov edi, str._Log__r_n_r_n
call fcn.00416f60
add esp, 4
test al, al
je 0x411419
mov bl, 1
mov edi, esi
jmp 0x4112d2
mov edi, dword [esp + 0x10]
xor bl, bl
jmp 0x4112f9
Function at 0x4165c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x484580
push 0x457800
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x488e40]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
cmp byte [ebp + 0xc], 0
je 0x41662a
cmp eax, 0xc0000017
je 0x41662a
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00454016
mov esp, ebp
pop ebp
ret
cmp eax, 0xc0000008
je 0x416609
cmp byte [0x48d7b4], 0
jne 0x4166da
mov bl, 1
mov byte [0x48d7b4], bl
mov dword [ebp - 4], 0
cmp eax, 0xc0000017
jne 0x416675
or dword [0x48d518], 0x400000
mov ecx, 0x80
mov eax, str.Dependency_Walker_has_run_out_of_memory_and_cannot_continue_to_run.
lea edx, [ebp - 0x9c]
call fcn.00416b40
jmp 0x416698
or dword [0x48d518], 0x800000
push eax
push str.An_internal_error__0x_08X__has_occurred._Dependency_Walker_cannot_continue_to_run.
mov esi, 0x80
lea edi, [ebp - 0x9c]
call fcn.00416ab0
add esp, 8
cmp byte [0x48d648], 0
jne 0x4166d3
mov byte [0x48d7b4], bl
call fcn.0041b080
test eax, eax
je 0x4166b3
mov eax, dword [eax + 0x20]
push 0x10
push str.Dependency_Walker_Fatal_Error
lea ecx, [ebp - 0x9c]
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4166d3
mov dword [ebp - 4], 0xfffffffe
mov edx, dword [0x48d518]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x416cd0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x416ced
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x416ce0
sub eax, edx
mov esi, eax
mov ecx, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push eax
push esi
push edi
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416d20
cmp dword [esp + 4], esi
jne 0x416d18
mov al, 1
pop esi
pop ecx
ret
push 0x1d
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
pop ecx
ret
Function at 0x416d30
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
xor edi, edi
push edi
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 2
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call ebx
test eax, eax
je 0x416d70
cmp dword [esp + 0x14], 2
je 0x416d7a
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
cmp ax, 0xffff
jne 0x416da4
push 1
push edi
push 2
push ebp
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop edi
pop esi
pop ebp
pop ebx
mov eax, edx
add esp, 8
ret
movzx eax, ax
add eax, 1
je 0x416dc8
push eax
call fcn.0045616b
add esp, 4
cmp eax, edi
jne 0x416dca
push edi
push edi
push 1
push 0xc0000017
call dword [sym.imp.KERNEL32.dll_RaiseException]
xor eax, eax
movzx edi, word [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
push ebp
mov dword [esi], eax
mov dword [esp + 0x28], 0
call ebx
test eax, eax
je 0x416df7
cmp dword [esp + 0x14], edi
je 0x416e16
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
test eax, eax
je 0x416e0c
push eax
call fcn.00454dd4
add esp, 4
mov dword [esi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
movzx edx, word [esp + 0x10]
mov eax, dword [esi]
mov byte [edx + eax], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffffe
and eax, 3
je 0x416e54
push 1
push 0
mov ecx, 4
sub ecx, eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x416e54
call fcn.00416a90
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret