joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov esi, esp
mov dword [esi + 8], ebp
lea eax, [ebp + 8]
mov edx, esp
mov dword [esi + 0x7c], edx
mov dword [esi + 0x88], 0xffffffff
lea edx, [esi + 0x80]
mov dword [esi + 0x84], 0x406640
mov edi, dword fs:[0]
mov dword [esi + 0x80], edi
mov dword fs:[0], edx
mov edx, eax
add edx, 0x1c
mov dword [esi + 0x10], edx
add eax, 0x3c
mov dword [esi + 0x14], eax
mov dword [esi + 0x78], ecx
mov dword [esi + 0x74], 0x40d1c780
mov dword [esi + 0x70], 0
mov dword [esi + 0x6c], 0x40d179c0
mov dword [esi + 0x68], 0
mov dword [esi + 0x88], 1
mov eax, esp
mov dword [eax], 0x4163e8
lea ecx, [esi + 0x50]
call fcn.004067e0
sub esp, 4
jmp 0x401099
mov byte [esi + 0x4f], 0
mov dword [esi + 0x88], 2
mov eax, esp
mov dword [eax], 0x4163e8
lea ecx, [esi + 0x34]
call fcn.004067e0
sub esp, 4
jmp 0x4010bf
mov dword [esi + 0x88], 3
mov eax, esp
mov dword [eax], 0x4163e8
lea ecx, [esi + 0x1c]
call fcn.004067e0
sub esp, 4
jmp 0x4010e1
lea ecx, [esi + 0x1c]
lea eax, [esi + 0x34]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004068a0
mov byte [esi + 0xf], al
lea ecx, [esi + 0x1c]
call fcn.004068d0
lea ecx, [esi + 0x34]
call fcn.004068d0
mov al, byte [esi + 0xf]
test al, 1
jne 0x401116
jmp 0x40113a
mov dword [esi + 0x18], 0x62
cmp dword [esi + 0x18], 0
jle 0x401135
mov eax, dword [esi + 0x18]
add eax, 0xffffffff
mov dword [esi + 0x18], eax
jmp 0x40111d
jmp 0x40113a
lea ecx, [esi + 0x50]
call fcn.004068d0
mov ecx, dword [esi + 0x10]
call fcn.004068d0
mov ecx, dword [esi + 0x14]
call fcn.004068d0
mov eax, dword [esi + 0x80]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x68

Function at 0x401710
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, esp
mov dword [esi + 4], ebp
lea eax, [ebp + 8]
mov dword [esi + 8], eax
mov edx, esp
mov dword [esi + 0x3c], edx
mov dword [esi + 0x48], 0xffffffff
lea edx, [esi + 0x40]
mov dword [esi + 0x44], 0x4066a0
mov edi, dword fs:[0]
mov dword [esi + 0x40], edi
mov dword fs:[0], edx
mov edx, dword [eax]
mov dword [esi + 0xc], edx
mov edx, eax
add edx, 0x18
mov dword [esi + 0x10], edx
add eax, 0x34
mov dword [esi + 0x14], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x34], 0x620
mov dword [esi + 0x30], 0x82a
mov dword [esi + 0x2c], 0x31
mov byte [esi + 0x2b], 1
vmovsd xmm0, qword [0x416180]
vmovsd qword [esi + 0x20], xmm0
mov byte [esi + 0x1f], 1
mov dword [esi + 0x18], 0x4d
cmp dword [esi + 0x18], 0
jle 0x4017ad
mov eax, dword [esi + 0x18]
add eax, 0xffffffff
mov dword [esi + 0x18], eax
jmp 0x401795
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x48], 1
mov eax, esp
mov dword [eax], str.fxuecgbcmxr
call fcn.004067e0
sub esp, 4
jmp 0x4017cc
mov ecx, dword [esi + 0x10]
call fcn.004068d0
mov ecx, dword [esi + 0x14]
call fcn.004068d0
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov ecx, dword [esi + 0x40]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x4c
Function at 0x403c40
Capabilities:
Authenticate hmac
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ebx, 0x44
and edi, 0x8a
imul ebx
rcl edi, 0x3f
rcr edx, 0x8c
imul esi
sub esi, 0x88
ror edi, 0xef
bswap edi
or ebx, 0x44
dec esi
rcr ebx, 0xc1
or eax, 0x6a
and eax, 0x2a
imul edi
bswap edi
rcl eax, 0
dec ebx
ror esi, 0xca
sbb edx, 0xc
dec ebx
rcl esi, 0xd1
and eax, 0x1b
ror edi, 0xfc
or eax, 0x87
rcr eax, 0xc
sbb edx, 0xfb
and edi, 0xcf
sub eax, 0xe
sbb ebx, 0x4e
add ebx, 0xfc
imul edi
inc ebx
rcl edi, 0x48
mov edx, 0x53
rcl ebx, 0xb
add ebx, 0x6a
inc eax
sub edx, 0x97
mov edx, 0xd3
neg edx
imul esi
neg edi
sbb edi, 0xf1
rol edx, 0xb
sbb edx, 0x57
rol esi, 0x20
mov ebx, 7
bswap edx
bswap edx
xor ecx, ecx
xor edi, edi
neg eax
dec esi
rcr eax, 0x6c
imul esi
ror edi, 0xde
add esi, 0x23
rol edi, 0xb
neg eax
dec edx
add eax, 0x5c
add eax, 0x57
imul ebx
rcl esi, 0x44
rol eax, 0xe6
dec ebx
dec edi
sub esi, 4
rol eax, 0x3d
rcl eax, 0xf0
neg ebx
imul edx
inc edx
and edi, 0xc5
neg ebx
rcl ebx, 0xe9
rcl ebx, 0x36
neg ebx
or edx, 0x72
sub ebx, 0x4d
ror esi, 0x27
neg edx
add edi, 0xfa
bswap edx
imul edx
not eax
or ebx, 0x92
dec ebx
sbb ebx, 0x7b
dec eax
inc esi
sbb edx, 0xe
dec edi
dec ebx
or edi, 0x39
neg esi
inc edi
neg eax
dec esi
ror ebx, 0x18
not edi
mov ecx, dword [ebp + 0xc]
sub ebx, 0xc8
sbb edx, 0x5a
inc edi
imul edx
rcl esi, 0x71
dec edi
rcr ebx, 0x8a
ror eax, 0x35
inc edx
bswap edi
dec ebx
sbb ebx, 0xa6
dec eax
rol eax, 0x66
neg eax
bswap edi
sub edi, 0xb0
imul esi
rol eax, 0xef
dec eax
rcl eax, 0x49
rcr eax, 1
dec edi
inc eax
dec eax
not eax
ror eax, 0xce
not eax
inc eax
rcl esi, 0xae
sub edx, 9
rcr edi, 7
mov edx, 0xd9
rcl esi, 0x89
dec esi
imul esi
mov esi, 0x42
neg ebx
dec edi
not esi
not eax
sbb edi, 0xaa
and edi, 0x3d
not ebx
add edi, 0xb1
rcl edi, 0xf4
or esi, 0xfc
dec esi
dec eax
mov eax, 0x81
mov edi, dword [ebp + 8]
xor esi, eax
mov eax, eax
xor esi, eax
mov esi, ebx
mov eax, eax
mov esi, esi
xor eax, eax
mov ebx, esi
xor esi, ebx
mov esi, ebx
mov esi, esi
mov eax, ebx
not byte [edi]
mov esi, esi
xor eax, eax
mov ebx, esi
mov esi, ebx
mov esi, esi
xor ebx, ebx
xor esi, esi
xor ebx, esi
mov ebx, ebx
add byte [edi], 0x26
xor esi, ebx
mov ebx, esi
xor eax, esi
xor esi, eax
xor esi, ebx
mov ebx, eax
xor esi, esi
mov eax, eax
mov ebx, eax
sub byte [edi], 0x87
xor eax, ebx
xor ebx, esi
xor ebx, esi
xor ebx, eax
mov ebx, eax
mov eax, eax
mov esi, esi
xor esi, ebx
xor esi, esi
imul byte [edi]
inc edi
loop 0x403df9
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407fe8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408027
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408027
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408027
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408027
cmp dword [ecx + 0x74], 0xe
jbe 0x408027
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40f418
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40f4b5
push ebx
push esi
call fcn.0040f3e1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040f375
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40f462
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40f4b4
push edi
push eax
call fcn.0040dd7b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40f482
call fcn.0040ddc9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40f4b3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040f375
add esp, 0x20
test eax, eax
jne 0x40f4a1
push edi
call fcn.0040ddc9
jmp 0x40f4a9
push ebx
call fcn.0040ddc9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4106c4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4640d0
push 0x4640c8
push str.FlsAlloc
push 0x1f
call fcn.00410583
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4106f8
push dword [ebp + 8]
mov ecx, esi
call dword [0x41612c]
call esi
jmp 0x4106fe
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x410742
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4640e0
push 0x4640d8
push str.FlsGetValue
push 0x21
call fcn.00410583
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410779
push dword [ebp + 8]
mov ecx, esi
call dword [0x41612c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x410781
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4640e8
push 0x4640e0
push str.FlsSetValue
push 0x22
call fcn.00410583
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4107bb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41612c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x402e59
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4151c4], 0
jne 0x402e67
call fcn.00402e2f
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402e94
test cl, 7
je 0x402e94
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
dec esi
inc ecx
jmp 0x402e75
cmp esi, 8
jb 0x402f18
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4151c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
dec edi
jne 0x402e9e
xor edx, edx
test esi, esi
jbe 0x402f38
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4151c0]
inc edx
cmp edx, esi
jb 0x402f1f
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x403406
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00401200
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x403498
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.00407baa
lea eax, [ebp - 0x800]
push eax
call fcn.0040b09e
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.004083e6
test al, al
jne 0x403474
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040b09e
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x403498
push eax
push 0xaf
call fcn.0040a3da
push eax
push 0x413300
call fcn.0040bf41
add esp, 0xc
leave
ret 8
Function at 0x4050d5
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x30c0]
call fcn.004038fe
xor edi, edi
push edi
lea eax, [ebp - 0x30c0]
push eax
push dword [ebp + 8]
push edi
call fcn.004066ae
test al, al
je 0x40527a
cmp word [ebp - 0x2440], di
je 0x40527a
lea eax, [ebp - 0x2440]
push eax
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407cae
push eax
call fcn.0040f209
test eax, eax
je 0x40527a
lea eax, [ebp - 0x2440]
push eax
push dword [ebp + 8]
call fcn.00407cae
push eax
call fcn.0040f209
test eax, eax
jne 0x40527a
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x4051cb
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040ea19
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.00407cae
push eax
call fcn.0040b2dc
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00405dea
test al, al
je 0x4051b3
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x405164
cmp word [ebp - 0x800], di
je 0x40527a
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040ea19
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407cae
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.00407cae
push eax
call fcn.0040b0c8
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x40527a
lea ecx, [ebp - 0x1c20]
call fcn.004054e6
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00405dea
test al, al
jne 0x405241
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c20]
push edi
call fcn.00405833
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x40526b
lea ecx, [ebp - 0x1c20]
call fcn.00405551
lea ecx, [ebp - 0x1c20]
call fcn.004055d6
lea ecx, [ebp - 0x1c20]
call fcn.004056cb
mov al, 1
jmp 0x40527c
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4056ee
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 0x405708
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x40571b
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x40572e
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.0040750b
test eax, eax
je 0x405767
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x405767
cmp word [eax], bx
je 0x405767
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 0x40577b
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 0x405797
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405797
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 0x4057f9
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x4057c5
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.0040b0c8
jmp 0x4057ce
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x4057e1
push dword [ebp + 8]
push eax
call fcn.0040af5d
jmp 0x4057ef
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040eff6
push dword [esi + 4]
mov ecx, esi
call fcn.0040552a
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x405930
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 0x405956
cmp dword [ebp + 0xc], esi
jbe 0x40594b
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 0x4059a6
mov ecx, edi
call fcn.004056a8
test al, al
je 0x40598c
cmp dword [ebp + 0xc], esi
jbe 0x40598c
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00405930
jmp 0x4059a9
cmp dword [edi + 0xc], 1
jne 0x4059a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4059a1
xor eax, eax
jmp 0x4059a9
or eax, 0xffffffff
jmp 0x4059a9
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405bea
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405cfa
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405c17
dec eax
je 0x405c0c
dec eax
jne 0x405c17
push 0xfffffffffffffff4
jmp 0x405c0e
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 0x405c66
cmp dword [ebp + 0xc], edi
jbe 0x405c81
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x405c3e
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 0x405c81
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x405c2e
jmp 0x405c7d
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 0x405cf4
cmp byte [esi + 0x14], 0
je 0x405cf4
cmp dword [esi + 0xc], 0
jne 0x405cf4
push 0
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
mov edi, 0x415e7c
push eax
mov ecx, edi
call fcn.0040357b
test al, al
je 0x405cde
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x405c1f
test eax, eax
jbe 0x405c1f
push 0
mov ecx, esi
call fcn.00405606
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00405b4b
jmp 0x405c1f
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
push eax
push 0
push 0
mov ecx, edi
call fcn.00403805
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

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

Disassembly:
call fcn.0040750b
test eax, eax
je 0x405e14
mov eax, dword [esp + 8]
test eax, eax
je 0x405e14
cmp word [eax], 0
je 0x405e14
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x405e31
cmp dword [esp + 4], 0
je 0x405e2f
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405e2f
xor eax, eax
inc eax
jmp 0x405e31
xor eax, eax
ret 8

Function at 0x405e5f
Capabilities:
Get file attributes

Disassembly:
call fcn.0040750b
test eax, eax
je 0x405e7f
mov eax, dword [esp + 8]
test eax, eax
je 0x405e7f
cmp word [eax], 0
je 0x405e7f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x405e89
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x405e8c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.0040750b
test eax, eax
je 0x405eb1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405eb1
cmp word [eax], 0
je 0x405eb1
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x405ec3
cmp dword [ebp + 8], 0
je 0x405eca
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x405ecc
xor al, al
pop ebp
ret 0xc
Function at 0x405f02
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.0040750b
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x405f28
cmp esi, ebx
je 0x405f28
cmp word [esi], bx
je 0x405f28
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x405f37
cmp dword [ebp + 8], ebx
je 0x405f65
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x405f50
cmp byte [ebp + 0x10], bl
je 0x405f4c
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00405e8c
xor eax, eax
jmp 0x405f68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405f65
cmp eax, 3
je 0x405f65
xor eax, eax
inc eax
jmp 0x405f68
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4073b8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x14], 0
push edi
jne 0x4073db
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov byte [esi + 0x14], 1
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 0xc]
mov byte [esi + 0x15], 0
call ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00407351
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call edi
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x407431
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
push dword [esi]
push 0
push dword [ebp + 0xc]
call edi
mov ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
xor edi, edi
push eax
mov eax, dword [ebp - 0x10]
sub ecx, eax
dec ecx
dec ecx
push ecx
push dword [ebp - 0xc]
inc eax
push eax
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp eax, edi
je 0x40747c
push 5
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esi + 0x15], 0
je 0x407491
cmp dword [esi + 0x18], 0x64
jbe 0x407504
mov ecx, esi
call fcn.00406d46
jmp 0x407504
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4074a2
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], edi
push 5
push dword [ebp + 0xc]
call ebx
push dword [ebp + 0x10]
call fcn.0040b09e
imul eax, eax, 0xc
add eax, 0x200
push eax
call fcn.0040acd2
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.0040b0c8
push ebx
mov ecx, esi
call fcn.00406c22
test al, al
jne 0x4074e0
push ebx
mov ecx, esi
call fcn.00406c58
mov ebx, eax
push ebx
mov ecx, esi
call fcn.00407049
push ebx
mov esi, eax
call fcn.0040aceb
cmp esi, edi
je 0x407504
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0040aceb
pop edi
pop esi
pop ebx
leave
ret 0xc