joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404590
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x433938
push eax
mov dword fs:[0], esp
sub esp, 0x24
push edi
mov edi, dword [esp + 0x38]
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40475b
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404748
test al, 0x10
je 0x404748
push ebx
push ebp
lea ecx, [esp + 0x18]
call fcn.00409cb8
push 0x435690
lea eax, [esp + 0x10]
push edi
push eax
mov dword [esp + 0x44], 0
call fcn.00403600
add esp, 0xc
mov byte [esp + 0x38], 1
call fcn.004279e9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x40], eax
mov ebp, dword [esp + 0xc]
push 0
mov bl, 2
push ebp
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], bl
call fcn.00409d4d
test eax, eax
je 0x4046e1
push esi
lea ecx, [esp + 0x1c]
call fcn.00409a95
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.0040a03a
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 3
call fcn.00403890
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x3c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40468d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x1c]
call fcn.00409c7b
test eax, eax
jne 0x4046d8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call fcn.00409f97
push eax
mov byte [esp + 0x40], 4
call fcn.00404590
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x3c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
jne 0x404643
pop esi
lea ecx, [esp + 0x18]
call fcn.004099c5
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404716
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop ebp
pop ebx
jg 0x404737
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.00409cde
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40475b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x28]
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x404d20
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43397b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov eax, dword [0x4431d0]
push esi
push edi
mov dword [esp + 0x21c], eax
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x404e2a
lea ecx, [esp + 0x10]
push ecx
call fcn.00413a0a
mov esi, dword [ebp + 8]
add esp, 4
push eax
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00402d50
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404e4e
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404e4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.004279e9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esi]
push edi
push eax
lea ecx, [esp + 0x14]
push 0x4356a0
push ecx
mov dword [esp + 0x23c], 0
call fcn.004035b0
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
add esp, 0x10
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00402e10
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x22c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404e2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x21c]
call fcn.0041395e
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov al, 1
jmp 0x404e2c

