joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457285
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45739d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45739d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048645e
mov esi, eax
test esi, esi
je 0x45739d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45739d
mov ecx, esi
call fcn.004571f0
cmp edi, eax
jge 0x45739d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x457323
mov dword [esp + 0x34], 1
jmp 0x45737e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45739d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004567b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x45ad00
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x45ad66
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x45ad66
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x45ad47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x45b4f0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x45b528
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x45c140
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0045c290
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x45c160
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x45c141
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0045c290
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x45c160
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x45c190
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x45c1e7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x45c1fd
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0045c220
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x45c220
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x45c2b0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x45c2f9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x45c770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x495d40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045c320
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045c3a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045c3a0
lea ecx, [esi + 0xc]
call fcn.0048499a
lea ecx, [esi + 0x10]
call fcn.0048499a
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045ebe0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045ebe0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045ebe0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00484a0f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00484a0f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x45d418
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x495f68
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x45d428
call fcn.0045d940
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x45d50b
cmp byte [edi], 0
je 0x45d50b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x45d44d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0045c140
test eax, eax
jne 0x45d46d
push 0x6c2024
lea ecx, [esi + 0x38]
call fcn.00484b98
jmp 0x45d50b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0045c190
test eax, eax
jne 0x45d49c
mov ecx, esi
call fcn.0045c290
push edi
add esi, 0x38
push 0x6c2000
push esi
call fcn.004823e2
add esp, 0xc
jmp 0x45d50b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0045e1d0
test eax, eax
je 0x45d504
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0045d5e0
test eax, eax
jne 0x45d520
push edi
lea eax, [esi + 0x38]
push 0x6c1fdc
push eax
call fcn.004823e2
add esp, 0xc
mov ecx, esi
call fcn.0045d940
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x45d5c8
mov ecx, dword [0x6c2420]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.004823e2
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0045c240
test eax, eax
jne 0x45d58a
push 0x6c1fc0
lea ecx, [esi + 0x38]
call fcn.00484b98
jmp 0x45d59a
push 0xfa
mov ecx, esi
call fcn.0045e1d0
test eax, eax
jne 0x45d5b7
mov ecx, esi
call fcn.0045d940
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00484a0f
jmp 0x45d50b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00484a0f
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x486e02
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x486e3a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00484eb6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00484e8e
jmp 0x486e46
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4884f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48853b
call fcn.0048e5df
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48853b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x488532
xor eax, eax
jmp 0x488543
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00488549
pop edi
pop esi
pop ebx
ret 4

Function at 0x48eb0f
Capabilities:
Get thread local storage value

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

Disassembly:
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x401779
shr eax, 1
xor eax, 0xedb88320
jmp 0x40177b
shr eax, 1
dec edx
jne 0x40176c
mov dword [ecx*4 + 0x4110d0], eax
mov dword [ecx*4 + 0x4130d0], eax
inc ecx
cmp ecx, 0x100
jb 0x401767
push ebx
push esi
push edi
mov ecx, 0x4114d0
mov edi, 0x101
mov eax, dword [ecx - 0x400]
push 7
mov edx, ecx
pop esi
movzx ebx, al
shr eax, 8
xor eax, dword [ebx*4 + 0x4110d0]
mov dword [edx], eax
add edx, 0x400
dec esi
jne 0x4017ad
add ecx, 4
dec edi
jne 0x4017a2
pop edi
pop esi
pop ebx
ret

Function at 0x4017cf
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4130d4], 0
jne 0x4017dd
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 0x40180a
test cl, 7
je 0x40180a
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4110d0]
dec esi
inc ecx
jmp 0x4017eb
cmp esi, 8
jb 0x40189d
mov edi, esi
shr edi, 3
push ebx
xor eax, dword [ecx]
sub esi, 8
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov edx, eax
shr edx, 0x18
mov edx, dword [edx*4 + 0x4120d0]
xor edx, dword [ebx*4 + 0x4124d0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edx, dword [ebx*4 + 0x4128d0]
movzx ebx, byte [ecx + 6]
xor edx, dword [ebx*4 + 0x4114d0]
movzx ebx, byte [ecx + 5]
xor edx, dword [ebx*4 + 0x4118d0]
movzx ebx, byte [ecx + 4]
xor edx, dword [ebx*4 + 0x411cd0]
movzx ebx, byte [ecx + 7]
xor edx, dword [ebx*4 + 0x4110d0]
movzx eax, al
xor edx, dword [eax*4 + 0x412cd0]
add ecx, 8
dec edi
mov eax, edx
jne 0x401819
pop ebx
jmp 0x40189d
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4110d0]
dec esi
inc ecx
test esi, esi
ja 0x401889
pop edi
pop esi
ret 0xc

Function at 0x40194f
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 0x4019e1
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.00407943
lea eax, [ebp - 0x800]
push eax
call fcn.00409e20
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.00407dd9
test al, al
jne 0x4019bd
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.00409e20
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x4019e1
push eax
push 0xaf
call fcn.00409968
push eax
push 0x40f2c0
call fcn.0040ac1e
add esp, 0xc
leave
ret 8
Function at 0x4037f3
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 + 0xc20], ebx
cmp byte [esi + 0x1c], bl
jne 0x403813
test byte [ebp + 0x10], 4
jne 0x403813
xor al, al
jmp 0x403815
mov al, 1
mov ecx, dword [ebp + 0x10]
shr ecx, 1
and cl, 1
movzx edi, cl
neg edi
sbb edi, edi
and edi, 0xc0000000
add edi, 0x80000000
test byte [ebp + 0x10], 1
je 0x40383c
or edi, 0x40000000
mov dword [ebp + 0x10], 1
cmp al, bl
je 0x40384e
mov dword [ebp + 0x10], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov dword [ebp - 4], eax
call fcn.004072b1
test eax, eax
je 0x403888
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x403888
cmp word [eax], bx
je 0x403888
push ebx
push dword [ebp - 4]
push 3
push ebx
push dword [ebp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x40389c
push ebx
push dword [ebp - 4]
push 3
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4038b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4038b8
mov dword [esi + 0xc20], 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 0x403930
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x4038f1
push edi
call fcn.00409e20
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x41e]
push eax
call fcn.00409ba1
jmp 0x4038fa
xor eax, eax
mov word [esi + 0x41e], ax
cmp dword [ebp + 8], ebx
je 0x403917
push dword [ebp + 8]
call fcn.00409bec
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x1d]
push eax
call fcn.00409ba1
jmp 0x403926
push 0x1000000
lea eax, [esi + 0x1d]
push eax
push edi
call fcn.0040db5a
push dword [esi + 4]
mov ecx, esi
call fcn.00403632
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403a20
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 0x403a46
cmp dword [ebp + 0xc], esi
jbe 0x403a3b
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 0x403a96
mov ecx, edi
call fcn.004037ad
test al, al
je 0x403a7c
cmp dword [ebp + 0xc], esi
jbe 0x403a7c
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00403a20
jmp 0x403a99
cmp dword [edi + 0xc], 1
jne 0x403a91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x403a91
xor eax, eax
jmp 0x403a99
or eax, 0xffffffff
jmp 0x403a99
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x403cc3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x403dd3
mov eax, dword [esi + 0xc]
test eax, eax
je 0x403cf0
dec eax
je 0x403ce5
dec eax
jne 0x403cf0
push 0xfffffffffffffff4
jmp 0x403ce7
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x403d3f
cmp dword [ebp + 0xc], edi
jbe 0x403d5a
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x403d17
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x403d5a
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x403d07
jmp 0x403d56
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x403dcd
cmp byte [esi + 0x14], 0
je 0x403dcd
cmp dword [esi + 0xc], 0
jne 0x403dcd
push 0
lea eax, [esi + 0x41e]
push eax
lea eax, [esi + 0x1d]
mov edi, 0x42efb8
push eax
mov ecx, edi
call fcn.00401ac5
test al, al
je 0x403db7
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x403cf8
test eax, eax
jbe 0x403cf8
push 0
mov ecx, esi
call fcn.0040370e
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00403c52
jmp 0x403cf8
lea eax, [esi + 0x41e]
push eax
lea eax, [esi + 0x1d]
push eax
push 0
push 0
mov ecx, edi
call fcn.00401d4a
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

Function at 0x403eab
Capabilities:
Check if file exists
Get file attributes

Disassembly:
call fcn.004072b1
test eax, eax
je 0x403ed5
mov eax, dword [esp + 8]
test eax, eax
je 0x403ed5
cmp word [eax], 0
je 0x403ed5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x403ef2
cmp dword [esp + 4], 0
je 0x403ef0
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403ef0
xor eax, eax
inc eax
jmp 0x403ef2
xor eax, eax
ret 8

Function at 0x403f51
Capabilities:
Get file attributes

Disassembly:
call fcn.004072b1
test eax, eax
je 0x403f71
mov eax, dword [esp + 8]
test eax, eax
je 0x403f71
cmp word [eax], 0
je 0x403f71
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x403f7b
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x403f7e
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.004072b1
test eax, eax
je 0x403fa3
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403fa3
cmp word [eax], 0
je 0x403fa3
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x403fb5
cmp dword [ebp + 8], 0
je 0x403fbc
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x403fbe
xor al, al
pop ebp
ret 0xc
Function at 0x404123
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.004072b1
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x404149
cmp esi, ebx
je 0x404149
cmp word [esi], bx
je 0x404149
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x404158
cmp dword [ebp + 8], ebx
je 0x404186
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x404171
cmp byte [ebp + 0x10], bl
je 0x40416d
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00403f7e
xor eax, eax
jmp 0x404189
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x404186
cmp eax, 3
je 0x404186
xor eax, eax
inc eax
jmp 0x404189
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405642
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 0x405674
cmp dword [ebp - 4], edi
jne 0x4056b5
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x4056b5
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 0x405661
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 0x405661
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x40570b
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x40fc38
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x405702
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x4056f9
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 0x405eaf
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.00405e48
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 0x405f16
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]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0xc], edi
jne 0x405f97
cmp dword [ebp + 0xc], edi
je 0x405fba
cmp dword [esi + 0x14], edi
jne 0x405fba
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x405fba
push eax
mov ecx, esi
call fcn.00405b28
mov esi, eax
cmp esi, edi
je 0x405fba
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.004099fd
jmp 0x405fba
cmp eax, edi
je 0x405fad
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 0x405fba
mov ecx, esi
call fcn.0040583d
pop edi
pop esi
pop ebx
leave
ret 0x14