joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d160
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov ecx, ebp
push edi
mov edi, dword [esp + 0x10]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40d170
sub ecx, esi
mov eax, ecx
xor esi, esi
test eax, eax
jle 0x40d24a
push ebx
mov bl, byte [esp + 0x14]
lea ebx, [ebx]
cmp byte [ebp], 0x3d
je 0x40d249
lea ebx, [ebx]
mov cl, byte [ebp]
test cl, cl
je 0x40d249
cmp cl, 0x41
jl 0x40d1ba
cmp cl, 0x5a
jg 0x40d1ba
sub cl, 0x41
jmp 0x40d1ea
cmp cl, 0x61
jl 0x40d1c9
cmp cl, 0x7a
jg 0x40d1c9
sub cl, 0x47
jmp 0x40d1ea
cmp cl, 0x30
jl 0x40d1d8
cmp cl, 0x39
jg 0x40d1d8
add cl, 4
jmp 0x40d1ea
cmp cl, 0x2b
jne 0x40d1e1
mov cl, 0x3e
jmp 0x40d1ea
cmp cl, 0x2f
setne cl
add cl, 0x3f
inc ebp
cmp cl, 0x40
je 0x40d1a0
cmp cl, 0x41
je 0x40d249
mov edx, esi
and edx, 0x80000003
jns 0x40d204
dec edx
or edx, 0xfffffffc
inc edx
cmp edx, 3
ja case.default.0x40d209
jmp dword [edx*4 + 0x40d258]
shl cl, 2
mov bl, cl
jmp case.default.0x40d209
mov dl, cl
shr dl, 4
or dl, bl
mov byte [edi], dl
inc edi
shl cl, 4
mov bl, cl
jmp case.default.0x40d209
mov dl, cl
shr dl, 2
or dl, bl
mov byte [edi], dl
inc edi
shl cl, 6
mov bl, cl
jmp case.default.0x40d209
mov dl, bl
or dl, cl
mov byte [edi], dl
inc edi
inc esi
cmp esi, eax
jl 0x40d190
pop ebx
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
sub eax, ecx
pop ebp
ret

Function at 0x40d770
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x458138]
sub esp, 0x254
test eax, eax
jne 0x40d83f
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x446010
push SysReAllocStringLen
mov dword [0x458138], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d83f
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d835
push esi
push edi
mov ecx, 0xb
mov esi, 0x445fe4
lea edi, [esp + 0x14]
lea edx, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x40d833
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi*2 + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40d833
mov dword [0x458134], 1
pop edi
pop esi
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x458134]
add esp, 0x254
ret
Function at 0x40df00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x442583
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov ecx, ebx
mov dword [esp + 0x18], edi
mov dword [esi], 0x4460f0
call fcn.0042ef01
mov dword [ebx], method.CPtrArray.virtual_0
lea ebx, [esi + 0x1c]
mov ecx, ebx
mov byte [esp + 0x18], 1
call fcn.0042ef01
mov dword [ebx], method.CPtrArray.virtual_0
or eax, 0xffffffff
push 0x4580e4
push edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], edi
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40e7c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x442618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
xor eax, eax
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], vtable.CPen.0
mov ecx, dword [esp + 0x3c]
push ecx
push eax
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call fcn.00437474
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00437550
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
lea eax, [edi + 2]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00436f0f
lea eax, [edi + 5]
push eax
push ebx
mov ecx, esi
call fcn.00436baa
lea ebp, [edi + 3]
push ebp
lea eax, [ebx + 1]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00436f0f
lea eax, [edi + 6]
push eax
lea eax, [ebx + 1]
push eax
mov ecx, esi
call fcn.00436baa
lea eax, [edi + 4]
push eax
lea ecx, [ebx + 2]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00436f0f
lea eax, [edi + 7]
push eax
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.00436baa
push ebp
lea eax, [ebx + 3]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00436f0f
lea eax, [edi + 6]
push eax
lea eax, [ebx + 3]
push eax
mov ecx, esi
call fcn.00436baa
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00436f0f
lea eax, [edi + 5]
push eax
lea eax, [ebx + 4]
push eax
mov ecx, esi
call fcn.00436baa
lea ecx, [edi + 1]
push ecx
lea eax, [ebx + 5]
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00436f0f
lea eax, [edi + 4]
push eax
lea eax, [ebx + 5]
push eax
mov ecx, esi
call fcn.00436baa
push edi
add ebx, 6
push ebx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00436f0f
push ebp
push ebx
mov ecx, esi
call fcn.00436baa
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.00437550
lea ecx, [esp + 0x10]
call fcn.004374cb
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.004374cb
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x40ee80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x442698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov ebp, ecx
mov eax, esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 8]
push edi
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edi, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], vtable.CBrush.0
cmp dword [0x45811c], 7
mov dword [esp + 0x30], edi
jne 0x40eee7
call fcn.0040d770
test eax, eax
jne 0x40eee7
push 0xf
jmp 0x40eee9
push 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x40ef0c
fld qword [0x446118]
sub esp, 8
fstp qword [esp]
push eax
call fcn.0040d430
add esp, 0xc
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.00437474
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x38]
mov edx, dword [edi + 4]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call fcn.004374cb
cmp dword [0x45811c], 2
jl 0x40ef5a
mov ecx, dword [edi + 4]
push 0xf
push 2
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
test eax, eax
push 7
jne 0x40ef7e
call ebx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
add edx, 4
push edx
add eax, 4
push eax
push edi
mov ecx, ebp
call fcn.0040e7c0
jmp 0x40ef96
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
add ecx, 4
push ecx
add edx, 5
push edx
push edi
mov ecx, ebp
call fcn.0040e6a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.004374cb
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10