Function at 0x405560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x433a50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [esp + 8], esi
mov word [esi + 4], bx
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x34], ebx
call fcn.00404e60
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x3c], 1
call fcn.00403b90
cmp dword [esp + 0x24], 8
mov byte [esp + 0x30], bl
jb 0x4055c6
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00427262
add esp, 4
push 0x4356f4
call fcn.00413a0a
add esp, 4
push eax
push 0x4356f4
mov ecx, esi
call fcn.00403f40
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x405a90
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x433ad8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x4431d0]
push ebx
mov dword [esp + 0x40], eax
push esi
mov al, byte [0x444374]
xor ebx, ebx
cmp al, 1
mov dword [esp + 0x50], ebx
je 0x405c28
cmp dword [esp + 0x6c], ebx
je 0x405c28
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x60]
push eax
mov ecx, 0x44211c
call fcn.00403b90
mov ecx, 0x444378
call fcn.00406160
push 0x435714
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
call fcn.00413a0a
add esp, 4
push eax
push 0x435714
lea ecx, [esp + 0x30]
call fcn.00404060
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 1
mov dword [esp + 0x14], 0x5c
call fcn.00401c80
mov ecx, dword [esp + 0x3c]
inc eax
cmp ecx, eax
je 0x405b4f
push 0x5c
push 1
mov ecx, 0x44211c
call fcn.00403ac0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x10]
push 0x44211c
push eax
call fcn.004044f0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 2
call fcn.00403b90
mov eax, dword [esp + 0x24]
mov esi, 8
cmp eax, esi
mov byte [esp + 0x50], 1
jb 0x405b97
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00427262
add esp, 4
cmp dword [esp + 0x40], esi
mov eax, dword [esp + 0x2c]
jae 0x405ba5
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405bf0
cmp dword [0x442134], esi
mov eax, dword [0x442120]
push ebx
jae 0x405bc3
mov eax, 0x442120
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.004053d0
call fcn.00405660
add esp, 8
cmp al, bl
jne 0x405bf0
lea ecx, [esp + 0x28]
call fcn.00403580
lea ecx, [esp + 0x58]
call fcn.00403580
jmp 0x405c3c
cmp dword [esp + 0x40], esi
mov byte [0x444374], 1
jb 0x405c0a
mov edx, dword [esp + 0x2c]
push edx
call fcn.00427262
add esp, 4
cmp dword [esp + 0x70], esi
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
jb 0x405c3c
mov eax, dword [esp + 0x5c]
push eax
jmp 0x405c34
cmp dword [esp + 0x70], 8
jb 0x405c3c
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00427262
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x44]
call fcn.0041395e
pop esi
pop ebx
add esp, 0x4c
ret
Function at 0x406df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x433c08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00402a00
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401e30
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x406e82
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x408720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x433ca9
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
call fcn.004279e9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
xor edi, edi
mov dword [esp + 0x14], edi
call fcn.004279e9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
push edi
mov ecx, esi
mov byte [esp + 0x18], 3
call fcn.004083c0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x28], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40a50b
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 0x40a55e
call fcn.0042fc92
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 0x40a55e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40a554
xor eax, eax
jmp 0x40a677
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 0x40a58e
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 0x40a58e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40a674
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40a5bb
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040a104
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40a674
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40a604
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40a604
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40a5fe
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040a104
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40a664
and dword [ebp + 0xc], 0
jmp 0x40a664
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40a664
push 0xc
call fcn.00427232
mov esi, eax
test esi, esi
pop ecx
je 0x40a646
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 0x40a648
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40a65f
push dword [ebp - 8]
call fcn.00426c73
jmp 0x40a664
call fcn.00426c4a
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40a5c9
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41341c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x438cf8
call fcn.00416b94
mov edi, 0x94
mov eax, edi
call fcn.00416a90
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4466fc], ecx
mov eax, dword [esi + 4]
mov dword [0x446708], eax
mov edx, dword [esi + 8]
mov dword [0x44670c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x446700], esi
cmp ecx, 2
je 0x41347c
or esi, 0x8000
mov dword [0x446700], esi
shl eax, 8
add eax, edx
mov dword [0x446704], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4134b7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4134b7
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4134cf
cmp eax, 0x20b
je 0x4134bc
mov dword [ebp - 0x1c], esi
jmp 0x4134e3
cmp dword [ecx + 0x84], 0xe
jbe 0x4134b7
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4134dd
cmp dword [ecx + 0x74], 0xe
jbe 0x4134b7
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004181a3
pop ecx
test eax, eax
jne 0x4134f7
push 0x1c
call fcn.004133f8
pop ecx
call fcn.0041809a
test eax, eax
jne 0x413508
push 0x10
call fcn.004133f8
pop ecx
call fcn.00417e34
mov dword [ebp - 4], esi
call fcn.00417c36
test eax, eax
jge 0x413521
push 0x1b
call fcn.004133d3
pop ecx
call fcn.00417b97
mov dword [0x448230], eax
call fcn.00417a2d
mov dword [0x446664], eax
call fcn.00417997
test eax, eax
jge 0x413546
push 8
call fcn.004133d3
pop ecx
call fcn.00417764
test eax, eax
jge 0x413557
push 9
call fcn.004133d3
pop ecx
push 1
call fcn.004168f1
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41356d
push eax
call fcn.004133d3
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0041771e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41358e
movzx eax, word [ebp - 0x40]
jmp 0x413591
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042630a
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4135af
push edi
call fcn.00416a1e
call fcn.00416a40
jmp 0x4135e1
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00416bcf
ret
Function at 0x41695b
Capabilities:
Terminate process

Disassembly:
push 8
push 0x439010
call fcn.00416b94
push 8
call fcn.00418ec5
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x44673c], esi
jne 0x41698f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x446738], esi
mov al, byte [ebp + 0x10]
mov byte [0x446734], al
cmp dword [ebp + 0xc], edi
jne 0x4169d9
cmp dword [0x448228], edi
je 0x4169c9
mov eax, dword [0x448224]
sub eax, 4
mov dword [0x448224], eax
cmp eax, dword [0x448228]
jb 0x4169c9
mov eax, dword [eax]
cmp eax, edi
je 0x4169aa
call eax
jmp 0x4169aa
push 0x4420ac
mov eax, 0x4420a4
call fcn.004168d9
pop ecx
push 0x4420b8
mov eax, 0x4420b0
call fcn.004168d9
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x416a0a
cmp dword [ebp + 0x10], edi
jne 0x416a18
mov dword [0x44673c], esi
push dword [ebp + 8]
call fcn.00416897
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x416a17
push 8
call fcn.00418e10
pop ecx
ret
call fcn.00416bcf
ret

