joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a168e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dde
mov eax, dword [0x4d8324]
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.004060d2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a16d0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a182c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406230
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 + 0x4dbf90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403346
mov ecx, dword [esi*4 + 0x4dbf90]
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 0x4a1825
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a1825
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 0x4a1825
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403346
add esp, 0x14
test edx, edx
jl 0x4a1825
jg 0x4a179b
test eax, eax
jb 0x4a1825
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a1825
jl 0x4a17b5
cmp dword [ebp - 0x1008], eax
ja 0x4a1825
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a17d3
test ebx, ebx
je 0x4a180c
cmp ecx, edi
jae 0x4a180c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a17ed
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a17f9
cmp byte [ecx + 1], 0xa
jne 0x4a17f9
inc ecx
jmp 0x4a17f9
movzx eax, al
movsx eax, byte [eax + 0x4d8c60]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a17d3
cmp edx, ebx
jne 0x4a17d3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a182a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403116
leave
ret
Function at 0x4a2089
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 + 0x4dbf90]
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 0x4a20c9
cmp byte [ebx], 0xa
jne 0x4a20c9
or byte [eax + edi + 0x28], 4
jmp 0x4a20ce
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a21cc
mov al, byte [edx]
cmp al, 0x1a
je 0x4a21ae
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a20fd
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a2122
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a212c
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 0x4a20df
jmp 0x4a21cc
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 0x4a21a9
cmp dword [ebp - 0xc], 0
je 0x4a21a9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4dbf90]
test byte [eax + edi + 0x28], 0x48
je 0x4a2183
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a216e
mov byte [esi], dl
jmp 0x4a217f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4dbf90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a21cc
cmp byte [ebp - 1], 0xa
jne 0x4a2192
cmp esi, ebx
jne 0x4a2192
mov byte [esi], 0xa
jmp 0x4a21cb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401979
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a21cc
mov byte [esi], 0xd
jmp 0x4a21cb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4dbf90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a21c8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a21cc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2228
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 + 0x4dbf90]
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 0x4a226b
cmp word [esi], dx
jne 0x4a226b
or byte [edi + eax + 0x28], 4
jmp 0x4a2270
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 0x4a23c3
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 0x4a23a3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a22b2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a22e8
cmp eax, edx
jae 0x4a22f4
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 0x4a228a
jmp 0x4a23c3
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 0x4a239f
cmp dword [ebp - 0x14], 0
je 0x4a239f
mov eax, dword [ebx*4 + 0x4dbf90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a2377
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a2340
mov word [esi], cx
jmp 0x4a2373
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4dbf90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4dbf90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4dbf90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a23c3
pop ebx
cmp word [ebp - 4], bx
jne 0x4a2388
cmp esi, dword [ebp + 0xc]
jne 0x4a2388
mov word [esi], bx
jmp 0x4a23c0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401979
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a23c3
push 0xd
jmp 0x4a23bc
mov ecx, dword [ebx*4 + 0x4dbf90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a23ba
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a23c3
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 0x401ff0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4027d0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
jae 0x40218f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esp], eax
call fcn.00402830
sub esp, 4
cmp dword [ebp + 8], 0
jbe 0x402154
cmp dword [ebp + 0xc], 3
jbe 0x402154
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [eax + 4], 0x14d
call fcn.00401e60
mov dword [ebp - 0x74], eax
jmp 0x4020f3
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40214f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0xc]
jne 0x40214a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x48]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x42], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x42]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], 2
jmp 0x402164
jmp 0x40214f
jmp 0x402154
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
call fcn.004028f0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x402181
jmp 0x40217c
jmp 0x40218f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402088
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4021d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x574c00], eax
pop esi
pop edi
pop ebp
ret
Function at 0x402140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [0x455344]
test eax, eax
jne 0x402159
pop edi
pop ebx
ret
push esi
push eax
call dword [0x455348]
mov esi, eax
test esi, esi
jne 0x40216d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [0x45534c]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402190
cmp esi, eax
jae 0x402167
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402180
cmp esi, eax
jae 0x402167
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402eb0
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
call dword [0x455338]
cmp eax, 0x80000000
jae 0x402f59
push 0x94
mov ebx, 1
call fcn.00433f5c
mov esi, eax
add esp, 4
test esi, esi
je 0x402fcb
xor eax, eax
mov ecx, 0x25
mov edi, esi
rep stosd dword es:[edi], eax
push esi
mov dword [esi], 0x94
call dword [0x455350]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x402f14
push esi
mov ebx, 5
call fcn.00433e44
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
cmp eax, 5
jne 0x402fc2
cmp dword [esi + 8], 0
jne 0x402f37
push esi
mov ebx, 6
call fcn.00433e44
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
cmp eax, 5
jne 0x402fc2
cmp dword [esi + 8], ebx
jne 0x402fc2
push esi
mov ebx, 7
call fcn.00433e44
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
cmp al, 4
jae 0x402f63
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x94
mov ebx, 2
call fcn.00433f5c
mov esi, eax
add esp, 4
test esi, esi
je 0x402fcb
xor eax, eax
mov ecx, 0x25
mov edi, esi
rep stosd dword es:[edi], eax
push esi
mov dword [esi], 0x94
call dword [0x455350]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x402fc2
cmp dword [esi + 8], 0xa
jne 0x402fb5
push esi
mov ebx, 3
call fcn.00433e44
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
cmp eax, 4
jne 0x402fc2
cmp dword [esi + 8], 0x5a
jne 0x402fc2
mov ebx, eax
push esi
call fcn.00433e44
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x402fe0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
push esi
push edi
lea eax, [esp + 0x28]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [esp + 0x28], 0
mov edi, dword [ebp + 0x10]
mov dword [edi], 0
lea esi, [esp + 0x28]
je 0x4030a9
mov ebx, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x40302f
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x403085
movsx ecx, byte [esi]
push ecx
call fcn.00433e22
add esp, 4
cmp eax, 0x41
je 0x403085
movsx edx, byte [esi]
push edx
call fcn.00433e22
mov ecx, dword [edi]
mov edx, dword [ebp + 8]
add esp, 4
mov byte [edx + ecx], al
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov dword [ebx + edx*8], eax
mov dword [ebx + edx*8 + 4], ecx
add dword [edi], 1
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403090
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x403017
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4039f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44f8f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
lea ecx, [esp + 8]
call fcn.004491b5
push 0
push 0
push 0
push str.DISPLAY
mov dword [esp + 0x30], 0
call dword [0x4550ec]
push eax
lea ecx, [esp + 0xc]
call fcn.0044954d
mov eax, dword [esp + 0x10]
mov edi, dword [0x4550e8]
push 0x58
push eax
call edi
mov ecx, dword [esp + 0x10]
push 0x5a
push ecx
mov esi, eax
call edi
cmp esi, 0x60
mov edi, eax
jne 0x403a7f
cmp edi, esi
jne 0x403aac
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.004495b5
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
cmp esi, 0x78
jne 0x403aac
cmp edi, esi
jne 0x403aac
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.004495b5
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.004495b5
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x403ad0
Capabilities:
Create process on windows
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x44f918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
push esi
push edi
sub esp, 0xc
lea eax, [esp + 0x27c]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x278], 0
call fcn.00421630
lea ecx, [esp + 0x28]
push ecx
call fcn.00403620
mov eax, dword [eax + 4]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x1c]
call fcn.004214a0
mov eax, dword [esp + 0x274]
lea edx, [esp + 0x6c]
sub edx, eax
jmp 0x403b40
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x403b40
mov dx, word [esp + 0x27c]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0x20
push 1
push 0
mov word [esp + 0x74], dx
push 0
lea edx, [esp + 0x8c]
push edx
push 0
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x7c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403be5
push eax
push str.Error
push str.Create_process_failed
push eax
call dword [0x455568]
lea ecx, [esp + 0x270]
mov dword [esp + 0x268], 0xffffffff
call fcn.004214a0
mov eax, 0xbeb95
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x264
ret
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [esp + 8]
lea ecx, [esp + 0x270]
mov dword [esp + 0x268], 0xffffffff
call fcn.004214a0
mov ecx, dword [esp + 0x260]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x264
ret
Function at 0x4122a0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
push eax
call fcn.004121e0
mov esi, eax
test esi, esi
je 0x412390
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
call edi
push eax
call fcn.00411db0
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
mov dword [esp + 0x18], eax
call ebp
push esi
call edi
test eax, eax
jne 0x4122e4
mov dword [esp + 0x10], eax
jmp 0x4122f9
cmp dword [eax], 0x28
jne 0x4122ee
mov ebx, dword [eax + 4]
jmp 0x4122f2
movzx ebx, word [eax + 4]
push esi
call ebp
mov dword [esp + 0x10], ebx
push esi
call edi
test eax, eax
jne 0x412304
xor ebx, ebx
jmp 0x412315
cmp dword [eax], 0x28
jne 0x41230e
mov ebx, dword [eax + 8]
jmp 0x412312
movzx ebx, word [eax + 6]
push esi
call ebp
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov ebp, dword [0x4550d4]
mov dword [ecx], edx
mov ecx, dword [esp + 0x14]
push 0
mov dword [eax], ebx
mov edx, dword [edi + 4]
push ecx
push edx
call ebp
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
push eax
call dword [0x4550d8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push esi
push ebx
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call fcn.00412140
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 4]
push 1
push edx
push eax
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
test eax, eax
pop edi
pop ebp
pop ebx
je 0x412390
push eax
call dword [0x4550d0]
pop esi
add esp, 0xc
ret
Function at 0x412ff0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x80
push ebx
push 0xffff0000
push 0
mov ebx, ecx
mov eax, dword [ebx + 0x1c]
push 0x1101
push eax
call dword [0x455574]
lea ecx, [esp + 4]
push ecx
push 0x80
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jne 0x41303c
push 0x23
push str.Error_Getting_Logical_DriveStrings_
lea ecx, [ebx + 0x54]
call fcn.00402690
xor eax, eax
pop ebx
add esp, 0x80
ret
cmp byte [esp + 4], 0
push esi
lea esi, [esp + 8]
je 0x4130a6
push edi
lea esp, [esp]
push esi
push 0xffff0000
mov ecx, ebx
call fcn.00412910
push esi
mov ecx, ebx
mov edi, eax
call fcn.00412bb0
test eax, eax
je 0x413089
push 0xffff0002
push edi
push 0
push 0
push 0
push 0
push 0
push 0x4556bf
push 0x23
mov ecx, ebx
call fcn.004414af
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413090
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x413050
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x80
ret
Function at 0x428e40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x454160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
push edi
mov esi, ecx
push 0x458798
lea ecx, [esp + 0x10]
call fcn.004216d0
lea eax, [esp + 0x24]
push 6
push eax
mov dword [esp + 0x4c], 0
call fcn.00420ae0
add esp, 8
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x50], 1
call fcn.00428a40
lea edi, [esi + 0xc8]
push eax
mov ecx, edi
mov byte [esp + 0x48], 2
call fcn.004216a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call fcn.004214a0
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 0
call fcn.004214a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.004214a0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x14], esp
push edi
call fcn.00421630
lea eax, [esp + 0x3c]
push eax
call fcn.00404d50
add esp, 0x10
push eax
mov ecx, edi
mov dword [esp + 0x48], 3
call fcn.004216a0
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xffffffff
call fcn.004214a0
mov eax, dword [esp + 0x4c]
mov edx, dword [esi]
push eax
push 0x85
mov ecx, esi
mov byte [esi + 0x108], 0
call dword [edx + 0x134]
mov ecx, dword [esp + 0x3c]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x40
ret 4

Function at 0x4347fa
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.00434160
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x434895
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 [0x4788e8]
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 0x434895
cmp eax, 1
je 0x4348b6
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 0x434895
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x434862
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x434891
xor eax, eax
inc eax
jmp 0x4348d5
cmp edi, eax
jae 0x434899
xor eax, eax
jmp 0x4348d5
cmp eax, esi
jae 0x4348a0
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 [0x4788e8]
jmp 0x4348b9
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