joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d9790
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0x98], 0
je 0x4d97b6
push 0
mov eax, dword [ebx + 0x94]
call fcn.00458fb8
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x98], 0
pop ebx
ret

Function at 0x4d9870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d99e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xa4], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4d99c6
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.0040a1f4
mov dl, 1
mov eax, dword [0x4af30c]
call fcn.004af364
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], eax
mov dl, 1
mov eax, dword [0x417c54]
call fcn.00403f2c
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.004af3e0
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4d99c3
mov dl, 1
mov eax, dword [0x4b091c]
call fcn.004b0984
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, 0x4d99f8
call fcn.004afb48
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00405098
xor eax, eax
push ebp
push 0x4d99bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.004b0c84
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004d9a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d99c3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.00403f5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403f5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403f5c
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d99e8
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404db0
ret
Function at 0x401170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401192
pop edi
xor al, al
pop esi
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x4011a7
pop ebx
pop edi
xor al, al
pop esi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4011a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4011a1
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
pop ebx
pop edi
mov al, 1
pop esi
ret

Function at 0x401320
Capabilities:
Get mac address on windows

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
push eax
push 0
mov dword [esp + 0x10], 0
call sub.iphlpapi.dll_GetAdaptersInfo
mov ecx, dword [esp + 8]
push ecx
call fcn.0040e898
add esp, 4
lea edx, [esp + 8]
mov esi, eax
push edx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
xor eax, eax
test esi, esi
je 0x4013e3
mov ebx, dword [esp + 0x10]
push edi
mov ecx, dword [esi + 0x190]
xor edi, edi
test ecx, ecx
jle 0x4013cf
lea esp, [esp]
movzx ecx, byte [esi + edi + 0x194]
mov edx, ecx
shr edx, 4
and ecx, 0x8000000f
jns 0x40138a
dec ecx
or ecx, 0xfffffff0
inc ecx
cmp edx, 0xa
jge 0x401394
add edx, 0x30
jmp 0x401397
add edx, 0x37
cmp ecx, 0xa
mov byte [eax + ebx], dl
jge 0x4013a4
add ecx, 0x30
jmp 0x4013a7
add ecx, 0x37
mov byte [eax + ebx + 1], cl
mov ecx, dword [esi + 0x190]
add eax, 2
dec ecx
cmp edi, ecx
jge 0x4013bf
mov byte [eax + ebx], 0x3a
jmp 0x4013c3
mov byte [eax + ebx], 0x23
mov ecx, dword [esi + 0x190]
inc eax
inc edi
cmp edi, ecx
jl 0x401370
mov esi, dword [esi]
test esi, esi
jne 0x401360
test eax, eax
pop edi
jle 0x4013e3
dec eax
pop esi
mov byte [eax + ebx], 0
pop ebx
pop ecx
ret
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret
Function at 0x402020
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41a72b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [0x421260]
push ebx
push esi
push edi
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x220], eax
call fcn.004092b0
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x18], 0x10
lea esi, [edi + 4]
mov dword [esp + 0x10], esi
jb 0x40206f
mov eax, dword [esi]
jmp 0x402071
mov eax, esi
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4020c4
cmp dword [edi + 0x18], 0x10
jb 0x402096
mov eax, dword [esi]
jmp 0x402098
mov eax, esi
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4020c4
lea ecx, [esp + 0x14]
mov dword [esp + 0x22c], 0xffffffff
call fcn.00409290
xor al, al
jmp 0x4021d9
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x4021c3
cmp dword [edi + 0x18], 0x10
mov dword [esp + 0xc], 0
jb 0x4020ed
mov esi, dword [esi]
lea edx, [esp + 0xc]
push edx
push 2
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4021c3
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x18], 0x10
mov edx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x14]
mov edx, dword [edx + 0x14]
jb 0x40211d
mov esi, dword [ecx + 4]
jmp 0x402120
lea esi, [ecx + 4]
mov ecx, eax
mov ebx, ecx
shr ecx, 2
lea edi, [esp + 0x118]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
xor ebx, ebx
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x118], bl
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x40214e
mov esi, dword [eax + 4]
jmp 0x402151
lea esi, [eax + 4]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x18]
and ecx, 3
cmp eax, 1
rep movsb byte es:[edi], byte [esi]
mov byte [esp + edx + 0x18], bl
jne 0x402188
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x128]
push edx
push eax
jmp 0x4021b2
cmp eax, 4
jne 0x4021b8
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], 0x10
jb 0x40219e
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
jmp 0x4021a2
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov dword [esp + 0x22c], 0xffffffff
call fcn.00409290
mov al, 1
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x21c]
call fcn.0040e818
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4067d0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x41aa98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x421260]
mov dword [esp + 0x38], eax
push ebx
mov eax, dword [esp + 0x64]
xor ebx, ebx
cmp eax, 3
mov dword [esp + 0x48], ebx
ja 0x40681c
cmp dword [esp + 0x68], 0x10
jb 0x406815
mov eax, dword [esp + 0x54]
push eax
call fcn.0040e74d
add esp, 4
xor eax, eax
jmp 0x406961
push esi
push 2
push ebx
push 0x41b44c
lea ecx, [esp + 0x60]
call fcn.00401b70
mov esi, eax
cmp esi, 0xffffffff
jne 0x406853
cmp dword [esp + 0x6c], 0x10
jb 0x406849
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0040e74d
add esp, 4
mov eax, 1
jmp 0x406960
push ebp
add esi, 2
cmp esi, 0xffffffff
push edi
mov ebp, 0x10
je 0x406949
mov edi, 0xf
jmp 0x406870
push 1
push esi
push 0x41b360
lea ecx, [esp + 0x68]
call fcn.00401b70
mov esi, eax
cmp esi, 0xffffffff
je 0x406949
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
push esi
push ebx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x68]
mov byte [esp + 0x60], 1
call fcn.004045f0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 2
call fcn.00403720
cmp dword [esp + 0x28], ebp
mov byte [esp + 0x54], 1
jb 0x4068d7
mov eax, dword [esp + 0x14]
push eax
call fcn.0040e74d
add esp, 4
cmp dword [esp + 0x44], ebp
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jae 0x4068f1
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.0040f406
add esp, 8
cmp eax, 0xffffffff
jne 0x40691a
cmp dword [esp + 0x44], ebp
mov eax, dword [esp + 0x30]
jae 0x40690e
lea eax, [esp + 0x30]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40697a
mov eax, dword [esp + 0x44]
inc esi
cmp eax, ebp
mov byte [esp + 0x54], bl
jb 0x406934
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0040e74d
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
jne 0x406870
cmp dword [esp + 0x74], ebp
jb 0x40695c
mov edx, dword [esp + 0x60]
push edx
call fcn.0040e74d
add esp, 4
xor eax, eax
pop edi
pop ebp
pop esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3c]
pop ebx
call fcn.0040e818
add esp, 0x48
ret
lea ecx, [esp + 0x2c]
call fcn.00402220
lea ecx, [esp + 0x5c]
call fcn.00402220
mov eax, 1
jmp 0x40695e
Function at 0x40a110
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40a11b
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x40a213
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x41ca30]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x41ca30]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x41ca30]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x41ca30]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x41ca30]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x41ca30]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x41ca30]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x41ca30]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x40a136
test edi, edi
je 0x40a232
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x41ca30]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x40a217
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

