joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401080
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 0x401099
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4010ad
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4010ce
cmp esi, eax
jae 0x4010a7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010c0
cmp esi, eax
jae 0x4010a7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401db0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42a08b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov eax, dword [0x437144]
push esi
xor esi, esi
push edi
mov dword [esp + 0x230], eax
mov dword [esp + 0xc], esi
call fcn.0041e7dc
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
push str.Path
push str.SOFTWAREShadow_Defender
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x254], esi
mov dword [esp + 0x24], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x401e4c
push 0x104
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x28]
push 0x5c
push ecx
call fcn.0040faed
add esp, 8
mov word [eax], si
lea edx, [esp + 0x28]
push 0x42b7d8
push edx
call fcn.0040f0cb
mov ecx, dword [esp + 0x30]
add esp, 8
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0041c280
test eax, eax
je 0x401ea7
cmp dword [esp + 0x1c], 1
jne 0x401ea7
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
mov ecx, eax
push ecx
mov dword [esp + 0x1c], 0x104
call fcn.0041c510
lea edx, [esp + 0x28]
push edx
call fcn.0040f0b5
add esp, 4
push eax
lea eax, [esp + 0x2c]
push eax
jmp 0x401eba
lea ecx, [esp + 0x28]
push ecx
call fcn.0040f0b5
add esp, 4
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x10]
call fcn.00401630
mov esi, dword [esp + 8]
add esi, 0xfffffff0
push esi
call fcn.00401410
mov edi, dword [esp + 0x248]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x23c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401f01
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x22c]
pop esi
call fcn.0040f58c
add esp, 0x238
ret
Function at 0x401fd0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42a0d6
push eax
mov eax, 0x121c
mov dword fs:[0], esp
call fcn.0040fb20
mov eax, dword [0x437144]
push esi
lea esi, [ecx + 0xa0]
mov dword [esp + 8], 0
mov dword [esp + 0x121c], eax
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
push edi
jne 0x402093
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push str.Path
push str.SOFTWAREShadow_Defender
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40206a
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x18]
push 0x5c
push edx
call fcn.0040faed
add esp, 8
mov word [eax], 0
lea eax, [esp + 0x18]
push str._res.ini
push eax
call fcn.0040f0cb
lea ecx, [esp + 0x20]
push ecx
call fcn.0040f0b5
add esp, 0xc
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00401630
call fcn.0041e7dc
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1238]
push eax
lea ecx, [esp + 0x14]
push 0x42b84c
push ecx
mov dword [esp + 0x1238], 0
call fcn.00401d50
mov eax, dword [esi]
mov esi, dword [esp + 0x1c]
add esp, 0xc
push eax
push 0x1000
lea edx, [esp + 0x228]
push edx
push 0x42b848
push esi
push 0x42b838
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0xc]
call fcn.00401f30
push 0x42b834
push 0x42b82c
lea ecx, [esp + 0x10]
mov byte [esp + 0x1234], 1
call fcn.00401710
mov eax, dword [esp + 8]
add eax, 0xfffffff0
push eax
call fcn.00401410
mov edi, dword [esp + 0x1238]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x122c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40215e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov dword [esp + 0x122c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402183
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1224]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x121c]
pop esi
call fcn.0040f58c
add esp, 0x1228
ret 8
Function at 0x404dd0
Capabilities:
Create directory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.0040f0b5
lea eax, [eax + eax + 2]
push eax
call fcn.0041ed6d
mov edi, eax
push esi
push edi
call fcn.0040f0f5
push 0x5c
push edi
call fcn.0040fb5d
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x404e2a
push 0
push edi
mov word [esi], 0
call ebx
mov word [esi], 0x5c
push 0x5c
add esi, 2
push esi
call fcn.0040fb5d
mov esi, eax
add esp, 8
test esi, esi
jne 0x404e07
push 0
push edi
call ebx
push edi
mov esi, eax
call fcn.0041ed68
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x404e40
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x6e4
mov eax, dword [0x437144]
push esi
mov esi, dword [esp + 0x6ec]
mov dword [esp + 0x6e4], eax
lea eax, [esp + 0x24c]
push esi
push eax
call fcn.0040f0f5
lea ecx, [esp + 0x254]
push 0x42bea0
push ecx
call fcn.0040f0cb
lea edx, [esp + 0x14]
push esi
push edx
call fcn.0040f0f5
lea eax, [esp + 0x1c]
push 0x42be90
push eax
call fcn.0040f0cb
add esp, 0x20
lea ecx, [esp + 0x494]
push ecx
lea edx, [esp + 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404eca
xor eax, eax
pop esi
mov ecx, dword [esp + 0x6e0]
call fcn.0040f58c
add esp, 0x6e4
ret
push ebx
push ebp
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x25c]
push ecx
call fcn.0040f0f5
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 8
lea edx, [esp + 0x4a0]
push edx
push esi
call ebp
test eax, eax
je 0x404fc9
lea eax, [esp + 0x4cc]
push 0x42be9c
push eax
call fcn.0040f083
add esp, 8
test eax, eax
je 0x404ef4
lea ecx, [esp + 0x4cc]
push 0x42be94
push ecx
call fcn.0040f083
add esp, 8
test eax, eax
je 0x404ef4
lea edx, [esp + 0x4cc]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.0040f0cb
mov al, byte [esp + 0x4a8]
add esp, 8
test al, 0x10
je 0x404f8c
lea ecx, [esp + 0x10]
push ecx
call fcn.00404e40
add esp, 4
test eax, eax
je 0x404ffc
lea edx, [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0040f0f5
jmp 0x404ef1
test al, 1
je 0x404fa0
push 0x80
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404fb2
push esi
call edi
lea ecx, [esp + 0x258]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0040f0f5
jmp 0x404ef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x404ef4
push esi
call edi
mov eax, dword [esp + 0x6f8]
push eax
call ebx
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x6e0]
call fcn.0040f58c
add esp, 0x6e4
ret
push esi
call edi
mov ecx, dword [esp + 0x6f0]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
call fcn.0040f58c
add esp, 0x6e4
ret
Function at 0x405e3a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x405e8d
call fcn.00426cee
mov edi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x405e8d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x405e83
xor eax, eax
jmp 0x405fa6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x405ebd
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x405ebd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x405fa3
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x405eea
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00405a33
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x405fa3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x405f33
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x405f33
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x405f2d
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00405a33
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x405f93
and dword [ebp + 0xc], 0
jmp 0x405f93
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x405f93
push 0xc
call fcn.0041ed3d
mov esi, eax
test esi, esi
pop ecx
je 0x405f75
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x405f77
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x405f8e
push dword [ebp - 8]
call fcn.0041cffe
jmp 0x405f93
call fcn.0041cfd5
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x405ef8
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40fef3
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42ed80
call fcn.00410e2c
push 8
call fcn.00414cd7
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x43a598], esi
jne 0x40ff27
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43a594], esi
mov al, byte [ebp + 0x10]
mov byte [0x43a590], al
cmp dword [ebp + 0xc], edi
jne 0x40ff71
cmp dword [0x43bf28], edi
je 0x40ff61
mov eax, dword [0x43bf24]
sub eax, 4
mov dword [0x43bf24], eax
cmp eax, dword [0x43bf28]
jb 0x40ff61
mov eax, dword [eax]
cmp eax, edi
je 0x40ff42
call eax
jmp 0x40ff42
push 0x436094
mov eax, 0x43608c
call fcn.0040fe71
pop ecx
push 0x4360a0
mov eax, 0x436098
call fcn.0040fe71
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40ffa2
cmp dword [ebp + 0x10], edi
jne 0x40ffb0
mov dword [0x43a598], esi
push dword [ebp + 8]
call fcn.0040fe2f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40ffaf
push 8
call fcn.00414c22
pop ecx
ret
call fcn.00410e67
ret

