joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c2b0f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [0x6c3ae02c]
mov dword [esp + 0x5c], eax
xor eax, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.6c3584f0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.6c326ee0
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
je 0x6c2b0fcd
mov eax, dword [esp + 0x14]
movzx eax, byte [eax]
movsx edx, al
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 0
mov dword [esp], edx
mov ecx, eax
call fcn.6c2a9ff0
sub esp, 8
movsx edx, al
lea eax, [esp + 0x44]
mov dword [esp], edx
mov ecx, eax
call fcn.6c327a60
sub esp, 4
add dword [esp + 0x14], 1
jmp 0x6c2b0f85
mov dword [esp + 0x38], 0x6c367280
mov dword [esp + 0x30], 0x6c367280
mov dword [esp + 0x3c], 0x6c367480
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x3c]
je 0x6c2b107b
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.6c359074
test al, al
je 0x6c2b1071
lea eax, [esp + 0x2f]
mov ecx, eax
call fcn.6c2e9900
mov eax, dword [esp + 0x40]
sub eax, 0x6c367280
sar eax, 2
movsx edx, al
mov eax, dword [esp + 0x34]
mov dword [esp], edx
mov ecx, eax
call fcn.6c2a9f20
sub esp, 4
movsx edx, al
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2f]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], 1
mov ecx, eax
call fcn.6c326e40
sub esp, 0xc
lea eax, [esp + 0x2f]
mov ecx, eax
call fcn.6c2e9930
jmp 0x6c2b1086
add dword [esp + 0x30], 4
jmp 0x6c2b0fe5
mov eax, dword [esp + 0x1c]
mov ecx, eax
call fcn.6c326ee0
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.6c327640
mov eax, dword [esp + 0x5c]
sub eax, dword [0x6c3ae02c]
je 0x6c2b10a2
call fcn.6c2815c0
mov eax, dword [esp + 0x1c]
add esp, 0x6c
ret 0xc
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x406fa0
Capabilities:
Encode data using xor
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x8b56cc24], 0x75
or al, 0xf4
fild dword [esi - 0xd]
push edi
mov dword [ebp - 0xc], esi
jne 0x406fba
mov esi, str.0.0.0.0
mov byte [0xfad6706], al
invalid
Function at 0x408491
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41de90
cmp edx, dword [eax]
je 0x4084b3
add eax, 8
inc ecx
cmp eax, 0x41df20
jl 0x4084a4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41de90]
jne 0x4085e1
mov eax, dword [0x420a00]
cmp eax, 1
je 0x4085bb
test eax, eax
jne 0x4084e4
cmp dword [0x41d7dc], 1
je 0x4085bb
cmp edx, 0xfc
je 0x4085e1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40851b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407860
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404350
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40855e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404350
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x419bec
push edi
call fcn.004036d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407860
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407870
lea eax, [ebp - 0xa0]
push 0x419bcc
push eax
call fcn.00407870
push dword [esi + 0x41de94]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407870
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409d91
add esp, 0x2c
pop edi
jmp 0x4085e1
lea eax, [ebp + 8]
lea esi, [esi + 0x41de94]
push 0
push eax
push dword [esi]
call fcn.00404350
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40e7c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00403500
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40e88b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40e88b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40e83e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40e849
or bh, 8
and edi, 0x8000000
je 0x40e864
mov eax, dword [0x42219c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40e88b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ec60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40ec8b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40ecaf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40ecca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x410d6f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4174b4
call fcn.00403a30
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004160f4
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x410dae
call fcn.004160f4
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x410dbc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x410dca
or eax, 0xffffffff
jmp 0x410eb2
mov ecx, esi
call fcn.00410ce5
mov dword [ebp - 0x14], eax
call fcn.00411af7
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x410e01
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x410e01
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00411aab
push dword [ebp - 0x14]
call fcn.004115f9
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00410a7d
cmp eax, edi
je 0x410e74
test byte [esi + 0x24], 0x10
je 0x410e42
push 4
mov ecx, esi
pop ebx
call fcn.00413bfb
test ah, 1
je 0x410e3a
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004135ff
cmp dword [esi + 0x1c], edi
je 0x410e74
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00413c2f
jmp 0x410e74
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x410e88
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x410ea1
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x410ea1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00410d1f
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4134ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4134ef
call fcn.004160f4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4134ef
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4134e6
xor eax, eax
jmp 0x4134f7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004134fd
pop edi
pop esi
pop ebx
ret 4
Function at 0x416a2f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x416a5d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x416a7b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00416995
jmp 0x416a7b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x416a7b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00416995
test edi, edi
mov eax, edi
jne 0x416a65
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x401e30
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x401ea0
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x401e80
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401350
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x401eef
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x401eef
lcall 0x5de5, 0x8b10c483
jmp loc.007e5d10
Function at 0x401000
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x14], ecx
push edi
push 3
pop edi
lea eax, [ebx + 2]
xor esi, esi
cdq
idiv edi
mov eax, ebx
and dword [ebp - 0xc], esi
sub eax, edx
push 4
push 0x3000
lea eax, [eax*4 + 8]
cdq
idiv edi
mov dword [ebp - 0x1c], eax
lea ecx, [eax + 1]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x401179
test ebx, ebx
je 0x40116f
mov ecx, dword [ebp - 0x14]
jmp 0x40105c
mov ebx, dword [ebp - 0x18]
mov al, byte [ecx]
dec ebx
mov byte [ebp + esi - 4], al
inc esi
mov dh, byte [ebp - 2]
inc ecx
mov dl, byte [ebp - 3]
mov dword [ebp - 0x18], ebx
mov bl, byte [ebp - 4]
mov dword [ebp - 0x14], ecx
cmp esi, edi
jne 0x4010d3
mov esi, dword [ebp - 0x10]
mov al, bl
shr al, 2
mov cl, bl
and cl, 3
mov byte [ebp - 8], al
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, dh
mov byte [ebp - 7], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, dh
and al, 0x3f
mov byte [ebp - 6], cl
mov ecx, dword [ebp - 0xc]
xor edi, edi
mov byte [ebp - 5], al
movzx eax, byte [ebp + edi - 8]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ecx], al
inc ecx
inc edi
cmp edi, 4
jl 0x4010b3
push 3
mov dword [ebp - 0xc], ecx
xor esi, esi
mov ecx, dword [ebp - 0x14]
pop edi
cmp dword [ebp - 0x18], 0
jne 0x401059
test esi, esi
je 0x40116f
cmp esi, edi
jge 0x401103
mov eax, edi
lea ecx, [ebp - 4]
sub eax, esi
add ecx, esi
push eax
push 0
push ecx
call fcn.004078c0
mov dh, byte [ebp - 2]
add esp, 0xc
mov dl, byte [ebp - 3]
mov bl, byte [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov al, bl
shr al, 2
and bl, 3
mov byte [ebp - 8], al
mov al, dl
shr al, 4
and dl, 0xf
shl bl, 4
add bl, al
shl dl, 2
mov al, dh
mov byte [ebp - 7], bl
shr al, 6
and dh, 0x3f
add dl, al
mov byte [ebp - 5], dh
lea eax, [esi + 1]
mov byte [ebp - 6], dl
mov edx, dword [ebp - 0x10]
xor ebx, ebx
test eax, eax
jle 0x40115a
lea edi, [esi + 1]
movzx eax, byte [ebp + ebx - 8]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + ecx], al
inc ecx
inc ebx
cmp ebx, edi
jl 0x401143
push 3
pop edi
cmp esi, edi
jge 0x40116f
sub edi, esi
lea eax, [edx + ecx]
push edi
push 0x3d
push eax
call fcn.004078c0
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov byte [eax + ecx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401221
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov dword [ebp - 8], ecx
xor ebx, ebx
push edi
mov ecx, 0x208
mov dword [ebp - 0x14], ebx
mov esi, edx
call fcn.00405780
mov edi, eax
lea edx, [ebp - 0x24]
push esi
push edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], edi
call fcn.00401180
pop ecx
pop ecx
test eax, eax
je 0x4013b2
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4013b2
push 0x40
pop eax
mov byte [ebp - 0x50], bl
dec eax
jne 0x40127f
push ecx
push ecx
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x90]
call fcn.00403d26
mov eax, dword [ebp - 0x24]
add esp, 8
mov dword [ebp - 0x78], eax
mov ecx, 0x100001
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call fcn.00405780
mov ecx, 0x100005
mov dword [ebp - 8], eax
call fcn.00405780
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x100000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4013c2
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4013c2
mov eax, dword [ebp - 4]
cmp ecx, 0x100000
push 1
pop edx
cmovb eax, edx
add dword [edi + 0x200], ecx
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x90]
adc dword [edi + 0x204], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
call fcn.00403d7b
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
xor ecx, ecx
neg eax
inc ecx
cdq
push ecx
push ebx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401344
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40137c
mov edi, dword [ebp - 0xc]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40135d
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4012c7
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x208
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
mov ebx, eax
call fcn.00405791
mov ecx, dword [ebp - 0xc]
call fcn.00405791
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00405791
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
lea ecx, [eax + 1]
mov dword [ebp - 4], ecx
jmp 0x40137f
Function at 0x4014b8
Capabilities:
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea edx, [ebp - 0x24]
mov al, 0x41
push ebx
push esi
push edi
mov ebx, ecx
mov byte [edx], al
inc al
inc edx
cmp al, 0x5a
jle 0x4014c8
lea eax, [ebp - 0x48]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x34]
cmp eax, 1
jbe 0x4014e6
dec eax
push 0x1b
pop ecx
mov dword [ebx], eax
call fcn.00405780
mov dword [ebx + 4], eax
mov edi, esi
mov dword [ebp - 8], 0x5c3a41
mov al, byte [ebp + edi - 0x24]
mov byte [ebp - 1], al
mov byte [ebp - 8], al
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add eax, 0xfffffffe
cmp eax, 2
ja 0x401529
mov eax, dword [ebx + 4]
inc esi
jmp 0x40151f
inc eax
cmp byte [eax], 0
jne 0x40151e
mov cl, byte [ebp - 1]
mov byte [eax], cl
inc edi
cmp edi, 0x19
jb 0x4014fc
pop edi
mov dword [ebx + 8], esi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret