joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401198
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0xc], 0x19
mov dword [ebp - 4], 0x4bac30
mov dword [ebp - 8], 8
mov edx, dword [ebp - 4]
mov edx, dword [edx]
add dword [ebp - 4], 4
mov ebx, edi
xor ebx, esi
and ebx, dword [ebp + 8]
xor edx, ebx
xor edx, esi
shl edx, 2
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx]
xor edx, ebx
xor edx, edi
shl edx, 2
mov dword [ebp - 0x10], edx
movzx edx, byte [ebp - 0x14]
xor ecx, dword [edx + 0x4ba930]
xor eax, dword [edx + 0x4bacb0]
movzx edx, byte [ebp - 0x13]
xor ecx, dword [edx + 0x4ba510]
xor eax, dword [edx + 0x4b9c78]
movzx edx, byte [ebp - 0x12]
xor ecx, dword [edx + 0x4ba620]
xor eax, dword [edx + 0x4ba820]
movzx edx, byte [ebp - 0x11]
xor ecx, dword [edx + 0x4ba098]
xor eax, dword [edx + 0x4b9d78]
movzx edx, byte [ebp - 0x10]
xor ecx, dword [edx + 0x4ba198]
xor eax, dword [edx + 0x4bab30]
movzx edx, byte [ebp - 0xf]
xor ecx, dword [edx + 0x4baa30]
xor eax, dword [edx + 0x4b9e78]
movzx edx, byte [ebp - 0xe]
xor ecx, dword [edx + 0x4ba298]
xor eax, dword [edx + 0x4ba720]
movzx edx, byte [ebp - 0xd]
xor ecx, dword [edx + 0x4b9f98]
xor eax, dword [edx + 0x4ba3e0]
add dword [ebp - 4], 4
mov edx, dword [ebp - 4]
mov edx, dword [edx]
add dword [ebp - 4], 4
mov ebx, ecx
xor ebx, eax
and ebx, dword [ebp + 8]
xor edx, ebx
xor edx, eax
shl edx, 2
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx]
xor edx, ebx
xor edx, ecx
shl edx, 2
mov dword [ebp - 0x10], edx
movzx edx, byte [ebp - 0x14]
xor edi, dword [edx + 0x4ba930]
xor esi, dword [edx + 0x4bacb0]
movzx edx, byte [ebp - 0x13]
xor edi, dword [edx + 0x4ba510]
xor esi, dword [edx + 0x4b9c78]
movzx edx, byte [ebp - 0x12]
xor edi, dword [edx + 0x4ba620]
xor esi, dword [edx + 0x4ba820]
movzx edx, byte [ebp - 0x11]
xor edi, dword [edx + 0x4ba098]
xor esi, dword [edx + 0x4b9d78]
movzx edx, byte [ebp - 0x10]
xor edi, dword [edx + 0x4ba198]
xor esi, dword [edx + 0x4bab30]
movzx edx, byte [ebp - 0xf]
xor edi, dword [edx + 0x4baa30]
xor esi, dword [edx + 0x4b9e78]
movzx edx, byte [ebp - 0xe]
xor edi, dword [edx + 0x4ba298]
xor esi, dword [edx + 0x4ba720]
movzx edx, byte [ebp - 0xd]
add dword [ebp - 4], 4
xor edi, dword [edx + 0x4b9f98]
xor esi, dword [edx + 0x4ba3e0]
dec dword [ebp - 8]
jne 0x4011be
xor eax, esi
xor ecx, edi
xor esi, eax
xor edi, ecx
xor eax, esi
xor ecx, edi
dec dword [ebp - 0xc]
jne 0x4011b0
mov dword [0x4ba92c], edi
pop edi
mov dword [0x4ba928], esi
pop esi
mov dword [0x4ba920], eax
mov dword [0x4ba924], ecx
pop ebx
leave
ret
Function at 0x401a8d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
cmp dword [ebp + 0xc], 0
jg 0x401aa0
xor eax, eax
leave
ret
push esi
push 0x4a461c
push dword [ebp + 8]
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x401abe
xor eax, eax
jmp 0x401be8
push esi
push 0x800
lea eax, [ebp - 0x804]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 0x14
cmp dword [ebp - 4], 0x4e
jb 0x401ab7
push 0x14
lea eax, [ebp - 0x804]
push 0x4a4604
push eax
call sub.MSVCR71.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x401ab7
test byte [ebp - 0x7f0], 2
je 0x401ab7
test byte [ebp - 0x7f0], 1
push 0x4c
pop eax
je 0x401b1f
movzx eax, word [ebp - 0x7b8]
add eax, 0x4e
lea ecx, [eax + 0x1c]
cmp ecx, dword [ebp - 4]
ja 0x401ab7
mov cl, byte [ebp + eax - 0x7fc]
mov esi, dword [ebp + eax - 0x7ec]
push ebx
mov bl, cl
shr cl, 1
and bl, 1
and cl, 1
test bl, bl
je 0x401b4d
mov edx, dword [ebp + eax - 0x7f4]
jmp 0x401b5c
test cl, cl
je 0x401be5
mov edx, dword [ebp + eax - 0x7f0]
add esi, eax
add edx, eax
test bl, bl
jne 0x401b96
test cl, cl
je 0x401b96
lea eax, [edx + 0x14]
cmp eax, dword [ebp - 4]
ja 0x401be5
mov cl, byte [ebp + edx - 0x800]
mov al, cl
shr al, 1
and al, 1
test cl, 1
je 0x401b8b
add edx, dword [ebp + edx - 0x7f8]
jmp 0x401b96
test al, al
je 0x401be5
add edx, dword [ebp + edx - 0x7fc]
mov ebx, dword [ebp + 0xc]
xor eax, eax
test ebx, ebx
jle 0x401be5
cmp edx, dword [ebp - 4]
jae 0x401be5
mov cl, byte [ebp + edx - 0x804]
test cl, cl
mov byte [eax + edi], cl
je 0x401bba
inc eax
inc edx
cmp eax, ebx
jl 0x401b9f
jmp 0x401be5
test eax, eax
jle 0x401be1
cmp byte [eax + edi - 1], 0x5c
je 0x401be1
mov byte [eax + edi], 0x5c
inc eax
jmp 0x401be1
cmp esi, dword [ebp - 4]
jae 0x401be5
mov cl, byte [ebp + esi - 0x804]
test cl, cl
mov byte [eax + edi], cl
je 0x401be7
inc eax
inc esi
cmp eax, ebx
jl 0x401bcc
xor eax, eax
pop ebx
pop esi
leave
ret
Function at 0x401cf4
Capabilities:
Create thread

Disassembly:
mov eax, 0x498c93
call fcn.00497a30
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x10]
mov dword [esi], 0x4a4634
call fcn.00483124
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [0x4bb1bc], ebx
jne 0x401dfe
mov eax, dword [0x4b92ec]
push edi
mov edi, eax
imul eax, eax, 0x9c
add eax, 4
push eax
mov dword [ebp - 0x10], edi
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
mov byte [ebp - 4], 1
mov esi, 0x9c
je 0x401d6d
push fcn.00401ecc
push 0x401e80
push dword [ebp - 0x10]
mov dword [eax], edi
lea edi, [eax + 4]
push esi
push edi
call fcn.004975ce
mov eax, edi
jmp 0x401d6f
xor eax, eax
mov byte [ebp - 4], bl
mov ecx, dword [0x4b92ec]
cmp ecx, ebx
mov dword [0x4bb1bc], eax
pop edi
jle 0x401d94
add eax, 0x70
mov edx, ecx
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 0x18], ebx
add eax, esi
dec edx
jne 0x401d87
lea eax, [ecx*4 + 4]
push eax
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
push ebx
push ebx
push ebx
push ebx
mov dword [0x4bb1c0], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [0x4bb1c0]
push 0x4badb0
mov dword [ecx], eax
mov byte [0x4bb1c4], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x402cc0
push 0x1000
push ebx
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
jbe 0x401df1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401dfb
mov dword [0x4b92f0], 0xa
mov esi, dword [ebp + 8]
or dword [esi + 0xc], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov byte [esi + 4], bl
mov dword [esi + 8], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x403b46
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov eax, 0x49859f
call fcn.00497a30
sub esp, 0x41c
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ebx + 8]
push edi
mov ecx, esi
mov dword [ebx], 0x4a4654
call fcn.00483124
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [0x4bb1cc], edi
jle 0x403b8e
push 0x4a83cc
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], 1
call sub.MSVCR71.dll__CxxThrowException
push dword [ebp + 0xc]
mov eax, dword [esi]
inc dword [0x4bb1cc]
mov ecx, esi
mov dword [ebx + 4], edi
call dword [eax + 8]
mov esi, 0x208
push esi
lea eax, [ebp - 0x428]
push edi
push eax
call sub.MSVCR71.dll_memset
lea eax, [ebp - 0x428]
push str.SYSTEMCurrentControlSetServicesEventlogApplication_
push eax
call sub.MSVCR71.dll_strcpy
push dword [ebp + 0xc]
lea eax, [ebp - 0x428]
push eax
call sub.MSVCR71.dll_strcat
add esp, 0x1c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [ebp - 0x428]
push eax
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403cc2
push esi
lea eax, [ebp - 0x220]
push edi
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
push 0x206
lea eax, [ebp - 0x220]
push eax
push edi
mov dword [ebp + 8], 5
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x220]
push eax
call sub.MSVCR71.dll_strlen
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ecx
inc eax
push eax
lea eax, [ebp - 0x220]
push eax
push 1
push edi
push str.EventMessageFile
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x220]
push eax
call sub.MSVCR71.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x220]
push eax
push 1
push edi
push str.CategoryMessageFile
push dword [ebp - 0x10]
call esi
push 4
lea eax, [ebp + 8]
push eax
push 4
push edi
push str.CategoryCount
push dword [ebp - 0x10]
call esi
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push edi
push str.TypesSupported
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x1f
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [ebx + 4], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x403d17
Capabilities:
Access the windows event log

Disassembly:
cmp dword [esi + 4], 0
je 0x403da7
push edi
call fcn.00403daa
mov edi, eax
mov eax, dword [esp + 8]
dec eax
push 4
pop ecx
mov edx, ecx
je 0x403d52
dec eax
je 0x403d4e
dec eax
je 0x403d4a
dec eax
je 0x403d46
dec eax
jne 0x403d55
push 5
pop edx
jmp 0x403d55
mov edx, ecx
jmp 0x403d55
push 3
jmp 0x403d43
push 2
jmp 0x403d43
xor edx, edx
inc edx
mov eax, dword [esp + 0x10]
dec eax
dec eax
je 0x403d76
dec eax
je 0x403d72
dec eax
je 0x403d79
dec eax
je 0x403d6e
dec eax
jne 0x403d79
push 0x10
pop ecx
jmp 0x403d79
push 8
jmp 0x403d6b
push 2
jmp 0x403d6b
xor ecx, ecx
inc ecx
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 1
push edi
push 0x2a
push edx
push ecx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test edi, edi
je 0x403da6
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
ret 0xc

Function at 0x404881
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaec
push esi
push edi
mov eax, ebx
call fcn.004049be
mov edi, dword [sym.imp.MSVCR71.dll_sprintf]
xor eax, eax
inc eax
push eax
push str.EventHookDLL
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push str._s_d
push eax
call edi
add esp, 0x10
mov esi, 0x15e
jmp 0x404992
inc dword [ebp - 4]
lea eax, [ebp - 0x18c]
push eax
mov dword [ebp - 8], 4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x4048fd
push esi
lea eax, [ebp - 0x2ec]
push eax
push 0x7ff
push dword [ebx + 0x114]
call dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 8], 2
jmp 0x404951
push str.HandleEventHook
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
push esi
lea eax, [ebp - 0x2ec]
push eax
jne 0x404934
push 0x800
push dword [ebx + 0x114]
call dword [sym.imp.USER32.dll_LoadStringA]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4048f4
push 0x7fe
push dword [ebx + 0x114]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebx + 4]
call fcn.00404b6c
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x2ec]
push eax
lea eax, [ebp - 0xaec]
push eax
call edi
push dword [ebp - 8]
lea eax, [ebp - 0xaec]
push eax
push 0x12
or ecx, 0xffffffff
call fcn.0041b091
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push str.EventHookDLL
push str._s_d
push eax
call edi
add esp, 0x28
lea eax, [ebx + 0x14]
push eax
push esi
lea eax, [ebp - 0x18c]
push eax
push 0x4a4630
lea eax, [ebp - 0x2c]
push eax
push str.EXTERNAL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4048bd
pop edi
pop esi
leave
ret
Function at 0x41012f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x8d48]
cmp eax, 0xc
je 0x410153
cmp eax, 0xe
je 0x410153
cmp eax, 0xd
jne 0x410381
sub eax, 0xc
je 0x41035c
dec eax
je 0x410186
dec eax
jne 0x410381
cmp dword [ebp + 8], 0x25
push 0
jne 0x410373
mov dword [edi + 0x8d48], 7
call fcn.00410ce6
jmp 0x410381
cmp dword [ebp + 8], 0x25
jne 0x410353
lea ebx, [edi + 0x814c]
cmp dword [ebx], 0
mov dword [edi + 0x8d48], 6
je 0x410309
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [edi + 0x80fc]
mov edx, eax
sub edx, dword [ecx]
mov dword [ecx], eax
add dword [edi + 0x8104], edx
mov byte [ebp + 0xb], 0
cmp byte [edi + 0x8d1d], 0
je 0x410245
mov esi, dword [edi + 0x8d24]
test esi, esi
je 0x410245
cmp byte [edi + 0x8d1e], 0
jne 0x410309
push 0
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
lea eax, [edi + 0xf9]
push ecx
push eax
mov eax, dword [ebx]
call fcn.00466ee4
cmp eax, 1
je 0x410325
mov esi, dword [ebp - 8]
cmp esi, 0x8000
jg 0x410325
cmp eax, 2
jne 0x410220
mov byte [ebp + 0xb], 1
jmp 0x410230
cmp eax, 3
mov byte [ebp + 0xb], 0
jne 0x410230
mov byte [edi + 0x8d1e], 1
push esi
push dword [ebp - 0xc]
lea eax, [edi + 0xf9]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
mov dword [ebx], esi
mov esi, dword [ebx]
test esi, esi
je 0x4102ff
mov eax, esi
cdq
lea ecx, [edi + 0x8118]
add dword [ecx], eax
adc dword [ecx + 4], edx
lea ecx, [edi + 0x8110]
add dword [ecx], eax
mov eax, esi
adc dword [ecx + 4], edx
neg eax
cdq
push edx
push eax
mov eax, dword [edi + 0x84ac]
call fcn.0040a513
test eax, eax
je 0x41032e
mov esi, dword [edi + 0x84c0]
test esi, esi
je 0x41029c
cmp byte [edi + 0x84c4], 0
jne 0x41029c
mov bl, 1
call fcn.00456bca
push 0
lea ecx, [ebp - 0x10]
push ecx
push dword [edi + 0x814c]
lea eax, [edi + 0xf9]
push eax
push dword [edi + 0x8148]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [edi + 0x84c0]
test eax, eax
setne byte [ebp - 1]
test esi, esi
je 0x4102d2
xor bl, bl
call fcn.00456bca
cmp byte [ebp - 1], 0
je 0x410337
lea ebx, [edi + 0x814c]
mov eax, dword [ebx]
cmp dword [ebp - 0x10], eax
jne 0x410337
mov ecx, dword [edi + 0x84bc]
test ecx, ecx
je 0x4102fc
push eax
lea eax, [edi + 0xf9]
push eax
call fcn.00482b87
and dword [ebx], 0
cmp byte [ebp + 0xb], 0
jne 0x4101c5
mov ecx, dword [edi + 0x30]
and dword [ebx], 0
push 0
push ebx
push 0x8000
lea eax, [edi + 0xf9]
push eax
call fcn.0048668b
jmp 0x410381
push 0
push 0x4f5
jmp 0x410349
push 0
push 0x46f
jmp 0x410349
mov eax, dword [edi + 0x84ac]
call fcn.0040a6ed
push 0
push 0x424
push 1
push edi
call fcn.0040f274
jmp 0x410381
push 0
push 0x4d5
jmp 0x410349
cmp dword [ebp + 8], 0x25
push 0
jne 0x410373
mov dword [edi + 0x8d48], 5
jmp 0x41017c
push 0x4d5
mov ecx, edi
push 1
call fcn.0040fa80
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x410af5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [edi + 0x8d48], 6
push ebx
push esi
jne 0x410cb2
xor eax, eax
cmp dword [ebp + 8], eax
je 0x410b22
cmp dword [ebp + 8], 0x1d
je 0x410b22
push eax
push 0x422
jmp 0x410cdc
lea ebx, [edi + 0x814c]
cmp dword [ebx], eax
je 0x410c92
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [edi + 0x80fc]
mov edx, eax
sub edx, dword [ecx]
mov dword [ecx], eax
add dword [edi + 0x8104], edx
mov byte [ebp - 1], 0
cmp byte [edi + 0x8d1d], 0
je 0x410bcc
mov esi, dword [edi + 0x8d24]
test esi, esi
je 0x410bcc
cmp byte [edi + 0x8d1e], 0
jne 0x410c92
push 0
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
lea eax, [edi + 0xf9]
push ecx
push eax
mov eax, dword [ebx]
call fcn.00466ee4
cmp eax, 1
je 0x410cb8
mov esi, dword [ebp - 8]
cmp esi, 0x8000
jg 0x410cb8
cmp eax, 2
jne 0x410ba7
mov byte [ebp - 1], 1
jmp 0x410bb7
cmp eax, 3
mov byte [ebp - 1], 0
jne 0x410bb7
mov byte [edi + 0x8d1e], 1
push esi
push dword [ebp - 0xc]
lea eax, [edi + 0xf9]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
mov dword [ebx], esi
mov esi, dword [ebx]
test esi, esi
je 0x410c88
mov eax, esi
cdq
lea ecx, [edi + 0x8118]
add dword [ecx], eax
adc dword [ecx + 4], edx
lea ecx, [edi + 0x8110]
add dword [ecx], eax
mov eax, esi
adc dword [ecx + 4], edx
neg eax
cdq
push edx
push eax
mov eax, dword [edi + 0x84ac]
call fcn.0040a513
test eax, eax
je 0x410cc1
mov esi, dword [edi + 0x84c0]
test esi, esi
je 0x410c23
cmp byte [edi + 0x84c4], 0
jne 0x410c23
mov bl, 1
call fcn.00456bca
push 0
lea ecx, [ebp - 0x10]
push ecx
push dword [edi + 0x814c]
lea eax, [edi + 0xf9]
push eax
push dword [edi + 0x8148]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [edi + 0x84c0]
setne byte [ebp - 2]
test eax, eax
je 0x410c5b
xor bl, bl
mov esi, eax
call fcn.00456bca
cmp byte [ebp - 2], 0
je 0x410cca
lea ebx, [edi + 0x814c]
mov eax, dword [ebx]
cmp dword [ebp - 0x10], eax
jne 0x410cca
mov ecx, dword [edi + 0x84bc]
test ecx, ecx
je 0x410c85
push eax
lea eax, [edi + 0xf9]
push eax
call fcn.00482b87
and dword [ebx], 0
cmp byte [ebp - 1], 0
jne 0x410b4c
and dword [ebx], 0
cmp dword [ebp + 8], 0x1d
je 0x410cb2
mov ecx, dword [edi + 0x30]
push 0
push ebx
push 0x8000
lea eax, [edi + 0xf9]
push eax
call fcn.0048668b
pop esi
pop ebx
leave
ret 4
push 0
push 0x4f5
jmp 0x410cdc
push 0
push 0x46f
jmp 0x410cdc
mov eax, dword [edi + 0x84ac]
call fcn.0040a6ed
push 0
push 0x424
push 1
push edi
call fcn.0040f274
jmp 0x410cb2
Function at 0x410ce6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [edi + 0x8d48]
cmp eax, 5
push ebx
push esi
je 0x410d02
cmp eax, 7
jne 0x410f0f
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x410d24
cmp eax, 5
mov ecx, edi
push ebx
jne 0x410d18
push 0x40a
jmp 0x410d1d
push 0x40c
push 1
jmp 0x410f0a
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, eax
mov eax, dword [edi + 0x8150]
cdq
lea ecx, [edi + 0x8118]
add dword [ecx], eax
mov dword [edi + 0x814c], ebx
mov dword [ebp + 8], ebx
adc dword [ecx + 4], edx
lea ecx, [edi + 0x8108]
add dword [ecx], eax
lea eax, [edi + 0x80fc]
adc dword [ecx + 4], edx
mov ecx, esi
sub ecx, dword [eax]
mov dword [eax], esi
add dword [edi + 0x8100], ecx
cmp dword [edi + 0x8d48], 7
jne 0x410df2
cmp dword [edi + 0xb4], ebx
je 0x410e3e
lea ebx, [edi + 0xa4]
mov eax, ebx
call fcn.00411738
mov esi, dword [eax + 0x18]
mov ecx, dword [ebp + 8]
add ecx, esi
cmp ecx, 0x7ffe
ja 0x410e3c
cmp dword [eax + 0x1c], 0x10
jb 0x410da9
mov eax, dword [eax + 8]
jmp 0x410dac
add eax, 8
push esi
push eax
mov eax, dword [ebp + 8]
lea eax, [edi + eax + 0xf9]
push eax
call sub.MSVCR71.dll_memcpy
add dword [ebp + 8], esi
mov eax, dword [ebp + 8]
mov byte [edi + eax + 0xf9], 0xd
add esp, 0xc
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
mov byte [edi + eax + 0xf9], 0xa
inc dword [ebp + 8]
mov esi, ebx
call fcn.00411750
cmp dword [edi + 0xb4], 0
jne 0x410d83
jmp 0x410e3c
mov esi, dword [edi + 0x84c0]
cmp esi, ebx
je 0x410e0e
cmp byte [edi + 0x84c4], 0
jne 0x410e0e
mov bl, 1
call fcn.00456bca
xor ebx, ebx
push ebx
lea eax, [ebp + 8]
push eax
push 0x8000
lea eax, [edi + 0xf9]
push eax
push dword [edi + 0x8148]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [edi + 0x84c0]
cmp esi, ebx
je 0x410e3e
xor bl, bl
call fcn.00456bca
xor ebx, ebx
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x84bc]
cmp eax, ebx
sete byte [ebp - 4]
cmp ecx, ebx
mov dword [edi + 0x8150], eax
je 0x410e68
cmp eax, ebx
je 0x410e68
push eax
lea eax, [edi + 0xf9]
push eax
call fcn.00482b87
cmp byte [edi + 0x8d1d], 0
je 0x410eb7
mov esi, dword [edi + 0x8d24]
cmp esi, ebx
je 0x410eb7
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
lea ebx, [edi + 0xf9]
push ebx
call fcn.00466ee4
cmp eax, 1
je 0x410ef7
mov esi, dword [ebp - 8]
cmp esi, 0x8000
jg 0x410ef7
push esi
push dword [ebp - 0xc]
push ebx
call sub.MSVCR71.dll_memcpy
add esp, 0xc
mov dword [ebp + 8], esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x410ec2
cmp byte [ebp - 4], 0
jne 0x410ee6
mov ecx, dword [edi + 0x30]
lea eax, [edi + 0x814c]
push eax
push dword [ebp + 8]
lea eax, [edi + 0xf9]
push eax
call fcn.00484470
cmp byte [ebp - 4], 0
je 0x410f0f
cmp dword [ebp + 8], ebx
jne 0x410f0f
cmp dword [edi + 0x8d48], 7
push ebx
jne 0x410f02
push 0x40d
jmp 0x410f07
push 0
push 0x4f4
push 1
jmp 0x410f08
push 0x40b
push ebx
mov ecx, edi
call fcn.0040fa80
pop esi
pop ebx
leave
ret 4
Function at 0x417fb7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x84b0]
cmp dword [eax + 4], 0
lea esi, [edi + 0x8d50]
je 0x417fe5
mov eax, dword [eax + 8]
mov edx, dword [esi]
add eax, 0x68
push eax
mov ecx, esi
call dword [edx + 8]
mov eax, esi
call fcn.00412edf
test al, al
je 0x418001
push 0xffffffffffffffff
mov ecx, 0x4a4
call fcn.0040753b
jmp 0x418089
mov esi, dword [edi + 0x84c0]
test esi, esi
je 0x41801b
cmp byte [edi + 0x84c5], 0
jne 0x41801b
mov bl, 1
call fcn.00456bca
lea eax, [edi + 0x8d54]
cmp dword [eax + 0x18], 0x10
jb 0x41802c
mov eax, dword [eax + 4]
jmp 0x41802f
add eax, 4
push eax
call dword [sym.imp.MSVCR71.dll__mkdir]
mov esi, dword [edi + 0x84c0]
test esi, esi
pop ecx
mov dword [ebp - 4], eax
je 0x41804b
xor bl, bl
call fcn.00456bca
cmp dword [ebp - 4], 0
lea eax, [edi + 0x8d78]
je 0x418093
cmp dword [eax + 0x18], 0x10
jb 0x418062
mov eax, dword [eax + 4]
jmp 0x418065
add eax, 4
push eax
push 0xffffffffffffffff
mov ecx, 0x442
call fcn.0040753b
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
mov ecx, edi
call fcn.0040e4b9
jmp 0x4180ee
cmp dword [eax + 0x18], 0x10
jb 0x41809e
mov eax, dword [eax + 4]
jmp 0x4180a1
add eax, 4
push eax
push 0xffffffffffffffff
mov ecx, 0x443
call fcn.0040753b
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
mov ecx, edi
call fcn.0040e4b9
mov esi, dword [edi + 0x84b0]
lea eax, [edi + 0x8d50]
call fcn.0040af33
mov edi, dword [edi + 0x84b0]
push 0
push 0x13
pop ecx
call fcn.0040af8d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418388
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x84b0]
cmp dword [eax + 4], 0
lea esi, [edi + 0x8d50]
je 0x4183b6
mov eax, dword [eax + 8]
mov edx, dword [esi]
add eax, 0x68
push eax
mov ecx, esi
call dword [edx + 8]
mov eax, esi
call fcn.00412edf
test al, al
je 0x4183d2
push 0xffffffffffffffff
mov ecx, 0x4a5
call fcn.0040753b
jmp 0x418480
lea ebx, [edi + 0x84b8]
mov esi, dword [ebx]
call fcn.00412efb
test al, al
je 0x4183f8
mov eax, dword [ebx]
call fcn.00412f2b
movsx eax, al
sub eax, 0x40
push eax
call dword [sym.imp.MSVCR71.dll__chdrive]
pop ecx
mov esi, dword [edi + 0x84c0]
test esi, esi
je 0x418412
cmp byte [edi + 0x84c5], 0
jne 0x418412
mov bl, 1
call fcn.00456bca
lea eax, [edi + 0x8d54]
cmp dword [eax + 0x18], 0x10
jb 0x418423
mov eax, dword [eax + 4]
jmp 0x418426
add eax, 4
push eax
call dword [sym.imp.MSVCR71.dll__rmdir]
mov esi, dword [edi + 0x84c0]
test esi, esi
pop ecx
mov dword [ebp - 4], eax
je 0x418442
xor bl, bl
call fcn.00456bca
cmp dword [ebp - 4], 0
je 0x41848a
lea eax, [edi + 0x8d78]
cmp dword [eax + 0x18], 0x10
jb 0x418459
mov eax, dword [eax + 4]
jmp 0x41845c
add eax, 4
push eax
push 0xffffffffffffffff
mov ecx, 0x43e
call fcn.0040753b
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
mov ecx, edi
call fcn.0040e4b9
jmp 0x4184bf
push 0xffffffffffffffff
mov ecx, 0x43f
call fcn.0040753b
push eax
mov ecx, edi
call fcn.0040e4b9
mov esi, dword [edi + 0x84b0]
lea eax, [edi + 0x8d50]
call fcn.0040af33
mov edi, dword [edi + 0x84b0]
push 0
push 0x11
pop ecx
call fcn.0040af8d
pop edi
pop esi
pop ebx
leave
ret