joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428ae0
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00428aa0
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
mov eax, dword [esp + 4]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x428b21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, bl
pop ebx
pop ecx
ret

Function at 0x428dd0
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x45ed38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0
mov esi, ecx
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.0042c7f0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.0042ae90
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esi + 0x20], dx
mov word [esp + 0x30], cx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.0042c630
mov edx, dword [esi + 4]
mov ecx, 0x479558
cmp edx, dword [ecx]
je 0x428ecc
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0042c820
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
mov ecx, edi
call fcn.00429a20
movzx ebx, bx
push 0
push ebx
lea ecx, [esi + 0x40]
mov dword [esp + 0x18], eax
call fcn.0042c660
mov eax, dword [esi + 0x44]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
push ebx
push eax
call dword [edx + 0x34]
test bp, bp
je 0x428f12
movzx ebx, bp
push 0
push ebx
lea ecx, [esi + 0x2c]
call fcn.0042c660
mov eax, dword [esi + 0x30]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
push ebx
push eax
call dword [edx + 0x34]
mov eax, dword [esp + 0x30]
test ax, ax
je 0x428f36
movzx ebx, ax
push 0
push ebx
lea ecx, [esi + 0x4c]
call fcn.0042c660
mov esi, dword [esi + 0x50]
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
push ebx
push esi
call dword [eax + 0x34]
mov ecx, edi
call fcn.00429a20
cmp eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
sete bl
mov dword [esp + 0x28], 0xffffffff
call fcn.0042c820
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x428fa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45ed38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov ebx, ecx
mov esi, dword [ebx + 0x48]
push edi
mov edi, dword [ebx + 0x34]
movzx eax, di
movzx ebp, si
mov dword [esp + 0x10], eax
lea eax, [eax + ebp + 0x1e]
push 0
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.0042c7f0
mov ecx, dword [0x47955c]
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov dx, word [ebx + 0xa]
mov word [eax + 4], dx
mov edx, dword [esp + 0x1c]
mov cx, word [ebx + 0xc]
mov word [edx + 6], cx
mov ecx, dword [esp + 0x1c]
mov ax, word [ebx + 0xe]
mov word [ecx + 8], ax
mov dx, word [ebx + 0x10]
mov eax, dword [esp + 0x1c]
mov word [eax + 0xa], dx
mov cx, word [ebx + 0x12]
mov edx, dword [esp + 0x1c]
mov word [edx + 0xc], cx
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0xe], eax
mov edx, dword [ebx + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x12], edx
mov ecx, dword [ebx + 0x1c]
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x16], ecx
mov eax, dword [esp + 0x1c]
mov word [eax + 0x1a], si
mov ecx, dword [esp + 0x1c]
mov word [ecx + 0x1c], di
mov edi, dword [esp + 0x1c]
mov esi, dword [ebx + 0x44]
add edi, 0x1e
mov ecx, ebp
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 eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov esi, dword [ebx + 0x30]
mov edx, ecx
shr ecx, 2
lea edi, [eax + ebp + 0x1e]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
push 1
push edi
push eax
mov ecx, esi
mov dword [esp + 0x38], 0
call fcn.0042a8c0
lea ecx, [ebx + 0x2c]
call fcn.0042c630
mov ecx, esi
call fcn.00429a20
mov ecx, esi
mov word [ebx + 0x20], ax
call fcn.00429a50
sub eax, edi
lea ecx, [esp + 0x18]
mov dword [ebx + 0x28], eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042c820
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x429bd0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x45ee08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ecx]
push ebx
lea edx, [esp + 8]
push edx
call dword [eax + 0x18]
mov eax, dword [eax]
push eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x2c], 0
call fcn.00428aa0
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ebx, eax
mov eax, dword [esp + 4]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429c51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429c77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
pop ebx
je 0x429c8d
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp + 8]
imul eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
imul eax, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x42c480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45f038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0042bd20
mov ecx, dword [esi + 0x2c]
push 0
mov dword [esi + 0x30], eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 0x28]
push 0
push 0x16
lea ecx, [esp + 0xc]
call fcn.0042c7f0
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 8]
mov edx, dword [ecx]
push 0x16
push eax
mov dword [esp + 0x20], 0
call dword [edx + 0x34]
cmp eax, 0x16
je 0x42c4e8
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0042b900
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x10], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x14], ecx
push edi
mov di, word [eax + 0x14]
lea ecx, [esp + 8]
call fcn.0042c630
mov ecx, dword [esi + 0x2c]
xor edx, edx
mov dx, word [esi + 8]
push edx
call fcn.00429cb0
mov ecx, dword [esi + 0x2c]
call fcn.00429a00
test eax, eax
jne 0x42c55e
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x30]
add eax, edx
cmp ecx, eax
jae 0x42c55e
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0042b900
test di, di
je 0x42c58e
movzx edi, di
push 0
push edi
lea ecx, [esi + 0x18]
call fcn.0042c660
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x1c]
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
push edi
push eax
call dword [edx + 0x34]
cmp eax, edi
je 0x42c58e
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0042b900
mov ecx, dword [esi + 0x2c]
call fcn.00429a00
test eax, eax
pop edi
je 0x42c59f
xor eax, eax
jmp 0x42c5ac
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
sub eax, edx
sub eax, ecx
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x42c5bc
cmp word [esi + 0xe], ax
jne 0x42c5c7
cmp word [esi + 0xe], 0
jne 0x42c5d0
test eax, eax
je 0x42c5d0
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0042b900
movzx eax, word [esi + 0xa]
mov ecx, dword [esi + 0x2c]
push eax
mov byte [esi + 0x3c], 1
call fcn.0042ad90
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42c5ef
mov ecx, esi
call fcn.0042c370
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.0042c820
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x42c8a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x42c8ad
xor eax, eax
ret 0xc
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x42c9a5
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 + 0x466d50]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x466d50]
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 + 0x466d50]
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 + 0x466d50]
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 + 0x466d50]
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 + 0x466d50]
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 + 0x466d50]
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 + 0x466d50]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x42c8c8
test edi, edi
je 0x42c9cb
lea esp, [esp]
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x466d50]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x42c9b0
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret 0xc
Function at 0x4333b0
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 0x433403
call fcn.0045a89a
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x433403
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4333f9
xor eax, eax
jmp 0x43351c
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 0x433433
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 0x433433
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x433519
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x433460
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004264f0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x433519
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4334a9
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4334a9
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4334a3
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004264f0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x433509
and dword [ebp + 0xc], 0
jmp 0x433509
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x433509
push 0xc
call fcn.0044ecd7
mov esi, eax
test esi, esi
pop ecx
je 0x4334eb
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 0x4334ed
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x433504
push dword [ebp - 8]
call fcn.0044e359
jmp 0x433509
call fcn.0044e330
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x43346e
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43cd10
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.0043cf00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43cdab
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 [0x9f0cd0]
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 0x43cdab
cmp eax, 1
je 0x43cdcc
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 0x43cdab
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x43cd78
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x43cda7
xor eax, eax
inc eax
jmp 0x43cdeb
cmp edi, eax
jae 0x43cdaf
xor eax, eax
jmp 0x43cdeb
cmp eax, esi
jae 0x43cdb6
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 [0x9f0cd0]
jmp 0x43cdcf
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 0x43d229
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x43d245
call fcn.0043f6d2
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x43d2b7
push esi
push 0x8c
push 1
call fcn.0043edcc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x43d29d
push esi
call fcn.0044109e
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x43d197
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x43d295
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x43d2b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0043cc9f
test ebx, ebx
pop ecx
je 0x43d2af
push ebx
call fcn.0043f6e4
pop ecx
or eax, 0xffffffff
jmp 0x43d2b6
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x43de9f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x46b070
call fcn.0044014c
mov edi, 0x94
mov eax, edi
call fcn.0043cf00
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 [0x9f0cd0], ecx
mov eax, dword [esi + 4]
mov dword [0x9f0cdc], eax
mov edx, dword [esi + 8]
mov dword [0x9f0ce0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x9f0cd4], esi
cmp ecx, 2
je 0x43deff
or esi, 0x8000
mov dword [0x9f0cd4], esi
shl eax, 8
add eax, edx
mov dword [0x9f0cd8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x43df3a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43df3a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x43df52
cmp eax, 0x20b
je 0x43df3f
mov dword [ebp - 0x1c], esi
jmp 0x43df66
cmp dword [ecx + 0x84], 0xe
jbe 0x43df3a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x43df60
cmp dword [ecx + 0x74], 0xe
jbe 0x43df3a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00443523
pop ecx
test eax, eax
jne 0x43df7a
push 0x1c
call fcn.0043de7b
pop ecx
call fcn.00441298
test eax, eax
jne 0x43df8b
push 0x10
call fcn.0043de7b
pop ecx
call fcn.00445e7e
mov dword [ebp - 4], esi
call fcn.00445c80
test eax, eax
jge 0x43dfa4
push 0x1b
call fcn.0043de56
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x9f26f0], eax
call fcn.00445b5e
mov dword [0x9f0cc0], eax
call fcn.00445abc
test eax, eax
jge 0x43dfca
push 8
call fcn.0043de56
pop ecx
call fcn.00445889
test eax, eax
jge 0x43dfdb
push 9
call fcn.0043de56
pop ecx
push 1
call fcn.00440249
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x43dff1
push eax
call fcn.0043de56
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0044582c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x43e012
movzx eax, word [ebp - 0x40]
jmp 0x43e015
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0044dee6
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x43e033
push edi
call fcn.00440376
call fcn.00440398
jmp 0x43e065
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00440187
ret
Function at 0x43e594
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x46b0d0
call fcn.0044014c
mov eax, dword [0x47b8f8]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x43e6a1
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x43e652
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.0043cf00
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x43e63f
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x43e6a1
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x43e6a1
mov al, byte [edi]
cmp al, 0x5c
je 0x43e660
cmp al, 0x2f
jne 0x43e665
cmp al, byte [edi + 1]
je 0x43e69b
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.00446e46
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x43e6a1
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043f6e4
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x43e6bd
push edi
call fcn.0043cc9f
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.0043e0a5
call fcn.00440187
ret

Function at 0x43e6d7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x43e705
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x43e70a
cmp eax, 1
je 0x43e70a
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43e70e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x47b8f8]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x43e786
push ebx
call fcn.0043e6d7
test eax, eax
pop ecx
jne 0x43e755
call fcn.0043f6db
mov dword [eax], 0xf
call fcn.0043f6d2
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0043e0a5
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x43e798
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x43e748
inc eax
cmp eax, 0x104
ja 0x43e748
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x43e7d0
cmp eax, dword [ebp + 0x10]
jg 0x43e7b3
mov eax, dword [ebp + 0x10]
push eax
call fcn.0043cc8d
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x43e7e5
call fcn.0043f6d2
mov dword [eax], 0xc
jmp 0x43e748
cmp eax, dword [ebp + 0x10]
jle 0x43e7e5
call fcn.0043f6d2
mov dword [eax], 0x22
jmp 0x43e748
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00442710
pop ecx
pop ecx
jmp 0x43e74a

Function at 0x4402b3
Capabilities:
Terminate process

Disassembly:
push 8
push 0x46b1f8
call fcn.0044014c
push 8
call fcn.0044295b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x9f0d10], esi
jne 0x4402e7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x9f0d0c], esi
mov al, byte [ebp + 0x10]
mov byte [0x9f0d08], al
cmp dword [ebp + 0xc], edi
jne 0x440331
cmp dword [0x9f26e8], edi
je 0x440321
mov eax, dword [0x9f26e4]
sub eax, 4
mov dword [0x9f26e4], eax
cmp eax, dword [0x9f26e8]
jb 0x440321
mov eax, dword [eax]
cmp eax, edi
je 0x440302
call eax
jmp 0x440302
push 0x4781bc
mov eax, 0x4781b4
call fcn.00440231
pop ecx
push 0x4781c8
mov eax, 0x4781c0
call fcn.00440231
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x440362
cmp dword [ebp + 0x10], edi
jne 0x440370
mov dword [0x9f0d10], esi
push dword [ebp + 8]
call fcn.004401ef
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x44036f
push 8
call fcn.004428a6
pop ecx
ret
call fcn.00440187
ret