joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
lea edx, [ebp - 4]
push edx
push 0
push edi
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov ebx, eax
test ebx, ebx
jne 0x401bf4
cmp dword [ebp - 4], 1
jne 0x401bf4
push dword [ebp - 8]
call fcn.00404948
pop ecx
mov esi, eax
lea eax, [ebp - 8]
push eax
push esi
lea edx, [ebp - 4]
push edx
push 0
push edi
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov ebx, eax
test ebx, ebx
jne 0x401bf4
cmp dword [0x412780], 0
je 0x401bd5
push dword [ebp + 0x10]
push esi
push edi
push str._s___s__expecting__s__n
call fcn.004075b4
add esp, 0x10
push dword [ebp + 0x10]
push esi
call fcn.00405b5c
add esp, 8
mov ebx, eax
push esi
call fcn.00404780
pop ecx
test ebx, ebx
sete al
and eax, 1
jmp 0x401bf6
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x401c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
lea edx, [ebp - 4]
push edx
push 0
push ebx
push esi
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x401c6f
cmp dword [ebp - 4], 4
jne 0x401c6f
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 4]
push edx
push 0
push ebx
push esi
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x401c6f
cmp dword [0x412780], 0
je 0x401c61
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push ebx
push str._s___x__expecting__x__n
call fcn.004075b4
add esp, 0x10
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
sete al
and eax, 1
jmp 0x401c71
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401c78
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
cmp dword [0x412780], 0
je 0x401c9b
push ebx
push esi
push str.setting__s_to__s_n
call fcn.004075b4
add esp, 0xc
push ebx
call fcn.00405bd8
pop ecx
inc eax
push eax
push ebx
push 1
push 0
push esi
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
sete al
and eax, 1
pop esi
pop ebx
pop ebp
ret

Function at 0x401cc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
cmp dword [0x412780], 0
je 0x401ce1
push dword [ebp + 0x10]
push ebx
push str.setting__s_to__x_n
call fcn.004075b4
add esp, 0xc
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
sete dl
and edx, 1
mov eax, edx
pop ebx
pop ebp
ret
Function at 0x403cbc
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, dword [ebp + 0x10]
cmp dword [0x412780], 0
je 0x403cde
push esi
push str.sendCommand__s_n
call fcn.004075b4
add esp, 8
push 0x10
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.00405a28
add esp, 0xc
push dword [ebp + 8]
call sub.WSOCK32.DLL_gethostbyname
mov ebx, eax
test ebx, ebx
jne 0x403d03
xor eax, eax
jmp 0x403dbc
mov word [ebp - 0x10], 2
mov dx, word [ebp + 0xc]
push edx
call sub.WSOCK32.DLL_htons
mov word [ebp - 0xe], ax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
mov dword [ebp - 0xc], edx
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403d52
cmp dword [0x412780], 0
je 0x403d4e
push str.Cant_create_socket_n
push 0x410674
call fcn.00406e5c
add esp, 8
xor eax, eax
jmp 0x403dbc
push 0x10
lea edx, [ebp - 0x10]
push edx
push ebx
call sub.WSOCK32.DLL_connect
push 0
push esi
call fcn.00405bd8
pop ecx
push eax
push esi
push ebx
call sub.WSOCK32.DLL_send
inc eax
jne 0x403d91
cmp dword [0x412780], 0
je 0x403d8d
push str.Cant_send_message_n
push 0x410674
call fcn.00406e5c
add esp, 8
xor eax, eax
jmp 0x403dbc
push ebx
call sub.WSOCK32.DLL_closesocket
test eax, eax
je 0x403dba
cmp dword [0x412780], 0
je 0x403db6
push str.Error_on_closing_socket_n
push 0x410674
call fcn.00406e5c
add esp, 8
xor eax, eax
jmp 0x403dbc
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405628
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 0x406f5c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.00404be0
pop ecx
mov ebx, eax
test eax, eax
jne 0x406f80
xor eax, eax
jmp 0x407029
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x406fa1
cmp esi, 0x104
jb 0x406fac
push ebx
call fcn.00404bf0
pop ecx
xor eax, eax
jmp 0x407029
cmp byte [ebx + 1], 0x3a
jne 0x406fdc
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x406fdc
push ebx
call fcn.00404bf0
pop ecx
xor eax, eax
jmp 0x407029
inc esi
test edi, edi
je 0x40701f
cmp esi, dword [ebp + 0x10]
jbe 0x406ff1
push ebx
call fcn.00404bf0
pop ecx
xor eax, eax
jmp 0x407029
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
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
push ebx
call fcn.00404bf0
pop ecx
mov eax, edi
jmp 0x407029
push esi
push ebx
call fcn.00404c00
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x407030
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 0x407075
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x407064
cmp eax, dword [ebp + 0x10]
jle 0x4070fe
mov dword [0x411aa0], 8
xor eax, eax
jmp 0x407169
cmp dword [0x412f80], 1
jne 0x4070ba
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 0x4070fe
xor eax, eax
jmp 0x407169
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x4070fa
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], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
jmp 0x4070fe
xor eax, eax
jmp 0x407169
lea edx, [ebp - 0x10c]
push edx
call fcn.00405bd8
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x40711e
mov dword [0x411aa0], 0x22
xor eax, eax
jmp 0x407169
test edi, edi
jne 0x407140
mov edx, dword [ebp + 0x10]
push edx
call fcn.00404be0
pop ecx
mov edi, eax
test eax, eax
jne 0x407140
mov dword [0x411aa0], 8
xor eax, eax
jmp 0x407169
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 0x40af78
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x40afda
call fcn.0040af28
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00405bd8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00405bd8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x40b038
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x411aa8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x40b112
cmp dword [0x411aa4], 0
jne 0x40b112
cmp dword [0x411cf0], 0
je 0x40b0cc
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0040ae08
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40b0b2
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0040ae08
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40b0b2
lea ebx, [ebp - 0x84]
jmp 0x40b0b3
inc ebx
call fcn.0040aff4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x40b14d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x411aac
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00405bd8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x411aaf
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x40b14d
cmp dword [0x411aa4], 0
je 0x40b12c
cmp dword [0x411aa4], 0xffffffff
je 0x40b14d
push esi
call dword [0x411aa4]
pop ecx
mov eax, dword [0x411aa8]
test eax, eax
je 0x40b14d
cmp dword [0x411aa8], 0xffffffff
je 0x40b14d
cmp byte [eax], 0
je 0x40b14d
push esi
push eax
call fcn.0040af78
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c120
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x412f98], 0
jne 0x40c1a1
cmp dword [0x412fb8], 0
jne 0x40c150
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x412fb8], eax
test eax, eax
jne 0x40c150
push str.GetEnvironmentStrings_failed
call fcn.0040b164
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x412fb8]
jmp 0x40c164
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00405bd8
pop ecx
mov edi, eax
test eax, eax
jne 0x40c15c
lea edi, [ebp + 1]
push edi
call fcn.00404be0
pop ecx
mov ebx, eax
mov dword [0x412f9c], ebx
test ebx, ebx
jne 0x40c18e
xor eax, eax
jmp 0x40c264
push edi
mov edx, dword [0x412fb8]
push edx
push ebx
call fcn.004059b8
add esp, 0xc
jmp 0x40c1c1
xor esi, esi
mov ebx, dword [0x412f98]
jmp 0x40c1bb
push eax
call fcn.00405bd8
pop ecx
test eax, eax
jne 0x40c1b7
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40c1ab
lea ebx, [esi + 4]
push 4
mov dword [0x412fa0], ebx
inc ebx
push ebx
call fcn.00404744
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40c1e4
xor eax, eax
jmp 0x40c264
cmp dword [0x412f98], 0
jne 0x40c215
xor esi, esi
mov ebx, dword [0x412f9c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40c206
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00405bd8
pop ecx
mov edi, eax
test eax, eax
jne 0x40c1fc
jmp 0x40c246
xor esi, esi
mov ebx, dword [0x412f98]
mov eax, dword [esp]
mov edi, eax
jmp 0x40c240
push eax
call fcn.00405bd8
pop ecx
test eax, eax
je 0x40c235
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40c239
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40c224
mov eax, dword [0x412f98]
test eax, eax
je 0x40c256
push eax
call fcn.00404bf0
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x412f98], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ed0
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5e5b5878
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7f3e036b
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40178f
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4100d4], 0
jne 0x40179d
call fcn.00401765
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x4017ca
test cl, 7
je 0x4017ca
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
dec esi
inc ecx
jmp 0x4017ab
cmp esi, 8
jb 0x40184e
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4100d0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
dec edi
jne 0x4017d4
xor edx, edx
test esi, esi
jbe 0x40186e
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4100d0]
inc edx
cmp edx, esi
jb 0x401855
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x40191c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004012c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x4019ae
push esi
push edi
mov edi, 0x400
push edi
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407431
lea eax, [ebp - 0x800]
push eax
call fcn.0040996b
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.00407868
test al, al
jne 0x40198a
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040996b
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x4019ae
push eax
push 0xaf
call fcn.004093fa
push eax
push 0x40e2b0
call fcn.0040a76e
add esp, 0xc
leave
ret 8
Function at 0x4036f4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x40370e
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x403721
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x403734
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.00406d9f
test eax, eax
je 0x40376d
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40376d
cmp word [eax], bx
je 0x40376d
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x403781
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40379d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40379d
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x403815
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x4037d6
push edi
call fcn.0040996b
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x418]
push eax
call fcn.004096ec
jmp 0x4037df
xor eax, eax
mov word [esi + 0x418], ax
cmp dword [ebp + 8], ebx
je 0x4037fc
push dword [ebp + 8]
call fcn.00409737
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
call fcn.004096ec
jmp 0x40380b
push 0x1000000
lea eax, [esi + 0x17]
push eax
push edi
call fcn.0040d60a
push dword [esi + 4]
mov ecx, esi
call fcn.00403543
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4038e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x403906
cmp dword [ebp + 0xc], esi
jbe 0x4038fb
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403956
mov ecx, edi
call fcn.004036ae
test al, al
je 0x40393c
cmp dword [ebp + 0xc], esi
jbe 0x40393c
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004038e0
jmp 0x403959
cmp dword [edi + 0xc], 1
jne 0x403951
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x403951
xor eax, eax
jmp 0x403959
or eax, 0xffffffff
jmp 0x403959
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x403b92
Capabilities:
Check if file exists
Get file attributes

Disassembly:
call fcn.00406d9f
test eax, eax
je 0x403bbc
mov eax, dword [esp + 8]
test eax, eax
je 0x403bbc
cmp word [eax], 0
je 0x403bbc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x403bd9
cmp dword [esp + 4], 0
je 0x403bd7
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403bd7
xor eax, eax
inc eax
jmp 0x403bd9
xor eax, eax
ret 8

Function at 0x403c38
Capabilities:
Get file attributes

Disassembly:
call fcn.00406d9f
test eax, eax
je 0x403c58
mov eax, dword [esp + 8]
test eax, eax
je 0x403c58
cmp word [eax], 0
je 0x403c58
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x403c62
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x403c65
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00406d9f
test eax, eax
je 0x403c8a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403c8a
cmp word [eax], 0
je 0x403c8a
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x403c9c
cmp dword [ebp + 8], 0
je 0x403ca3
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x403ca5
xor al, al
pop ebp
ret 0xc

Function at 0x403e13
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00406d9f
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x403e39
cmp esi, ebx
je 0x403e39
cmp word [esi], bx
je 0x403e39
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x403e48
cmp dword [ebp + 8], ebx
je 0x403e76
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x403e61
cmp byte [ebp + 0x10], bl
je 0x403e5d
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00403c65
xor eax, eax
jmp 0x403e79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403e76
cmp eax, 3
je 0x403e76
xor eax, eax
inc eax
jmp 0x403e79
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4052f2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
test eax, eax
jl 0x405324
cmp dword [ebp - 4], edi
jne 0x405365
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x405365
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x405311
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x405311
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x4053bb
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x40ec00
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x4053b2
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x4053a9
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x4059de
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x21], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.00405977
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x405a45
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp + 0x18]
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
test eax, eax
je 0x405a9b
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x1c], 0x64
jbe 0x405aa8
mov ecx, esi
call fcn.004054ed
pop edi
pop esi
pop ebx
leave
ret 0x14