Function at 0x4170ba
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.00416a90
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417155
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 [0x4466fc]
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 0x417155
cmp eax, 1
je 0x417176
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 0x417155
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x417122
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x417151
xor eax, eax
inc eax
jmp 0x417195
cmp edi, eax
jae 0x417159
xor eax, eax
jmp 0x417195
cmp eax, esi
jae 0x417160
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 [0x4466fc]
jmp 0x417179
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 0x41740a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4431d0]
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 + 0x443450]
je 0x41743f
inc eax
cmp eax, 0x13
jb 0x417430
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x443450]
jne 0x417565
mov eax, dword [0x446668]
cmp eax, 1
je 0x41753d
cmp eax, edx
jne 0x41746f
cmp dword [0x4431cc], 1
je 0x41753d
cmp ecx, 0xfc
je 0x417565
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 0x4174a5
lea eax, [ebp - 0x80]
push 0x43943c
push eax
call fcn.0041a390
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004162d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4174d9
mov eax, edi
push eax
call fcn.004162d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x439438
push edi
call fcn.0041efe0
add esp, 0x10
push edi
call fcn.004162d0
push dword [esi + 0x443454]
mov ebx, eax
call fcn.004162d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00416a90
mov ebx, esp
push 0x43941c
push ebx
call fcn.0041a390
push edi
push ebx
call fcn.0041a3a0
push 0x439418
push ebx
call fcn.0041a3a0
push dword [esi + 0x443454]
push ebx
call fcn.0041a3a0
push 0x12010
push 0x4393f0
push ebx
call fcn.0041eee7
add esp, 0x2c
jmp 0x417565
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x443454]
push dword [esi]
call fcn.004162d0
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.0041395e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x417a2d
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x44695c]
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 0x417a76
call ebp
mov esi, eax
cmp esi, ebx
je 0x417a5c
mov dword [0x44695c], 1
jmp 0x417a7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x417a71
push 2
pop eax
mov dword [0x44695c], eax
jmp 0x417a76
mov eax, dword [0x44695c]
cmp eax, 1
jne 0x417ad3
cmp esi, ebx
jne 0x417a8e
call ebp
mov esi, eax
cmp esi, ebx
jne 0x417a8e
xor eax, eax
jmp 0x417b7a
cmp word [esi], bx
mov eax, esi
je 0x417aa3
inc eax
inc eax
cmp word [eax], bx
jne 0x417a95
inc eax
inc eax
cmp word [eax], bx
jne 0x417a95
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.004160a6
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x417ac6
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x417b7a
push ebp
push esi
push edi
call fcn.00415ca0
add esp, 0xc
jmp 0x417ab8
cmp eax, 2
je 0x417adc
cmp eax, ebx
jne 0x417a87
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x417a87
cmp byte [ebp], bl
mov esi, ebp
je 0x417b12
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x417a87
push esi
add edi, eax
call fcn.004162d0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x417aef
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.004160a6
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x417b8b
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x417b6c
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 0x417b81
push edi
call fcn.004162d0
push esi
lea edi, [edi + eax + 1]
call fcn.00413a0a
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x417b32
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.00413a20
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x417a87
Function at 0x417b97
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x446960]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x417bd7
call esi
test eax, eax
je 0x417bbc
mov dword [0x446960], 1
jmp 0x417bdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x417bd3
mov dword [0x446960], 2
jmp 0x417be5
xor eax, eax
jmp 0x417c33
cmp eax, 1
jne 0x417be0
call esi
jmp 0x417c33
cmp eax, 2
jne 0x417bd3
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 0x417c2b
lea eax, [esi + esi]
push eax
call fcn.004160a6
mov ebp, eax
test ebp, ebp
pop ecx
je 0x417c2b
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x417c2f
push ebp
call fcn.00413a20
pop ecx
xor eax, eax
jmp 0x417c31
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret