joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f2b1e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004de510
xor ebx, ebx
cmp dword [0x541274], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4f2bf3
push 0x511578
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4f2b5e
xor eax, eax
jmp 0x4f2cb7
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x51156c
push edi
call esi
cmp eax, ebx
je 0x4f2b57
push eax
call fcn.004de4ad
mov dword [esp], 0x51155c
push edi
mov dword [0x541274], eax
call esi
push eax
call fcn.004de4ad
mov dword [esp], 0x511548
push edi
mov dword [0x541278], eax
call esi
push eax
call fcn.004de4ad
mov dword [0x54127c], eax
lea eax, [ebp - 8]
push eax
call fcn.004e0eff
test eax, eax
pop ecx
pop ecx
je 0x4f2bc1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004dcc44
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4f2bf3
push 0x51152c
push edi
call esi
push eax
call fcn.004de4ad
cmp eax, ebx
pop ecx
mov dword [0x541284], eax
je 0x4f2bf3
push 0x511514
push edi
call esi
push eax
call fcn.004de4ad
pop ecx
mov dword [0x541280], eax
mov eax, dword [0x541280]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4f2c6c
cmp dword [0x541284], esi
je 0x4f2c6c
push eax
call fcn.004de519
pop ecx
call eax
cmp eax, ebx
je 0x4f2c39
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x541284]
call fcn.004de519
pop ecx
call eax
test eax, eax
je 0x4f2c39
test byte [ebp - 0x18], 1
jne 0x4f2c6c
lea eax, [ebp - 0xc]
push eax
call fcn.004e0f36
test eax, eax
pop ecx
je 0x4f2c54
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004dcc44
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4f2c63
or dword [ebp + 0x10], 0x200000
jmp 0x4f2c9d
or dword [ebp + 0x10], 0x40000
jmp 0x4f2c9d
mov eax, dword [0x541278]
cmp eax, esi
je 0x4f2c9d
push eax
call fcn.004de519
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4f2c9d
mov eax, dword [0x54127c]
cmp eax, esi
je 0x4f2c9d
push dword [ebp - 4]
push eax
call fcn.004de519
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x541274]
call fcn.004de519
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xb48058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b481a8
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 0xb4807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb4806a
add dl, dl
jne 0xb48089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb480dc
xor eax, eax
add dl, dl
jne 0xb48096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb4817d
add dl, dl
jne 0xb480a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb480b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb480bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb480c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb480d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb48075
mov eax, 1
add dl, dl
jne 0xb480ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb480f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb480e1
sub eax, ebx
mov ebx, 1
jne 0xb48128
mov ecx, 1
add dl, dl
jne 0xb4810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb48119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb48105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb48075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb4813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb4814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb48136
cmp eax, 0x7d00
jae 0xb4816d
cmp eax, 0x500
jb 0xb48168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb48075
cmp eax, 0x7f
ja 0xb48170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb48075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb4819e
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 0xb48075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40291d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40295c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40295c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40295c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40295c
cmp dword [ecx + 0x74], 0xe
jbe 0x40295c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41fa89
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f72b

Function at 0x41fa94
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f8ba

Function at 0x41fe8e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ccf0
mov eax, dword [0x4556c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041e78e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41fed0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42002c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042ca50
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x457690]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0042105e
mov ecx, dword [esi*4 + 0x457690]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x420025
cmp eax, dword [edi + ecx + 0x24]
jne 0x420025
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420025
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042105e
add esp, 0x14
test edx, edx
jl 0x420025
jg 0x41ff9b
test eax, eax
jb 0x420025
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x420025
jl 0x41ffb5
cmp dword [ebp - 0x1008], eax
ja 0x420025
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41ffd3
test ebx, ebx
je 0x42000c
cmp ecx, edi
jae 0x42000c
mov al, byte [ecx]
cmp al, 0xd
jne 0x41ffed
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41fff9
cmp byte [ecx + 1], 0xa
jne 0x41fff9
inc ecx
jmp 0x41fff9
movzx eax, al
movsx eax, byte [eax + 0x455980]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41ffd3
cmp edx, ebx
jne 0x41ffd3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42002a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040bf45
leave
ret
Function at 0x4204fc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x457690]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42053c
cmp byte [ebx], 0xa
jne 0x42053c
or byte [eax + edi + 0x28], 4
jmp 0x420541
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42063f
mov al, byte [edx]
cmp al, 0x1a
je 0x420621
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x420570
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x420595
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42059f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x420552
jmp 0x42063f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42061c
cmp dword [ebp - 0xc], 0
je 0x42061c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x457690]
test byte [eax + edi + 0x28], 0x48
je 0x4205f6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4205e1
mov byte [esi], dl
jmp 0x4205f2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x457690]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42063f
cmp byte [ebp - 1], 0xa
jne 0x420605
cmp esi, ebx
jne 0x420605
mov byte [esi], 0xa
jmp 0x42063e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042107c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42063f
mov byte [esi], 0xd
jmp 0x42063e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x457690]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42063b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42063f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420648
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x457690]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42068b
cmp word [esi], dx
jne 0x42068b
or byte [edi + eax + 0x28], 4
jmp 0x420690
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4207e3
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4207c3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4206d2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420708
cmp eax, edx
jae 0x420714
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4206aa
jmp 0x4207e3
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4207bf
cmp dword [ebp - 0x14], 0
je 0x4207bf
mov eax, dword [ebx*4 + 0x457690]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x420797
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x420760
mov word [esi], cx
jmp 0x420793
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x457690]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x457690]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x457690]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4207e3
pop ebx
cmp word [ebp - 4], bx
jne 0x4207a8
cmp esi, dword [ebp + 0xc]
jne 0x4207a8
mov word [esi], bx
jmp 0x4207e0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042107c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4207e3
push 0xd
jmp 0x4207dc
mov ecx, dword [ebx*4 + 0x457690]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4207da
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4207e3
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423eb7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4556c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x423f02
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00424056
test al, al
jne 0x423efc
sub edx, 2
cmp edx, edi
jne 0x423ee2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x423f24
lea eax, [edi + 2]
cmp edx, eax
je 0x423f24
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00423e03
add esp, 0x10
jmp 0x42401e
push esi
lea ecx, [ebp - 0x255]
call fcn.00424056
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x423f67
push dword [ebp - 0x25c]
jmp 0x423f14
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x423fa4
cmp word [ebp - 0x226], 0
je 0x423fc5
cmp word [ebp - 0x226], ax
jne 0x423fa4
cmp word [ebp - 0x224], 0
je 0x423fc5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00423e03
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x424011
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x423f7e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x423ff9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42401e
push 0x423c33
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042adb0
add esp, 0x10
jmp 0x423fee
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bf45
leave
ret
Function at 0x4017e0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov edi, edx
mov word [esp + 0x1c], ax
call fcn.0042fb00
push edi
lea edx, [esp + 0x20]
push 0x104
push edx
call fcn.0042d97f
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call ebx
mov ebp, dword [sym.imp.SHLWAPI.dll_StrCatW]
push str.GamePatch
lea ecx, [esp + 0x14]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
call ebx
push str.Config.ini
lea eax, [esp + 0x14]
push eax
call ebp
push edi
lea ebx, [esi + 4]
push 0x104
push ebx
call fcn.0042d97f
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4018c4
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x10]
push edx
push 0x104
add eax, 4
push eax
push 0x44aec4
push str.mainExe
push str.game_base
call edi
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x104
add edx, 0x20c
push edx
push 0x44aec4
push str.param
push str.game_base
call edi
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 0x20c]
push eax
add esi, 4
push esi
push ebx
push str.MSG:_Init_base_value_from_config_file_succeed__dir_s__exe_s__param_s__code_d
call fcn.0040c990
mov ecx, dword [esp + 0x22c]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.0042d791
add esp, 0x20c
ret
Function at 0x401910
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x443166
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0x418], eax
push ebp
push edi
mov eax, dword [0x457600]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
mov eax, dword [esi]
add eax, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401951
sub eax, edx
sar eax, 1
jne 0x401969
xor al, al
jmp 0x401b01
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.0042fb00
lea edx, [esi + 4]
push edx
lea eax, [esp + 0x24]
push 0x104
push eax
call fcn.0042d97f
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edx, dword [esi]
add edx, 4
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
call fcn.00406b70
mov dword [esp + 0x430], 0
mov edx, dword [esp + 0xc]
push 0x2e
push edx
call fcn.0042e01f
add esp, 8
test eax, eax
jne 0x4019e3
or eax, 0xffffffff
jmp 0x4019e9
sub eax, dword [esp + 0xc]
sar eax, 1
inc eax
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.00405220
mov byte [esp + 0x430], 1
mov edi, dword [esp + 0x10]
push 0x44a0d4
push edi
call fcn.0042dea5
add esp, 8
test eax, eax
je 0x401a30
push 0x44a0dc
push edi
call fcn.0042dea5
add esp, 8
test eax, eax
je 0x401a30
mov ebp, 1
jmp 0x401a32
xor ebp, ebp
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x226]
push edx
mov word [esp + 0x228], cx
call fcn.0042fb00
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040c890
mov eax, dword [esi]
add esp, 0x14
push ebp
lea edx, [esp + 0x220]
push edx
add eax, 0x20c
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x449f2c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi]
lea edx, [esp + 0x220]
push edx
add eax, 0x20c
push eax
lea ecx, [esp + 0x20]
push ecx
push str.MSG:_Execute:_file_s__param_s__workdir_s__code_d
call fcn.0040c990
lea eax, [edi - 0x10]
add esp, 0x14
mov byte [esp + 0x430], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401ad4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x430], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401aff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0042d791
add esp, 0x428
ret
Function at 0x401b30
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0042fb00
add esp, 0xc
lea edx, [esp]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edx, 0x44
push esi
xor ecx, ecx
test eax, eax
jle 0x401b8e
lea esp, [esp]
movzx esi, word [esp + ecx*2 + 4]
cmp esi, edx
je 0x401bab
inc ecx
cmp ecx, eax
jl 0x401b80
cmp edx, 0x5b
jl 0x401bcd
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042d791
add esp, 0x20c
ret
cmp ecx, eax
jge 0x401b8e
inc edx
cmp edx, 0x5b
jl 0x401b73
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042d791
add esp, 0x20c
ret
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
mov eax, edx
call fcn.0042d791
add esp, 0x20c
ret
Function at 0x401bf0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x468
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0x464], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x6e]
push ecx
mov word [esp + 0x70], ax
call fcn.0042fb00
add esp, 0xc
lea edi, [esp + 0x64]
mov ecx, esi
call fcn.00401130
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edx, edi
push edx
call esi
mov eax, edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCatW]
push str.run.bat
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x64]
push ecx
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x401cce
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x276]
push eax
mov word [esp + 0x278], dx
call fcn.0042fb00
lea ecx, [esp + 0x278]
push ecx
lea edx, [esp + 0x74]
push edx
call fcn.0040c890
add esp, 0x14
push 0
lea eax, [esp + 0x270]
push eax
push 0
lea ecx, [esp + 0x70]
push ecx
push 0x449f2c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call ebp
push eax
lea edx, [esp + 0x270]
push edx
lea eax, [esp + 0x6c]
push eax
push str.MSG:_Excute_bat_file_s__workdir_s__code_d
call fcn.0040c990
add esp, 0x10
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x64]
push edx
call esi
push str.run.vbs
lea eax, [esp + 0x68]
push eax
call edi
lea ecx, [esp + 0x64]
push ecx
call ebx
test eax, eax
je 0x401d97
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x276]
push eax
mov word [esp + 0x278], dx
call fcn.0042fb00
lea ecx, [esp + 0x70]
push ecx
push str.wscript___s_
lea edx, [esp + 0x280]
call fcn.00405e60
push 0x40
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.0042fb00
add esp, 0x20
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0x20
push 0
push 0
mov eax, 5
mov word [esp + 0x5c], ax
push 0
lea eax, [esp + 0x28c]
push eax
push 0
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x64], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call ebp
push eax
lea ecx, [esp + 0x270]
push ecx
push str.MSG:_Excute_vbs_cmdline_s__code_d
call fcn.0040c990
add esp, 0xc
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.0042d791
add esp, 0x468
ret