Function at 0x410f81
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040fb20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41101c
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x43a558]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41101c
cmp eax, 1
je 0x41103d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41101c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x410fe9
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x411018
xor eax, eax
inc eax
jmp 0x41105c
cmp edi, eax
jae 0x411020
xor eax, eax
jmp 0x41105c
cmp eax, esi
jae 0x411027
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x43a558]
jmp 0x411040
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4117bb
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x437144]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x437318]
je 0x4117f0
inc eax
cmp eax, 0x13
jb 0x4117e1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x437318]
jne 0x411916
mov eax, dword [0x43a550]
cmp eax, 1
je 0x4118ee
cmp eax, edx
jne 0x411820
cmp dword [0x437140], 1
je 0x4118ee
cmp ecx, 0xfc
je 0x411916
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411856
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00416e90
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00410750
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41188a
mov eax, edi
push eax
call fcn.00410750
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42f210
push edi
call fcn.00416f90
add esp, 0x10
push edi
call fcn.00410750
push dword [esi + 0x43731c]
mov ebx, eax
call fcn.00410750
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040fb20
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00416e90
push edi
push ebx
call fcn.00416ea0
push 0x42f1f0
push ebx
call fcn.00416ea0
push dword [esi + 0x43731c]
push ebx
call fcn.00416ea0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00416d88
add esp, 0x2c
jmp 0x411916
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x43731c]
push dword [esi]
call fcn.00410750
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040f58c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x411dde
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x43a7bc]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x411e27
call ebp
mov esi, eax
cmp esi, ebx
je 0x411e0d
mov dword [0x43a7bc], 1
jmp 0x411e2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x411e22
push 2
pop eax
mov dword [0x43a7bc], eax
jmp 0x411e27
mov eax, dword [0x43a7bc]
cmp eax, 1
jne 0x411e84
cmp esi, ebx
jne 0x411e3f
call ebp
mov esi, eax
cmp esi, ebx
jne 0x411e3f
xor eax, eax
jmp 0x411f2b
cmp word [esi], bx
mov eax, esi
je 0x411e54
inc eax
inc eax
cmp word [eax], bx
jne 0x411e46
inc eax
inc eax
cmp word [eax], bx
jne 0x411e46
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.004104e2
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x411e77
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x411f2b
push ebp
push esi
push edi
call fcn.004100d0
add esp, 0xc
jmp 0x411e69
cmp eax, 2
je 0x411e8d
cmp eax, ebx
jne 0x411e38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x411e38
cmp byte [ebp], bl
mov esi, ebp
je 0x411ec3
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x411e38
push esi
add edi, eax
call fcn.00410750
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x411ea0
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.004104e2
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x411f3c
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x411f1d
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x411f32
push edi
call fcn.00410750
push esi
lea edi, [edi + eax + 1]
call fcn.0040f0b5
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x411ee3
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00410058
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x411e38
Function at 0x411f48
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x43a7c0]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x411f88
call esi
test eax, eax
je 0x411f6d
mov dword [0x43a7c0], 1
jmp 0x411f8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x411f84
mov dword [0x43a7c0], 2
jmp 0x411f96
xor eax, eax
jmp 0x411fe4
cmp eax, 1
jne 0x411f91
call esi
jmp 0x411fe4
cmp eax, 2
jne 0x411f84
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x411fdc
lea eax, [esi + esi]
push eax
call fcn.004104e2
mov ebp, eax
test ebp, ebp
pop ecx
je 0x411fdc
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x411fe0
push ebp
call fcn.00410058
pop ecx
xor eax, eax
jmp 0x411fe2
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x416292
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x437144]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x416311
push esi
call fcn.00418e35
test eax, eax
pop ecx
jne 0x4162d9
call fcn.00411476
mov dword [eax], 0xf
call fcn.0041146d
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040f58c
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x416324
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4162cc
inc eax
cmp eax, esi
ja 0x4162cc
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41635b
cmp eax, dword [ebp + 0x10]
jg 0x41633c
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.004104e2
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x416370
call fcn.0041146d
mov dword [eax], 0xc
jmp 0x4162cc
cmp eax, dword [ebp + 0x10]
jle 0x416370
call fcn.0041146d
mov dword [eax], 0x22
jmp 0x4162cc
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.0040f0f5
pop ecx
pop ecx
jmp 0x4162ce
Function at 0x416540
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41656e
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x416575
cmp ebx, dword [eax + 4]
jae 0x416575
xor eax, eax
jmp 0x416765
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x416586
xor eax, eax
inc eax
jmp 0x416764
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41659c
cmp ecx, edx
jae 0x4166e1
cmp dword [eax + 4], 0
je 0x4165a5
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41658d
cmp dword [ebp + 8], 0
je 0x4165c7
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4166e1
cmp eax, esi
jae 0x4166e1
mov eax, dword [0x43aa20]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4165ec
cmp dword [esi*4 + 0x43aa28], edi
je 0x4166e5
inc esi
cmp esi, eax
jl 0x4165da
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416761
cmp dword [ebp - 8], 0x1000000
jne 0x416761
test byte [ebp - 0xc], 0xcc
je 0x41666a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x416761
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x416761
cmp word [eax + 0x18], 0x10b
jne 0x416761
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x416761
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41666a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41666a
test byte [ecx + 0x27], 0x80
jne 0x4166e1
push 1
push 0x43aa68
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41657e
mov ecx, dword [0x43aa20]
test ecx, ecx
mov edx, ecx
jle 0x41669e
lea eax, [ecx*4 + 0x43aa24]
cmp dword [eax], edi
je 0x41669e
dec edx
sub eax, 4
test edx, edx
jg 0x416692
test edx, edx
jne 0x4166cf
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4166ab
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4166c3
lea eax, [edx*4 + 0x43aa28]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4166b1
cmp ecx, 0x10
jge 0x4166cf
inc ecx
mov dword [0x43aa20], ecx
push 0
push 0x43aa68
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41657e
xor eax, eax
jmp 0x416764
test esi, esi
jle 0x41657e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x43aa68
call ebx
test eax, eax
jne 0x41657e
cmp dword [esi*4 + 0x43aa28], edi
je 0x41673b
mov eax, dword [0x43aa20]
lea esi, [eax - 1]
test esi, esi
jl 0x416729
cmp dword [esi*4 + 0x43aa28], edi
je 0x416725
dec esi
jns 0x416719
test esi, esi
jge 0x416739
cmp eax, 0x10
jge 0x416734
inc eax
mov dword [0x43aa20], eax
lea esi, [eax - 1]
jmp 0x41673b
je 0x416753
xor ecx, ecx
test esi, esi
jl 0x416753
lea eax, [ecx*4 + 0x43aa28]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x416741
push 0
push 0x43aa68
call ebx
jmp 0x41657e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret