joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410a98
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
setne cl
mov al, cl
pop esi
pop ebp
ret 0x18

Function at 0x410ac6
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x413800
call fcn.00411d10
sub esp, 0xc
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
lea edi, [esi + 0x68]
lea ecx, [edi + 0xc]
call fcn.0040abb8
push 0
push 0x1f4
mov ecx, edi
call fcn.0040bd2a
lea eax, [ebp - 0x18]
push 0x45
push eax
call fcn.0040d811
push dword [eax]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040d95b
push dword [ebp - 0x18]
call fcn.0040b047
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x410c8c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x413896
call fcn.00411d10
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi], 0x4147ac
lea ecx, [esi + 0xc]
mov dword [esi + 8], edi
push 0xf
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.0040706b
push edi
push edi
push edi
lea ecx, [esi + 0x38]
push 1
mov byte [ebp - 4], 1
mov dword [esi + 0x30], edi
call fcn.0040d8e0
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 2
call fcn.00410d20
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x41477c
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x43b656
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
or edi, edi
push ecx
mov ecx, dword [esp]
add esp, 4
call fcn.0043b68f
mov ecx, 0x1f9b2390
inc ecx
sub ecx, edi
xor dword [esi], ebx
or ecx, ecx
sub ecx, edi
inc edi
inc esi
sub edi, ecx
sub edi, ecx
sub ecx, 0x9c26ac99
cmp esi, eax
jne fcn.0043b656
and ecx, edi
or ecx, ecx
sub ecx, edi
ret
Function at 0x30cd14
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x30cb8c
mov eax, dword [0x3b1190]
cmp byte [eax], 0
je 0x30cd90
mov eax, dword [0x3b0f6c]
call fcn.00302e28
call fcn.0030288c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00309d78
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x30cdd8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x30cdc6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x3b0f10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x3b2668]
call fcn.00306304
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x30d674
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x30d74a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00304df8
lea eax, [ebp - 8]
call fcn.00305270
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00305220
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x30d734
mov eax, ebx
call fcn.00302724
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x30d72d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00305220
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x30d717
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x30d75c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x30d717
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30d734
mov eax, dword [ebp - 0x10]
call fcn.00302744
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30d751
lea eax, [ebp - 8]
call fcn.00304d60
ret

Function at 0x30dd00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x30dd64
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00304fd0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.003093ac
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30dd6b
lea eax, [ebp - 0xc]
call fcn.00304d60
ret
Function at 0x31fb24
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x3b2888
cmp dword [edi], 0
jne 0x31fba0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x3b2884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x3af44c
mov ecx, 2
call fcn.003029fc
mov edx, 0x31fafc
lea eax, [esi + 5]
call fcn.0031fb1c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0031fb1c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x31fb75
mov dword [0x3b2884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x321154
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x32115a
ret

Function at 0x3239dc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x323a2d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x323a14
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x323a04
jmp 0x323a2d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x323a15
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x37fffc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x38006d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x3b0860]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x380057
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0037ffec
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x37fdf8]
call fcn.00380094
mov dword [0x3b08c4], eax
mov eax, dword [ebp - 4]
call fcn.0037ff9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x380074
lea eax, [ebp - 8]
call fcn.003068d4
ret

Function at 0x3805a0
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov eax, esp
mov edx, 0x94
call fcn.0038077c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x380607
mov eax, dword [esp + 4]
cmp eax, 3
jne 0x3805df
cmp dword [esp + 8], 0x33
jb 0x3805df
mov eax, 2
jmp 0x380621
cmp eax, 4
jne 0x3805eb
mov eax, 3
jmp 0x380621
cmp dword [esp + 4], 5
jne 0x380600
cmp dword [esp + 8], 0
jne 0x380600
mov eax, 4
jmp 0x380621
mov eax, 5
jmp 0x380621
cmp eax, 1
jne 0x38061e
cmp dword [esp + 8], 0
jne 0x380617
xor eax, eax
jmp 0x380621
mov eax, 1
jmp 0x380621
or eax, 0xffffffff
add esp, 0x94
ret
Function at 0x380db8
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffac
mov esi, eax
test esi, esi
jne 0x380dcf
mov eax, 4
jmp 0x380fb5
mov al, byte [esi]
sub al, 1
jb 0x380de1
je 0x380ded
dec al
je 0x380e13
sub al, 4
je 0x380df9
jmp 0x380e05
mov eax, esi
call fcn.00380ba8
jmp 0x380fb5
mov eax, esi
call fcn.00380c98
jmp 0x380fb5
mov eax, esi
call fcn.00380ccc
jmp 0x380fb5
mov byte [esi + 1], 4
mov eax, 4
jmp 0x380fb5
mov cl, byte [esi + 9]
mov dl, byte [esi + 8]
mov al, byte [esi + 2]
call fcn.00380c40
mov ebx, eax
test bl, bl
jne 0x380e35
mov byte [esi + 1], 0x82
mov eax, 0x82
jmp 0x380fb5
cmp byte [esi + 0x30], 0x12
jne 0x380e7f
mov al, byte [esi + 2]
cmp al, byte [0x3b2c5c]
jb 0x380e54
mov byte [esi + 1], 0x81
mov eax, 0x81
jmp 0x380fb5
mov byte [esi + 1], 1
mov edx, dword [esi + 0x10]
xor eax, eax
mov al, bl
add eax, eax
lea eax, [eax + eax*4]
lea eax, [eax*8 + 0x3b2c6c]
mov ecx, 0x24
call fcn.003029fc
mov eax, 1
jmp 0x380fb5
xor eax, eax
mov al, bl
mov edi, eax
add edi, edi
lea edi, [edi + edi*4]
cmp dword [edi*8 + 0x3b2c68], 0xffffffff
jne 0x380ea7
mov al, byte [edi*8 + 0x3b2c63]
call fcn.00380cec
mov dword [edi*8 + 0x3b2c68], eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x50
call fcn.00303194
mov al, byte [esi + 3]
test al, 8
je 0x380ec5
mov byte [esp + 0xc], 1
jmp 0x380ed5
test al, 0x10
je 0x380ed0
mov byte [esp + 0xc], 0
jmp 0x380ed5
mov byte [esp + 0xc], 2
mov word [esp + 4], 0x2c
mov al, byte [esi + 0x15]
mov byte [esp + 0xa], al
mov dl, byte [esi + 0x14]
mov byte [esp + 0xb], dl
mov edx, dword [esi + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0x78
mov edx, dword [esi + 0x10]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 0x30
xor ecx, ecx
mov cl, al
lea edx, [esp + 0x20]
lea eax, [esi + 0x30]
call fcn.003029fc
mov ebp, 0x50
push 0
lea eax, [esp + 4]
push eax
push ebp
lea eax, [esp + 0x10]
push eax
push ebp
lea eax, [esp + 0x18]
push eax
push 0x4d014
mov eax, dword [edi*8 + 0x3b2c68]
push eax
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb eax, eax
inc eax
mov dl, byte [esp + 0xb]
test dl, dl
je 0x380f55
cmp dl, 0x20
jne 0x380f66
cmp byte [esp + 6], 0
jne 0x380f66
test al, al
je 0x380f66
mov byte [esi + 1], 1
jmp 0x380f83
mov byte [esi + 1], 4
xor ecx, ecx
mov cl, byte [esp + 0xb]
lea edx, [esi + 0x40]
lea eax, [esp + 0x34]
call fcn.003029fc
mov al, byte [esp + 6]
mov byte [esi + 0x17], al
xor eax, eax
mov al, bl
mov ebp, eax
add ebp, ebp
lea ebp, [ebp + ebp*4]
mov edi, dword [ebp*8 + 0x3b2c68]
cmp edi, 0xffffffff
je 0x380fb0
push edi
call sub.kernel32.dll_CloseHandle_1
test eax, eax
je 0x380fb0
mov dword [ebp*8 + 0x3b2c68], 0xffffffff
xor eax, eax
mov al, byte [esi + 1]
add esp, 0x54
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42859d
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x438ef0
call fcn.004290e4
push 1
call fcn.00428707
pop ecx
test al, al
jne 0x428454
push 7
call fcn.00428eac
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004286d2
mov byte [ebp - 0x24], al
mov eax, dword [0x43f814]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x42844d
test eax, eax
jne 0x4284be
mov dword [0x43f814], ecx
push 0x42c30c
push 0x42c2f4
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4284a1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x428597
push 0x42c2f0
push 0x42c2c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x43f814], 2
jmp 0x4284c3
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00428874
pop ecx
call fcn.00428ea0
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4284f3
push esi
call fcn.004287ea
pop ecx
test al, al
je 0x4284f3
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00428e38
call esi
call fcn.00428ea6
mov esi, eax
cmp dword [esi], edi
je 0x428511
push esi
call fcn.004287ea
pop ecx
test al, al
je 0x428511
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00428fc2
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00428ff5
test al, al
jne 0x42853c
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x428545
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00428891
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x428597
call fcn.00429129
ret
call fcn.004282db
jmp 0x428435

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x50401369
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
mov eax, section..text_1
nop
nop
nop
nop
cmp eax, 0
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x718e4ca9
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x23f66f99
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x307e67bd
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x10009071
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10009080
pop dword [ebp - 0x50]
mov eax, 0x5ef05b02
sub eax, 0x4eefca82
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x366af
push 0
mov eax, 0x515cba12
add eax, 0xbea436c2
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x3e12
mov ebx, eax
mov edi, 0x1001c400
add edi, dword [ebp - 0x50]
mov edx, 0x9d8d4f19
xor dword [ebp - 0x48], eax
mov esi, dword [edi]
xor dword [ebp - 0x24], ecx
xor esi, edx
sub dword [ebp - 0x2c], 0xd9bec76f
mov dword [ebx], esi
add ebx, 0xcc7adf0
add ebx, 0xf3385214
add edi, 0x29d2f513
sub edi, 0x29d2f50f
loop 0x100090cd
add eax, 0xccf49125
add eax, 0x330c59f6
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x1001ee70
Capabilities:
Get disk information

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push edi
mov edi, dword [esp + 0x44]
xor ebx, ebx
lea eax, [ebx + 0x41]
lea ecx, [esp + 0x44]
push eax
push str._c:_
push ecx
call fcn.10024da0
add esp, 0xc
lea edx, [esp + 0x44]
push edx
call esi
cmp eax, 5
jne 0x1001eec6
push edi
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.100230c0
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp eax, ebp
je 0x1001eed7
inc ebx
cmp ebx, 0x1a
jb 0x1001ee87
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1001eee4
add bl, 0x41
mov byte [eax], bl
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x100224c0
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
sub esp, 0x1a4
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0xb0]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xb0]
push 3
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.10026830
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add esp, 0xc
lea eax, [esp + 0x14]
mov byte [esp + 0x17], 0
push eax
call ebx
cmp eax, 5
jne 0x1002254d
mov ecx, dword [esp + 0x1b8]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x10037d9c
push 0x10043b00
call fcn.10024da0
add esp, 0x10
push 0x10043b00
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov ax, cx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
lea edx, [esp + 0xb0]
push 0x5c
push edx
call fcn.10025e20
mov edi, dword [esp + 0x1c0]
add esp, 8
mov byte [eax + 1], 0
lea eax, [esp + 0xb0]
push edi
push eax
push 0x10037d9c
push 0x10043b00
call fcn.10024da0
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
push 0x10043b00
call ebp
cmp eax, 0xffffffff
je 0x100225a6
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
call fcn.1001b090
push eax
call fcn.1001af80
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1001ee70
add esp, 0xc
cmp ax, 1
jne 0x100225f8
lea edx, [esp + 0x14]
push edi
push edx
push 0x10037d9c
push 0x10043b00
call fcn.10024da0
add esp, 0x10
push 0x10043b00
call ebp
cmp eax, 0xffffffff
je 0x100225f8
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
lea eax, [esp + 0x18]
push eax
push 0x95
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x18]
mov byte [esp + 0x10], 0
test al, al
je 0x1002269e
mov eax, dword [esp + 0x10]
and eax, 0xff
lea esi, [esp + eax + 0x18]
push esi
call ebx
cmp eax, 5
jne 0x1002264e
push edi
push esi
push 0x10037d9c
push 0x10043b00
call fcn.10024da0
add esp, 0x10
push 0x10043b00
call ebp
cmp eax, 0xffffffff
jne 0x1002268f
cmp byte [esi], 0
je 0x10022669
inc byte [esp + 0x10]
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov al, byte [esp + ecx + 0x18]
test al, al
jne 0x10022653
inc byte [esp + 0x10]
mov eax, dword [esp + 0x10]
mov edx, eax
and edx, 0xff
mov cl, byte [esp + edx + 0x18]
test cl, cl
jne 0x1002261d
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0x1a4
ret
Function at 0x100230c0
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
jne 0x1002314b
mov ecx, 9
xor eax, eax
mov edi, 0x10043c28
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esp + 0x11c]
mov dword [0x10043c2c], esi
mov dword [0x10043c30], esi
mov dword [0x10043c34], esi
mov word [0x10043c4c], si
mov ecx, 9
mov esi, 0x10043c28
mov dword [0x10043c28], 5
mov dword [0x10043c38], 3
mov dword [0x10043c3c], 0x14
mov dword [0x10043c40], 0x16
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 1
mov ax, si
pop edi
pop esi
pop ebx
add esp, 0x108
ret
cmp word [esp + 0x120], si
je 0x10023162
push str.00000001.LT1
push eax
lea eax, [esp + 0x18]
push eax
jmp 0x1002316d
push str.00000001.TMP
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.10023070
add esp, 0xc
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10023237
push esi
push 0x80
push 3
push esi
push esi
lea eax, [esp + 0x24]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, esi
je 0x10023237
mov ecx, 9
xor eax, eax
mov edi, 0x10043c28
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push 0x26
push 0x10043c28
push ebx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10023230
mov eax, dword [esp + 0xc]
cmp eax, 0x14
jne 0x100231f5
mov edi, dword [esp + 0x11c]
mov ecx, 9
mov esi, 0x10043c28
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x1002322b
cmp eax, 0x26
jne 0x10023230
mov eax, dword [esp + 0x11c]
mov ecx, 9
mov esi, 0x10043c28
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp dword [0x10043c28], 2
jb 0x1002322b
mov edx, dword [esp + 0x124]
push eax
push edx
call fcn.100233c0
add esp, 8
mov esi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, si
pop edi
pop esi
pop ebx
add esp, 0x108
ret

Function at 0x100241a1
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov dl, byte [ecx]
xor eax, eax
xor edi, edi
mov byte [esi], dl
cmp byte [ecx], al
je 0x100241cf
mov edx, esi
push ebx
sub edx, ecx
mov bl, byte [ecx + 1]
inc edi
inc ecx
dec bl
xor bl, byte [edx + ecx - 1]
mov byte [edx + ecx], bl
cmp byte [ecx], al
jne 0x100241bc
pop ebx
mov byte [edi + esi], al
mov eax, esi
pop edi
pop esi
ret