Function at 0x40f410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.0043dc3b
movzx ebx, word [esp + 0x14]
mov edi, dword [eax + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 2
push ebx
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x40f441
push 2
push ebx
xor edi, edi
push edi
call ebp
mov esi, eax
test esi, esi
je 0x40f467
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f467
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40f467
push eax
call fcn.0040d730
add esp, 4
cmp ax, 0x10
je 0x40f46e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push esi
push edi
call fcn.00438564
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4176c9
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 0x41771c
call fcn.0043dc3b
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x41771c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x417712
xor eax, eax
jmp 0x417835
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 0x41774c
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 0x41774c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x417832
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x417779
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004161db
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x417832
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4177c2
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4177c2
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4177bc
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004161db
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x417822
and dword [ebp + 0xc], 0
jmp 0x417822
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x417822
push 0xc
call fcn.00434636
mov esi, eax
test esi, esi
pop ecx
je 0x417804
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 0x417806
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x41781d
push dword [ebp - 8]
call fcn.0042f0e0
jmp 0x417822
call fcn.0042f0b7
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x417787
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41fff3
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x44a120
call fcn.00421cd4
mov edi, 0x94
mov eax, edi
call fcn.004208a0
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 [0x45a3d8], ecx
mov eax, dword [esi + 4]
mov dword [0x45a3e4], eax
mov edx, dword [esi + 8]
mov dword [0x45a3e8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x45a3dc], esi
cmp ecx, 2
je 0x420053
or esi, 0x8000
mov dword [0x45a3dc], esi
shl eax, 8
add eax, edx
mov dword [0x45a3e0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42008e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42008e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4200a6
cmp eax, 0x20b
je 0x420093
mov dword [ebp - 0x1c], esi
jmp 0x4200ba
cmp dword [ecx + 0x84], 0xe
jbe 0x42008e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4200b4
cmp dword [ecx + 0x74], 0xe
jbe 0x42008e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00423bcb
pop ecx
test eax, eax
jne 0x4200ce
push 0x1c
call fcn.0041ffcf
pop ecx
call fcn.00423ac2
test eax, eax
jne 0x4200df
push 0x10
call fcn.0041ffcf
pop ecx
call fcn.0042385c
mov dword [ebp - 4], esi
call fcn.0042365e
test eax, eax
jge 0x4200f8
push 0x1b
call fcn.0041ffaa
pop ecx
call fcn.004235bf
mov dword [0x45bd90], eax
call fcn.00423455
mov dword [0x45a3c0], eax
call fcn.004233bf
test eax, eax
jge 0x42011d
push 8
call fcn.0041ffaa
pop ecx
call fcn.0042318c
test eax, eax
jge 0x42012e
push 9
call fcn.0041ffaa
pop ecx
push 1
call fcn.00421a53
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x420144
push eax
call fcn.0041ffaa
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00423146
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x420165
movzx eax, word [ebp - 0x40]
jmp 0x420168
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042dde5
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x420186
push edi
call fcn.00421b80
call fcn.00421ba2
jmp 0x4201b8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00421d0f
ret
Function at 0x421abd
Capabilities:
Terminate process

Disassembly:
push 8
push 0x44a1f0
call fcn.00421cd4
push 8
call fcn.004264bb
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x45a418], esi
jne 0x421af1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x45a414], esi
mov al, byte [ebp + 0x10]
mov byte [0x45a410], al
cmp dword [ebp + 0xc], edi
jne 0x421b3b
cmp dword [0x45bd88], edi
je 0x421b2b
mov eax, dword [0x45bd84]
sub eax, 4
mov dword [0x45bd84], eax
cmp eax, dword [0x45bd88]
jb 0x421b2b
mov eax, dword [eax]
cmp eax, edi
je 0x421b0c
call eax
jmp 0x421b0c
push 0x4540b0
mov eax, 0x4540a8
call fcn.00421a3b
pop ecx
push 0x4540bc
mov eax, 0x4540b4
call fcn.00421a3b
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x421b6c
cmp dword [ebp + 0x10], edi
jne 0x421b7a
mov dword [0x45a418], esi
push dword [ebp + 8]
call fcn.004219f9
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x421b79
push 8
call fcn.00426406
pop ecx
ret
call fcn.00421d0f
ret