Function at 0x40a670
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
mov cl, byte [ebx]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x40a6b1
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a6a6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0x10]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
lea esi, [edx + eax]
cmp esi, ecx
push edi
jbe 0x40a6c4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
xor edx, edx
div ebp
pop ebp
mov dword [ebx + 0x18], ecx
pop ebx
ret
Function at 0x40b610
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x421260]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
mov dword [esp + 0x20c], eax
je 0x40b6da
mov al, byte [edi]
test al, al
je 0x40b6da
push esi
mov esi, edi
mov ecx, edi
cmp al, 0x2f
je 0x40b649
cmp al, 0x5c
jne 0x40b64b
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40b641
cmp esi, edi
push ebx
mov ebx, dword [esp + 0x21c]
je 0x40b680
sub esi, edi
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.0040f552
lea ecx, [esp + 0x18]
push ecx
push ebx
mov byte [esp + esi + 0x20], 0
call fcn.0040b610
add esp, 0x14
lea edx, [esp + 0x110]
mov eax, ebx
sub edx, ebx
pop ebx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40b690
mov eax, edi
mov edx, edi
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b6a0
lea edi, [esp + 0x10c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40b6b1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea edx, [esp + 0x110]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
mov ecx, dword [esp + 0x20c]
pop edi
call fcn.0040e818
add esp, 0x20c
ret

Function at 0x40d310
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x40d3ae
cmp dword [ebx + 4], 0xffffffff
jne 0x40d3ae
push edi
lea edi, [ebx + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40d340
mov ax, word [0x41b360]
push esi
mov esi, dword [esp + 0x18]
cmp esi, 1
mov word [edi], ax
mov edi, dword [esp + 0x10]
jne 0x40d376
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x40d376
pop esi
pop edi
mov eax, 0x2000000
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push edi
call fcn.0040a500
add esp, 0x10
test eax, eax
jne 0x40d398
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
push eax
call fcn.0040cdd0
add esp, 4
pop esi
mov dword [ebx], eax
mov eax, dword [0x421fe4]
pop edi
pop ebx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x40f406
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f426
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00414182
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40f447
test byte [esp + 8], 2
je 0x40f447
mov dword [0x4220f8], 0xd
mov dword [0x4220fc], 5
jmp 0x40f422
xor eax, eax
ret

Function at 0x40f972
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x41d2c0
call fcn.00413024
mov edi, 0x94
mov eax, edi
call fcn.0040f910
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 [0x422104], ecx
mov eax, dword [esi + 4]
mov dword [0x422110], eax
mov edx, dword [esi + 8]
mov dword [0x422114], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x422108], esi
cmp ecx, 2
je 0x40f9d2
or esi, 0x8000
mov dword [0x422108], esi
shl eax, 8
add eax, edx
mov dword [0x42210c], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40fa0b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fa0b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40fa23
cmp eax, 0x20b
je 0x40fa10
mov dword [ebp - 0x1c], edi
jmp 0x40fa37
cmp dword [ecx + 0x84], 0xe
jbe 0x40fa0b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40fa31
cmp dword [ecx + 0x74], 0xe
jbe 0x40fa0b
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00411961
pop ecx
test eax, eax
jne 0x40fa63
cmp dword [0x4220f0], 2
je 0x40fa50
call fcn.00414bb7
push 0x1c
call fcn.00414a40
push 0xff
call fcn.004104ad
pop ecx
pop ecx
call fcn.00415303
mov dword [ebp - 4], edi
call fcn.00415158
test eax, eax
jge 0x40fa7c
push 0x1b
call fcn.0040f94d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42383c], eax
call fcn.00415036
mov dword [0x4220e8], eax
call fcn.00414f94
test eax, eax
jge 0x40faa2
push 8
call fcn.0040f94d
pop ecx
call fcn.00414d61
test eax, eax
jge 0x40fab3
push 9
call fcn.0040f94d
pop ecx
push 1
call fcn.004104dd
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40fac9
push eax
call fcn.0040f94d
pop ecx
mov eax, dword [0x422124]
mov dword [0x422128], eax
push eax
push dword [0x42211c]
push dword [0x422118]
call fcn.004083a0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x40faf8
push esi
call fcn.00410608
call fcn.0041062a
jmp 0x40fb2a
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0041305f
ret
Function at 0x410547
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x422144], esi
push edi
jne 0x410567
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x422140], esi
mov byte [0x42213c], al
jne 0x4105cd
mov ecx, dword [0x423830]
test ecx, ecx
je 0x4105ae
mov eax, dword [0x42382c]
sub eax, 4
cmp eax, ecx
jmp 0x4105a7
mov eax, dword [eax]
test eax, eax
je 0x410599
call eax
mov eax, dword [0x42382c]
sub eax, 4
cmp eax, dword [0x423830]
mov dword [0x42382c], eax
jae 0x410591
mov eax, 0x421030
mov esi, 0x421038
cmp eax, esi
mov edi, eax
jae 0x4105cd
mov eax, dword [edi]
test eax, eax
je 0x4105c6
call eax
add edi, 4
cmp edi, esi
jb 0x4105be
mov eax, 0x42103c
mov esi, 0x421044
cmp eax, esi
mov edi, eax
jae 0x4105ec
mov eax, dword [edi]
test eax, eax
je 0x4105e5
call eax
add edi, 4
cmp edi, esi
jb 0x4105dd
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x410606
push dword [ebp + 8]
mov dword [0x422144], 1
call fcn.004104ad
pop ebp
ret
Function at 0x41350b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x42248c]
mov eax, dword [0x421260]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4136d1
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4224a0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4136d1
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x413575
xor eax, eax
jmp 0x4136e5
test al, 0x20
je 0x413586
push 2
push edi
push edi
push ecx
call fcn.0041765f
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41365b
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4136a2
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4135e8
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4135d9
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4135bb
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413628
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x413634
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4135af
jmp 0x413636
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4136cc
cmp dword [ebp + 0x3a4], edi
je 0x4136a2
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x413694
mov dword [0x4220fc], eax
jmp 0x4136d8
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413686
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x413636
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x413636
push dword [ebp + 0x3a4]
call fcn.00414182
pop ecx
jmp 0x4136e2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4136ba
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x41356e
mov dword [0x4220f8], 0x1c
mov dword [0x4220fc], edi
jmp 0x4136e2
sub eax, dword [ebp - 0x7c]
jmp 0x4136e5
and dword [0x4220fc], 0
mov dword [0x4220f8], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040e818
add ebp, 0x39c
leave
ret
Function at 0x414a40
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x421260]
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 + 0x421a18]
je 0x414a75
inc eax
cmp eax, 0x13
jb 0x414a66
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x421a18]
jne 0x414b9b
mov eax, dword [0x4220f0]
cmp eax, 1
je 0x414b73
cmp eax, edx
jne 0x414aa5
cmp dword [0x4212e4], 1
je 0x414b73
cmp ecx, 0xfc
je 0x414b9b
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 0x414adb
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00413230
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00410710
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x414b0f
mov eax, edi
push eax
call fcn.00410710
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41daec
push edi
call fcn.0040f7e0
add esp, 0x10
push edi
call fcn.00410710
push dword [esi + 0x421a1c]
mov ebx, eax
call fcn.00410710
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040f910
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00413230
push edi
push ebx
call fcn.00413240
push 0x41dae8
push ebx
call fcn.00413240
push dword [esi + 0x421a1c]
push ebx
call fcn.00413240
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004172e5
add esp, 0x2c
jmp 0x414b9b
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x421a1c]
push dword [esi]
call fcn.00410710
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.0040e818
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret