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

Disassembly:
mov eax, dword [eax + 4]
test eax, eax
je 0x466000
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret

Function at 0x466010
Capabilities:
Hide graphical window

Disassembly:
cmp dword [eax + 0x24], 0
mov eax, dword [eax + 4]
jne 0x46602c
test eax, eax
je 0x46603f
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret
push 0
push 0x2af80006
push 0x414
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
ret

Function at 0x466080
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x54
cmp dword [edi + 4], 0
push ebx
push ebp
push esi
je 0x4661d6
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x4660c6
xor esi, esi
mov eax, dword [edi + 0x18]
cmp dword [eax + esi + 8], 0
je 0x4660bd
cmp byte [eax + esi + 4], 6
je 0x4660bd
mov edx, dword [esi + eax + 8]
lea ecx, [esi + eax]
push edx
push edi
mov eax, str.Submit
call fcn.004662a0
inc ebp
add esi, 0x14
cmp ebp, dword [edi + 0x10]
jb 0x466099
xor esi, esi
xor ebx, ebx
xor ebp, ebp
cmp esi, dword [edi + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
je 0x4660fb
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x20000
je 0x466144
cmp dword [esp + 0x10], 1
jne 0x466133
cmp ebx, 1
jle 0x466133
cmp ebp, 0xffffffff
jne 0x46610e
xor ebp, ebp
push 0xa
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.004c4bd5
mov edx, dword [esp + 0x24]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.004aa2a0
cmp esi, dword [edi + 0x10]
je 0x4661c3
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x14]
cmp byte [eax + ecx + 4], 6
jne 0x4661ac
mov esi, dword [eax + ecx + 8]
inc ebx
test esi, esi
je 0x466163
inc dword [esp + 0x10]
mov dword [esp + 0x18], esi
mov edx, dword [eax + ecx]
push 0
push 0
push 0xf0
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x466197
test ebp, ebp
je 0x466184
or ebp, 0xffffffff
jmp 0x466186
mov ebp, ebx
test esi, esi
je 0x4661ac
push 1
push 0
push 0xffffffffffffffff
push 0x4e6784
jmp 0x4661a6
test esi, esi
je 0x4661ac
push 1
push 0
push 0xffffffffffffffff
push 0x4e1a5c
push esi
call fcn.004aa2a0
mov esi, dword [esp + 0x1c]
add dword [esp + 0x14], 0x14
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [edi + 0x10]
jbe 0x4660df
cmp byte [esp + 0x64], 0
je 0x4661d6
mov eax, dword [edi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret 4
Function at 0x4661f0
Capabilities:
Get graphical window text

Disassembly:
cmp ecx, 0x2af8
jae 0x466294
test edx, edx
je 0x466294
cmp dword [edx + 4], 0
je 0x466294
cmp ecx, dword [edx + 0x10]
jae 0x466294
mov edx, dword [edx + 0x18]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*4]
test eax, eax
je 0x466263
mov edx, dword [ecx + 8]
test edx, edx
je 0x466256
mov edx, dword [edx + 0x18]
push esi
mov esi, eax
movzx ecx, word [edx]
mov word [esi], cx
add edx, 2
add esi, 2
test cx, cx
jne 0x466231
lea edx, [eax + 2]
pop esi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x466246
sub eax, edx
sar eax, 1
ret
push 0x40
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
mov eax, dword [ecx + 8]
test eax, eax
je 0x466280
mov eax, dword [eax + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x466270
sub eax, edx
sar eax, 1
ret
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, 0x3f
jbe 0x46629f
mov eax, 0x3f
ret
test eax, eax
je 0x46629d
xor edx, edx
mov word [eax], dx
xor eax, eax
ret
Function at 0x468b80
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, eax
movzx eax, word [esi]
xor cl, cl
mov byte [esp + 0xb], cl
test ax, ax
je 0x468bc4
movzx eax, ax
cmp eax, 0x21
je 0x468bb1
cmp eax, 0x2b
je 0x468bac
cmp eax, 0x5e
jne 0x468bc0
or cl, 2
jmp 0x468bb4
or cl, 1
jmp 0x468bb4
or cl, 4
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x468b95
mov byte [esp + 0xb], cl
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.00414250
mov bl, al
add esp, 0xc
mov byte [esp + 0xc], bl
test bl, bl
jne 0x468bed
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, esi
call fcn.004141a0
movzx eax, ax
test ax, ax
jne 0x468c12
mov eax, dword [esp + 0xc]
push eax
xor bl, bl
call fcn.00414830
mov bl, byte [esp + 0x10]
add esp, 4
movzx eax, ax
test eax, 0x100
je 0x468c1e
or byte [esp + 0xb], 8
movzx eax, byte [esp + 0xb]
movzx ecx, bl
shl eax, 8
pop esi
or eax, ecx
pop ebx
add esp, 8
ret
Function at 0x46a180
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x10
movzx eax, byte [esi + 4]
push ebp
mov ebp, dword [esp + 0x18]
add eax, 0xfffffff7
push edi
mov dword [esp + 8], SysStringLen
cmp eax, 8
ja case.0x46a1a1.12
jmp dword [eax*4 + 0x46a2a0]
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x19f
push eax
call edi
cmp eax, 0xffffffff
je 0x46a24e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x198
push edx
call edi
jmp 0x46a24e
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0xffffffffffffffff
push 0x100c
push eax
call edi
cmp eax, 0xffffffff
je 0x46a24e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x18], 2
call edi
jmp 0x46a24e
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 9
push 0x110a
push eax
call edi
test eax, eax
je 0x46a24e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push 1
push 0x1104
push edx
mov dword [esp + 0x18], eax
call edi
jmp 0x46a24e
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 8], 0x80000000
jne 0x46a268
mov eax, dword [esi]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x46a27a
mov edx, dword [esi]
push 2
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx + 2]
pop edi
mov dword [ebp + 4], ecx
pop ebp
add esp, 0x10
ret 4
Function at 0x46a860
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push esi
mov esi, eax
movzx eax, word [esi]
cmp eax, 0x20
je 0x46a871
cmp eax, 9
jne 0x46a876
add esi, 2
jmp 0x46a864
movzx ecx, word [esi]
test cx, cx
jne 0x46a883
xor al, al
pop esi
pop ecx
ret
cmp word [esi + 2], 0
lea eax, [esi + 2]
jne 0x46a89d
mov eax, dword [esp + 0xc]
mov word [eax + 2], cx
mov byte [eax], 0
mov al, 1
pop esi
pop ecx
ret
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
push 0x2b
xor bl, bl
push eax
mov byte [edi], 1
mov byte [esp + 0x1b], bl
call fcn.004c5cc1
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x46a96c
lea eax, [ebp - 2]
cmp eax, esi
jbe 0x46a8e4
lea esp, [esp]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x46a8dd
cmp ecx, 9
jne 0x46a8e4
sub eax, 2
cmp eax, esi
ja 0x46a8d0
sub eax, esi
sar eax, 1
lea edi, [eax + 1]
push edi
push str.Ctrl
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x46a903
or bl, 1
jmp 0x46a931
push edi
push 0x504b68
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x46a91b
or bl, 4
jmp 0x46a931
push edi
push str.Shift
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x46a9a9
or bl, 0x10
lea esi, [ebp + 2]
movzx eax, word [esi]
cmp eax, 0x20
je 0x46a941
cmp eax, 9
jne 0x46a946
add esi, 2
jmp 0x46a934
cmp word [esi], 0
je 0x46a9a9
lea eax, [esi + 2]
push 0x2b
push eax
call fcn.004c5cc1
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x46a8c2
mov edi, dword [esp + 0x18]
mov byte [esp + 0x13], bl
cmp word [esi + 2], 0
jne 0x46a9b5
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [esi]
push eax
push ecx
call dword [sym.imp.USER32.dll_CharLowerW]
lea edi, [esp + 0x1b]
mov esi, eax
call fcn.00414340
mov bl, byte [esp + 0x1b]
movzx edx, al
mov eax, dword [esp + 0x20]
add esp, 8
mov word [eax + 2], dx
mov edi, eax
jmp 0x46a9d3
pop edi
pop ebp
mov byte [esp + 0xb], bl
pop ebx
xor al, al
pop esi
pop ecx
ret
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.00414250
movzx ecx, al
add esp, 0xc
mov word [edi + 2], cx
test bl, 1
je 0x46a9db
or byte [edi], 8
test bl, 4
je 0x46a9e3
or byte [edi], 0x10
test bl, 0x10
je 0x46a9eb
or byte [edi], 4
cmp word [edi + 2], 0
pop edi
pop ebp
pop ebx
setne al
pop esi
pop ecx
ret
Function at 0x46e150
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov cx, word [0x511540]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov eax, 0x20
push esi
mov word [esp + 0xc], ax
push edi
lea ebx, [esp + 0x10]
mov eax, ebp
mov word [esp + 0x12], cx
mov dword [esp + 0x14], 0x90028
mov dword [esp + 0x18], 0x3e003c
mov dword [esp + 0x1c], 0x3d003a
mov dword [esp + 0x20], 0x2d002b
mov dword [esp + 0x24], 0x2f002a
mov dword [esp + 0x28], 0x7e0021
mov dword [esp + 0x2c], 0x7c0026
mov dword [esp + 0x30], 0x5b005e
mov dword [esp + 0x34], 0x3f002e
mov dword [esp + 0x38], 0x7b
call fcn.00409df0
test eax, eax
je 0x46e1d9
cmp eax, ebp
jbe 0x46e1f3
sub eax, 2
jmp 0x46e1f3
mov eax, ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46e1e0
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 2]
mov edi, eax
cmp eax, ebp
jbe 0x46e214
lea esp, [esp]
movzx eax, word [edi]
cmp eax, 0x20
je 0x46e20d
cmp eax, 9
jne 0x46e214
sub edi, 2
cmp edi, ebp
ja 0x46e200
mov esi, edi
sub esi, ebp
sar esi, 1
inc esi
cmp esi, 0xfd
jbe 0x46e24e
cmp byte [esp + 0x4c], 0
je 0x46e242
push ebp
push 0x505240
call fcn.0049fc00
mov ecx, dword [esp + 0x48]
add esp, 4
push eax
call fcn.004768b0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
mov ebx, dword [esp + 0x44]
push esi
push ebp
push ebx
call fcn.004c67b5
add esp, 0xc
xor ecx, ecx
mov eax, edi
pop edi
mov word [ebx + esi*2], cx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x47b160
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d7368
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x24
push ebp
mov ebp, dword [esp + 0x3c]
test eax, eax
je 0x47b362
cmp ebx, 1
jb 0x47b362
push esi
mov esi, dword [eax + 4]
mov eax, dword [esi]
cmp eax, 0x4034b50
je 0x47b1b9
cmp eax, 0xfbfcb4af
je 0x47b1b9
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
test ebp, ebp
jne 0x47b1c2
mov ebp, 0x4e1a4c
push edi
push 0x5072a0
call fcn.0049fc00
add esp, 4
push eax
lea edi, [esp + 0x10]
mov dword [esp + 0x10], vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
call fcn.00450ff0
push ebp
mov eax, edi
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x44], 0
call fcn.00481d50
add esp, 0xc
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
test eax, eax
je 0x47b244
lea ecx, [eax + 0x10]
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
jne 0x47b244
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 4]
test eax, eax
je 0x47b23b
push eax
call fcn.004c57e5
add esp, 4
push edi
call fcn.004c57da
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x47b252
mov eax, dword [eax]
test eax, eax
jne 0x47b257
mov eax, 0x4e1a4c
mov dword [esp + 0x1c], 0
mov byte [esp + 0x20], 0
push eax
mov byte [esp + 0x3c], 3
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CStringCharFromWChar.0
call fcn.0049fa40
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x47b291
mov ebp, dword [eax]
test ebp, ebp
jne 0x47b296
mov ebp, 0x4f0aa8
mov eax, ebp
lea edx, [eax + 1]
jmp 0x47b2a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47b2a0
sub eax, edx
mov edx, dword [esi]
mov ecx, 4
not edx
mov edi, eax
mov dword [esi], edx
cmp ebx, ecx
jbe 0x47b2db
lea ebx, [ebx]
xor edx, edx
mov eax, ecx
div edi
inc ecx
mov al, byte [edx + ebp]
xor al, byte [ecx + esi - 1]
or dl, 0xff
sub dl, al
mov byte [ecx + esi - 1], dl
cmp ecx, ebx
jb 0x47b2c0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.CKuStringT_char__class_CKuStringUtilA_.0
pop edi
test ecx, ecx
je 0x47b312
mov eax, dword [ecx + 0x10]
dec eax
mov dword [ecx + 0x10], eax
jne 0x47b312
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
test eax, eax
je 0x47b309
push eax
call fcn.004c57e5
add esp, 4
push esi
call fcn.004c57da
add esp, 4
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
test eax, eax
je 0x47b34f
lea ecx, [eax + 0x10]
mov esi, eax
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
jne 0x47b34f
mov eax, dword [esi + 4]
test eax, eax
je 0x47b346
push eax
call fcn.004c57e5
add esp, 4
push esi
call fcn.004c57da
add esp, 4
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, dword [esp + 0x28]
xor al, al
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x47b940
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0xaaaaaaab
mul dword [esp + 0xc]
shr edx, 1
lea ecx, [edx + edx*2 + 3]
add ecx, ecx
add ecx, ecx
mov eax, 0xaaaaaaab
mul ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
shr edx, 1
push edi
lea edi, [edx + edx + 2]
xor ebx, ebx
call fcn.00415010
mov ecx, eax
test ecx, ecx
jne 0x47b9a6
fldz
sub esp, 8
fstp qword [esp]
push eax
push eax
push 0x10000
push 0x4ec360
call fcn.0049fc00
add esp, 4
push eax
call fcn.004abe70
add esp, 0x18
lea eax, [ebx + 0x64]
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [esp + 0x1c]
cmp esi, 2
jbe 0x47ba31
lea edx, [esi - 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
movzx eax, byte [ebp]
shr eax, 2
movzx eax, word [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ecx + ebx*2], ax
movzx eax, byte [ebp]
movzx edi, byte [ebp + 1]
and eax, 3
shl eax, 4
shr edi, 4
add eax, edi
movzx eax, word [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ecx + ebx*2 + 2], ax
movzx eax, byte [ebp + 1]
movzx edi, byte [ebp + 2]
and eax, 0xf
shr edi, 6
lea eax, [edi + eax*4]
movzx eax, word [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ecx + ebx*2 + 4], ax
movzx eax, byte [ebp + 2]
and eax, 0x3f
movzx eax, word [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ecx + ebx*2 + 6], ax
add ebx, 4
add ebp, 3
sub esi, 3
dec edx
jne 0x47b9c0
test esi, esi
je 0x47bab9
movzx edx, byte [ebp]
shr edx, 2
mov ax, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ecx + ebx*2], ax
movzx edx, byte [ebp]
and edx, 3
cmp esi, 1
jbe 0x47ba9f
movzx eax, byte [ebp + 1]
shl edx, 4
shr eax, 4
add edx, eax
movzx edx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ecx + ebx*2 + 2], dx
movzx eax, byte [ebp + 1]
and eax, 0xf
movzx edx, word [eax*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ecx + ebx*2 + 4], dx
mov eax, 0x3d
mov word [ecx + ebx*2 + 6], ax
add ebx, 4
xor edx, edx
mov word [ecx + ebx*2], dx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
shl edx, 5
mov ax, word [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ecx + ebx*2 + 2], ax
mov dword [ecx + ebx*2 + 4], 0x3d003d
add ebx, 4
pop edi
pop esi
xor edx, edx
pop ebp
mov word [ecx + ebx*2], dx
xor eax, eax
pop ebx
ret
Function at 0x4812e0
Capabilities:
Create pipe
Create process on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, eax
mov ebx, ecx
test ebp, ebp
je 0x4813ae
cmp word [ebp], 0
je 0x4813ae
test edi, edi
je 0x4813ae
test esi, esi
je 0x4813ae
cmp dword [esi], 0
je 0x4813ae
test ebx, ebx
je 0x481326
cmp word [ebx], 0
jne 0x481326
xor ebx, ebx
push 0xa00000
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4813ae
or dword [esi + 0x2c], 0x100
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push edi
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x24]
push esi
push ebx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
xor eax, eax
push eax
push eax
push 1
push eax
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
push ebp
mov dword [edi + 8], eax
push eax
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x4813b0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x481630
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d6fab
push eax
mov eax, 0x2023c
mov dword fs:[0], esp
call fcn.004d0b30
push ebx
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [esp + 0x20258], ebx
jne 0x48167a
push str.6743_
call fcn.0049fc00
add esp, 4
mov dword [esp + 0x20258], eax
cmp eax, ebx
je 0x481872
mov eax, dword [esp + 0x20258]
cmp word [eax], bx
je 0x481872
mov eax, dword [esp + 0x2025c]
cmp eax, ebx
je 0x481872
cmp word [eax], bx
je 0x481872
push ebp
push 0x528
push ebx
lea ebp, [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], 0x294
call fcn.004c61a7
add esp, 8
cmp eax, ebx
jne 0x4816d8
push ebx
call fcn.004c57e5
add esp, 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
jmp 0x4816e5
xor ecx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov word [eax], cx
push esi
mov dword [esp + 0x20254], ebx
cmp edi, ebx
je 0x48176e
cmp word [edi], bx
je 0x48176e
push 0x5c
push edi
call fcn.004c5cc1
add esp, 8
test eax, eax
jne 0x481758
push 0x106
lea edx, [esp + 0x20]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x1c]
push 0x5c
push eax
call fcn.004c6cf1
add esp, 8
cmp eax, ebx
je 0x48172f
xor ecx, ecx
mov word [eax + 2], cx
push 1
push ebx
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x1c]
call fcn.00415800
push 1
push ebx
push edi
call fcn.00415800
mov ebp, dword [esp + 0x14]
mov eax, esi
call fcn.00415dc0
mov edi, eax
jmp 0x4817bf
push ebx
lea eax, [esp + 0x20]
push eax
push 0x118
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
jmp 0x4817bf
mov edx, dword [0x517970]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x118
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
lea eax, [esp + 0x1c]
push 0x2e
push eax
call fcn.004c6cf1
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4817bf
push 0x507a64
call fcn.0049fc00
mov edx, esi
add esp, 4
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4817b0
cmp edi, 0x104
ja 0x481865
mov ecx, dword [esp + 0x20264]
cmp word [ecx], bx
je 0x481865
xor edx, edx
push 0x4ebe64
mov word [esp + 0x250], dx
call fcn.0049fc00
mov ecx, dword [esp + 0x20268]
mov edx, dword [esp + 0x20264]
add esp, 4
push ebp
push 0xffff
mov esi, eax
lea eax, [esp + 0x254]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x24c]
push esi
push eax
call fcn.004c4e9d
add esp, 8
test eax, eax
je 0x481865
mov eax, dword [esp + 0x2025c]
lea ebx, [esp + 0x24c]
call fcn.00415310
lea ecx, [esp + 0x10]
call fcn.00414f70
mov al, 1
pop esi
pop ebp
pop edi
pop ebx
mov ecx, dword [esp + 0x2023c]
mov dword fs:[0], ecx
add esp, 0x20248
ret
lea ecx, [esp + 0x10]
call fcn.00414f70
xor al, al
jmp 0x48184c
mov ecx, dword [esp + 0x20244]
pop edi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x20248
ret
Function at 0x49cc60
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4d76e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov edx, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [esp + 0x10]
mov esi, 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [ebp + 4], edi
mov dword [esp + 0x28], ebx
cmp ecx, ebx
jg 0x49ccd2
mov dword [ebp + 4], edx
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
xor ebx, ebx
cmp eax, dword [esp + 0x3c]
jl 0x49cd21
mov eax, dword [0x51161c]
mov ecx, 0x42
mov esi, 0x514b10
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], ebx
mov dword [0x517990], ebx
mov dword [0x517994], ebx
cmp dword [0x516080], ebx
je 0x49cd1d
mov eax, dword [0x511644]
cmp eax, ebx
je 0x49cd11
mov eax, dword [eax]
cmp eax, ebx
jne 0x49cd16
mov eax, 0x4e1a4c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp]
lea eax, [eax + eax*2]
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x38]
push eax
push edx
push 0x4e1a40
xor eax, eax
mov ebx, ecx
call fcn.00499bd0
add esp, 0x10
test eax, eax
je 0x49cd8d
cmp dword [esp + 0x30], 0
jne 0x49cdaf
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jl 0x49ccd0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop esi
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x18]
pop ebp
mov eax, 3
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 0x10