Function at 0x421bee
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.004208a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x421c89
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 [0x45a3d8]
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 0x421c89
cmp eax, 1
je 0x421caa
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 0x421c89
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x421c56
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x421c85
xor eax, eax
inc eax
jmp 0x421cc9
cmp edi, eax
jae 0x421c8d
xor eax, eax
jmp 0x421cc9
cmp eax, esi
jae 0x421c94
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 [0x45a3d8]
jmp 0x421cad
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 0x422e32
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x45704c]
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 + 0x4571c0]
je 0x422e67
inc eax
cmp eax, 0x13
jb 0x422e58
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4571c0]
jne 0x422f8d
mov eax, dword [0x45a3c4]
cmp eax, 1
je 0x422f65
cmp eax, edx
jne 0x422e97
cmp dword [0x456ffc], 1
je 0x422f65
cmp ecx, 0xfc
je 0x422f8d
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 0x422ecd
lea eax, [ebp - 0x80]
push 0x44a66c
push eax
call fcn.00426270
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00421fe0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x422f01
mov eax, edi
push eax
call fcn.00421fe0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x44a668
push edi
call fcn.00429d40
add esp, 0x10
push edi
call fcn.00421fe0
push dword [esi + 0x4571c4]
mov ebx, eax
call fcn.00421fe0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004208a0
mov ebx, esp
push 0x44a64c
push ebx
call fcn.00426270
push edi
push ebx
call fcn.00426280
push 0x44a648
push ebx
call fcn.00426280
push dword [esi + 0x4571c4]
push ebx
call fcn.00426280
push 0x12010
push 0x44a620
push ebx
call fcn.00429c3b
add esp, 0x2c
jmp 0x422f8d
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4571c4]
push dword [esi]
call fcn.00421fe0
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.004214a1
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x423455
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x45a62c]
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 0x42349e
call ebp
mov esi, eax
cmp esi, ebx
je 0x423484
mov dword [0x45a62c], 1
jmp 0x4234a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x423499
push 2
pop eax
mov dword [0x45a62c], eax
jmp 0x42349e
mov eax, dword [0x45a62c]
cmp eax, 1
jne 0x4234fb
cmp esi, ebx
jne 0x4234b6
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4234b6
xor eax, eax
jmp 0x4235a2
cmp word [esi], bx
mov eax, esi
je 0x4234cb
inc eax
inc eax
cmp word [eax], bx
jne 0x4234bd
inc eax
inc eax
cmp word [eax], bx
jne 0x4234bd
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00421245
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4234ee
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4235a2
push ebp
push esi
push edi
call fcn.00421530
add esp, 0xc
jmp 0x4234e0
cmp eax, 2
je 0x423504
cmp eax, ebx
jne 0x4234af
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x4234af
cmp byte [ebp], bl
mov esi, ebp
je 0x42353a
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x4234af
push esi
add edi, eax
call fcn.00421fe0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x423517
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00421245
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4235b3
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x423594
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 0x4235a9
push edi
call fcn.00421fe0
push esi
lea edi, [edi + eax + 1]
call fcn.00420e36
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x42355a
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.0042112d
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4234af
Function at 0x4235bf
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x45a630]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x4235ff
call esi
test eax, eax
je 0x4235e4
mov dword [0x45a630], 1
jmp 0x423604
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4235fb
mov dword [0x45a630], 2
jmp 0x42360d
xor eax, eax
jmp 0x42365b
cmp eax, 1
jne 0x423608
call esi
jmp 0x42365b
cmp eax, 2
jne 0x4235fb
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 0x423653
lea eax, [esi + esi]
push eax
call fcn.00421245
mov ebp, eax
test ebp, ebp
pop ecx
je 0x423653
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x423657
push ebp
call fcn.0042112d
pop ecx
xor eax, eax
jmp 0x423659
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret