joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ce41
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, 0x43847c
cmp dword [ebp + 0xc], 0
jne 0x40ce75
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x14], edx
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx + 0x18], eax
mov edx, dword [esi]
push dword [edx + 0x10]
call sub.USER32.dll_SetCursor
jmp 0x40cf4c
mov ecx, dword [esi]
cmp ebx, dword [ecx + 0x14]
je 0x40cf4c
mov eax, dword [esi]
mov dword [eax + 0x14], ebx
mov edx, dword [esi]
cmp ebx, dword [edx]
jne 0x40ceca
mov ecx, dword [esi]
mov dword [ecx + 0x18], 1
mov eax, dword [esi]
push dword [eax + 0xc]
call sub.USER32.dll_SetCursor
lea edx, [ebp - 8]
push edx
call sub.USER32.dll_GetCursorPos
lea ecx, [ebp - 8]
push ecx
push dword [ebx + 0x30]
call sub.USER32.dll_ScreenToClient
movzx eax, word [ebp - 8]
movzx edx, word [ebp - 4]
shl edx, 0x10
or eax, edx
mov ecx, dword [esi]
mov dword [ecx + 0x1c], eax
jmp 0x40cf4c
push esi
mov esi, 0x42655c
lea edi, [ebp - 0x20]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
mov dword [ebp - 0x20], ebx
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov dword [ebp - 0x18], edx
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x20]
push edx
push ebx
call fcn.0040e467
add esp, 8
test eax, eax
je 0x40cf3b
mov ecx, dword [esi]
mov dword [ecx + 0x18], 1
mov eax, dword [esi]
push dword [eax + 0xc]
call sub.USER32.dll_SetCursor
lea edx, [ebp - 0x10]
push edx
call sub.USER32.dll_GetCursorPos
lea ecx, [ebp - 0x10]
push ecx
push dword [ebx + 0x30]
call sub.USER32.dll_ScreenToClient
movzx eax, word [ebp - 0x10]
movzx edx, word [ebp - 0xc]
shl edx, 0x10
or eax, edx
mov ecx, dword [esi]
mov dword [ecx + 0x1c], eax
jmp 0x40cf4c
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x18], edx
mov ecx, dword [esi]
push dword [ecx + 0x10]
call sub.USER32.dll_SetCursor
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40eb63
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax + 0x30]
call sub.USER32.dll_GetDlgItem
mov esi, eax
push esi
call fcn.0040d315
mov ebx, eax
test ebx, ebx
je 0x40ebb7
mov esi, 0x426738
lea edi, [ebp - 0x10]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
lea ecx, [ebp - 0x10]
push ecx
push ebx
call fcn.0040e467
add esp, 8
jmp 0x40ebc3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call sub.USER32.dll_GetWindowTextA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412efb
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
add dword [ebp + 0x14], esi
mov ebx, dword [ebp + 8]
and ebx, 7
add ebx, 0x42bec8
xor eax, eax
xor ecx, ecx
mov al, byte [esi]
mov cx, word [eax*2 + 0x42cd64]
mov al, byte [esi + 1]
add cx, word [eax*2 + 0x42cb64]
mov al, byte [esi + 2]
add cx, word [eax*2 + 0x42c964]
add ecx, 0x200
shr ecx, 0xa
mov dl, byte [ebx + ecx*8]
and dl, 0x80
mov al, byte [esi + 3]
mov cx, word [eax*2 + 0x42cd64]
mov al, byte [esi + 4]
add cx, word [eax*2 + 0x42cb64]
mov al, byte [esi + 5]
add cx, word [eax*2 + 0x42c964]
add ecx, 0x200
shr ecx, 0xa
mov al, byte [ebx + ecx*8]
and al, 0x40
or dl, al
mov al, byte [esi + 6]
mov cx, word [eax*2 + 0x42cd64]
mov al, byte [esi + 7]
add cx, word [eax*2 + 0x42cb64]
mov al, byte [esi + 8]
add cx, word [eax*2 + 0x42c964]
add ecx, 0x200
shr ecx, 0xa
mov al, byte [ebx + ecx*8]
and al, 0x20
or dl, al
mov al, byte [esi + 9]
mov cx, word [eax*2 + 0x42cd64]
mov al, byte [esi + 0xa]
add cx, word [eax*2 + 0x42cb64]
mov al, byte [esi + 0xb]
add cx, word [eax*2 + 0x42c964]
add ecx, 0x200
shr ecx, 0xa
mov al, byte [ebx + ecx*8]
and al, 0x10
or dl, al
mov al, byte [esi + 0xc]
mov cx, word [eax*2 + 0x42cd64]
mov al, byte [esi + 0xd]
add cx, word [eax*2 + 0x42cb64]
mov al, byte [esi + 0xe]
add cx, word [eax*2 + 0x42c964]
add ecx, 0x200
shr ecx, 0xa
mov al, byte [ebx + ecx*8]
and al, 8
or dl, al
mov al, byte [esi + 0xf]
mov cx, word [eax*2 + 0x42cd64]
mov al, byte [esi + 0x10]
add cx, word [eax*2 + 0x42cb64]
mov al, byte [esi + 0x11]
add cx, word [eax*2 + 0x42c964]
add ecx, 0x200
shr ecx, 0xa
mov al, byte [ebx + ecx*8]
and al, 4
or dl, al
mov al, byte [esi + 0x12]
mov cx, word [eax*2 + 0x42cd64]
mov al, byte [esi + 0x13]
add cx, word [eax*2 + 0x42cb64]
mov al, byte [esi + 0x14]
add cx, word [eax*2 + 0x42c964]
add ecx, 0x200
shr ecx, 0xa
mov al, byte [ebx + ecx*8]
and al, 2
or dl, al
mov al, byte [esi + 0x15]
mov cx, word [eax*2 + 0x42cd64]
mov al, byte [esi + 0x16]
add cx, word [eax*2 + 0x42cb64]
mov al, byte [esi + 0x17]
add cx, word [eax*2 + 0x42c964]
add ecx, 0x200
shr ecx, 0xa
mov al, byte [ebx + ecx*8]
and al, 1
or dl, al
mov byte [edi], dl
inc edi
add esi, 0x18
cmp esi, dword [ebp + 0x14]
jb 0x412f1a
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4140c5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
test edx, edx
jne 0x4140d8
or eax, 0xffffffff
jmp 0x4140ff
mov eax, dword [0x42b4dc]
test ecx, ecx
je 0x4140ff
xor ebx, ebx
mov bl, byte [edx]
xor ebx, eax
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x42b4e0]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc edx
dec ecx
jne 0x4140e1
mov dword [0x42b4dc], eax
xor eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x4159b4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, 0x484f90
push 0x10000
push 0
push 0x474e44
call dword [0x426300]
add esp, 0xc
movzx eax, word [ebx*8 + 0x42ba5a]
mov dword [0x484fac], eax
movzx edx, word [ebx*8 + 0x42ba58]
mov dword [0x484fb0], edx
movzx ecx, word [ebx*8 + 0x42ba5c]
mov dword [0x484fb4], ecx
movzx eax, word [ebx*8 + 0x42ba5e]
mov dword [0x484fa8], eax
cmp ebx, 1
jne 0x415a1b
or word [edi], 4
jmp 0x415a24
cmp ebx, 9
jne 0x415a24
or word [edi], 2
xor edx, edx
mov dword [0x484f98], edx
xor ecx, ecx
mov dword [0x484f8c], ecx
push 0x10000
push 0x454e44
call fcn.004141fc
add esp, 8
mov dword [0x484fa4], eax
cmp dword [0x42b8e0], 0
jne 0x415ac9
cmp dword [0x484fa4], 0
je 0x415a66
cmp dword [0x484fa4], 0xffffffff
jne 0x415a79
mov dword [0x484fa0], 1
xor eax, eax
mov dword [0x484fa4], eax
jmp 0x415ac9
xor edx, edx
mov dword [0x484fa0], edx
jmp 0x415a88
call fcn.00415c14
cmp dword [0x484fa4], 0x106
jae 0x415a9d
cmp dword [0x484fa0], 0
je 0x415a83
cmp dword [0x42b8e0], 0
jne 0x415ac9
xor ecx, ecx
mov dword [esi], ecx
xor eax, eax
mov edx, dword [esi]
shl edx, 5
xor ecx, ecx
mov cl, byte [eax + 0x454e44]
xor edx, ecx
and edx, 0x7fff
mov dword [esi], edx
inc eax
cmp eax, 2
jb 0x415aac
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41f2ec
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x41f308
call fcn.0041fdc4
jmp 0x41f377
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x41f324
call fcn.0041fdc4
jmp 0x41f377
cmp dword [0x49394c], 2
je 0x41f375
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.004203e8
pop ecx
cmp al, 0x41
jl 0x41f375
cmp al, 0x5a
jg 0x41f375
cmp byte [ebp - 0x107], 0x3a
jne 0x41f375
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x41f375
call fcn.0041fdc4
jmp 0x41f377
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41f434
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xff
mov eax, dword [ebp + 8]
push eax
push 0x493828
call fcn.0041f810
add esp, 0xc
lea edx, [ebp - 8]
push 0
push 0
push 0
push edx
push 0x493828
call fcn.0041d4fc
add esp, 0x14
push 0x42dda0
lea ecx, [ebp - 8]
push ecx
call fcn.0041aaa4
add esp, 8
mov byte [0x493828], 0
push 0
push 0
push 0
push 0
push 0
push 0xff
push 0x493828
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
je 0x41f4a7
mov eax, 0x493828
jmp 0x41f4a9
xor eax, eax
pop ecx
pop ecx
pop ebp
ret
Function at 0x41f4b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
test byte [ebx + 8], 8
je 0x41f520
cmp dword [ebx + 4], 0xffffffff
jne 0x41f520
mov dword [esi + 8], 8
mov eax, dword [ebx + 0xc]
push eax
call fcn.0041f434
pop ecx
mov edi, eax
test edi, edi
je 0x41f516
add esi, 0x10
xor eax, eax
push esi
push edi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov dword [ebx + 4], 0xfffffffe
xor eax, eax
jmp 0x41f5e0
call fcn.0041fda4
jmp 0x41f5e0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x41f52d
cmp eax, 0xfffffffe
jne 0x41f554
mov dword [ebx + 4], 0xffffffff
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 0xc]
push ecx
call sub.KERNEL32.DLL_FindFirstFileA
mov edi, eax
mov dword [ebx + 4], edi
cmp edi, 0xffffffff
setne al
and eax, 1
jmp 0x41f564
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 4]
push ecx
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x41f56f
call fcn.0041fda4
jmp 0x41f5e0
mov eax, dword [ebp - 0x148]
test al, 0x16
je 0x41f583
mov edx, dword [ebx + 8]
and edx, eax
test dl, 0x16
je 0x41f520
mov ecx, dword [ebp - 0x148]
mov dword [esi + 8], ecx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x134]
push edx
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
lea ecx, [esi + 0xc]
push ecx
lea eax, [esi + 0xe]
push eax
lea edx, [ebp - 8]
push edx
call sub.KERNEL32.DLL_FileTimeToDosDateTime
mov ecx, dword [ebp - 0x128]
xor eax, eax
mov dword [esi + 4], ecx
add esi, 0x10
push esi
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f5e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x41f617
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffa0
jmp 0x41f621
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret
Function at 0x41f62c
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x41f692
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x41f692
call fcn.0041fdc4
jmp 0x41f6cd
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x41f6a2
call fcn.0041fdc4
jmp 0x41f6cd
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x41f6c8
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x41f6c6
cmp ebx, 1
je 0x41f6c6
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x41f6b3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f8ec
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x41f931
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x41f920
cmp eax, dword [ebp + 0x10]
jle 0x41f9b6
mov dword [0x42e14c], 8
xor eax, eax
jmp 0x41fa20
cmp dword [0x49394c], 2
jne 0x41f976
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x41f9b6
xor eax, eax
jmp 0x41fa20
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x41f9b2
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
jmp 0x41f9b6
xor eax, eax
jmp 0x41fa20
lea edx, [ebp - 0x10c]
push edx
call fcn.0041ab64
pop ecx
mov ebx, dword [ebp + 0x10]
cmp eax, ebx
jb 0x41f9d8
mov dword [0x42e14c], 0x22
xor eax, eax
jmp 0x41fa20
test edi, edi
jne 0x41f9f7
push ebx
call fcn.00420e60
pop ecx
mov edi, eax
test eax, eax
jne 0x41f9f7
mov dword [0x42e14c], 8
xor eax, eax
jmp 0x41fa20
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fa28
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test al, al
jne 0x41fa3d
xor eax, eax
jmp 0x41fa51
add al, 0x40
mov byte [ebp - 4], al
lea eax, [ebp - 4]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push edx
lea edx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push edx
push ecx
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
dec eax
je 0x41fa73
mov dword [ebx + 0xc], 0xffffffff
jmp 0x41fa8a
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov edx, dword [ebp - 8]
mov dword [ebx + 0xc], edx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 8], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41fdd8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
dec eax
je 0x41fe06
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xb7
jne 0x41fdff
push 5
call fcn.0041fd60
pop ecx
pop ebp
ret
call fcn.0041fdc4
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41fef4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x41ff10
call fcn.0041fdc4
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x41ff2b
test bl, 1
je 0x41ff2b
mov dword [0x42e14c], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x420160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x42017f
mov eax, dword [0x42d8a0]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x42018c
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4201b9
je 0x4201cb
sub ecx, 0x100
je 0x4201d9
sub ecx, 0x100
je 0x4201e0
sub ecx, 0x100
je 0x4201d2
jmp 0x4201e7
sub ecx, 0x600
je 0x4201e0
sub ecx, 0x100
je 0x4201cb
jmp 0x4201e7
mov edi, 1
jmp 0x4201ec
mov edi, 2
jmp 0x4201ec
mov edi, 4
jmp 0x4201ec
mov edi, 5
jmp 0x4201ec
mov edi, 3
test byte [ebp + 0xd], 1
je 0x420213
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x42dd9c]
test al, 0x80
je 0x42020c
mov ebx, 0x80
jmp 0x420225
mov ebx, 1
jmp 0x420225
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x420225
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x420237
je 0x420240
dec eax
je 0x420249
jmp 0x420252
mov dword [ebp - 4], 0x80000000
jmp 0x420261
mov dword [ebp - 4], 0x40000000
jmp 0x420261
mov dword [ebp - 4], 0xc0000000
jmp 0x420261
push 1
call fcn.0041fd60
pop ecx
mov ebx, eax
jmp 0x42034d
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x42027d
sub eax, 0x10
je 0x420284
sub eax, 0x10
je 0x42028d
sub eax, 0x10
je 0x420296
jmp 0x420296
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x42029d
mov dword [ebp - 8], 1
jmp 0x42029d
mov dword [ebp - 8], 2
jmp 0x42029d
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x420306
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4202fb
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x4202fb
add ebx, 0xffffffb2
push ebx
call fcn.0041fd60
pop ecx
mov ebx, eax
jmp 0x42034d
mov edi, esi
push edi
call fcn.004200d0
pop ecx
test eax, eax
je 0x42031a
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x420326
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0041fabc
add esp, 8
mov ebx, eax
inc eax
jne 0x42034d
push 4
call fcn.0041fd60
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42113c
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x42181c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x42e150], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4218d4
cmp byte [0x424059], 0
je 0x42188e
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.0041ad1c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x421877
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.0041ad1c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x421877
lea ebx, [ebp - 0x54]
jmp 0x421878
inc ebx
call fcn.004217d4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x4218f5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x42e154
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0041ab64
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x42e157
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4218f5
cmp dword [0x42e150], 0xffffffff
je 0x4218f5
mov eax, dword [0x42e150]
test eax, eax
je 0x4218f5
cmp byte [eax], 0
je 0x4218f5
push esi
push eax
call fcn.00421984
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004740
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000479d
call 0x10030dc1
test eax, eax
jne 0x100047a7
mov eax, dword [0x10025d2c]
test eax, eax
je 0x1000476d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000479d
push 8
push 0
push 0x100268c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0x1000fdc0
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x14
push 8
push dword [0x10025d40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x100047e5
xor ecx, ecx
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov word [eax + 0xc], cx
cmp dword [0x10025d30], ecx
jne 0x100047f5
push eax
push ecx
push dword [0x10025d40]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [esi], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10005860
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [esi + 0x138]
test edi, edi
je 0x1000587c
movzx eax, word [edi + 6]
jmp 0x1000587e
xor eax, eax
mov ecx, dword [ebp + 8]
movzx eax, ax
cmp ecx, eax
jle 0x100058b3
mov edx, ecx
mov ecx, edi
call fcn.1000fba0
test eax, eax
jne 0x100058b0
push eax
push eax
push 0x28
push eax
push eax
lea ecx, [esi + 8]
xor edx, edx
call fcn.10009e90
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x138]
test eax, eax
jne 0x100058c1
xor esi, esi
jmp 0x100058c4
mov esi, dword [eax + 8]
lea edi, [ebx + 0x24]
add esi, 0x10
lea ebx, [ebx]
dec ecx
mov ebx, edi
mov dword [ebp + 8], ecx
mov edx, 0x1f
mov eax, esi
sub ebx, esi
nop
lea ecx, [edx + 0x7fffffdf]
test ecx, ecx
je 0x100058fc
mov cl, byte [ebx + eax - 0x24]
test cl, cl
je 0x100058fc
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x100058e0
jmp 0x10005900
test edx, edx
jne 0x10005901
dec eax
mov byte [eax], 0
movzx eax, word [edi - 4]
mov word [esi - 8], ax
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [esi - 4], eax
movzx eax, word [edi + 4]
mov word [esi + 0x20], ax
mov eax, dword [edi + 8]
mov dword [esi + 0x24], eax
movzx eax, word [edi + 0xc]
mov word [esi + 0x28], ax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x2c], eax
movzx eax, word [edi + 0x14]
mov word [esi + 0x30], ax
movzx eax, word [edi + 0x16]
mov word [esi + 0x32], ax
movzx eax, word [edi + 0x18]
mov word [esi + 0x34], ax
mov eax, dword [edi + 0x1c]
add edi, 0x44
mov dword [esi + 0x38], eax
sub esi, 0xffffff80
test ecx, ecx
jne 0x100058d0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret