joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40249e
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov al, byte [0x415564]
test al, al
mov byte [esp], dl
lea esi, [esp + 4]
je 0x4024da
xor edx, edx
mov dl, al
cmp edx, 0x20
je 0x4024ce
mov edx, 0x414125
mov eax, ebx
call fcn.0040f288
mov edx, 0x415564
mov eax, ebx
call fcn.0040f288
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.0040f0b4
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x402503
lea edx, [ebx + 1]
jmp 0x402505
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x402556
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x40252e
jmp 0x402527
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402527
mov byte [ebx + eax], 0x20
jmp 0x40252e
inc eax
cmp byte [ebx + eax], 0
jne 0x402517
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x402543
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x402555
cmp edx, 0x20
jne 0x40254c
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x40255d
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x40250c
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.00405e34
mov edi, eax
test edi, edi
je 0x402589
mov edx, str..inf
mov eax, edi
call fcn.0040f23c
test eax, eax
jne 0x402589
mov dword [esi + 0xc], str.Install
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.00406964
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x4025b1
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.00406a30
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x4025f4
cmp byte [esp + 1], 0
jne 0x4025f4
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.0040f1b4
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.0040f288
lea eax, [esp + 0x440]
xor edx, edx
call fcn.00406964
test al, al
je 0x4026dc
push esi
call fcn.00413450
test eax, eax
setne al
and eax, 1
test al, al
jne 0x40261e
and dword [esi + 4], 0xfffffbff
mov dword [esi + 0x10], ebx
push esi
call fcn.00413450
test eax, eax
setne al
and eax, 1
test al, al
je 0x4026dc
cmp byte [0x414044], 0
jne 0x402635
cmp byte [esp], 0
je 0x40268d
mov ebx, dword [0x4148b0]
test ebx, ebx
je 0x402649
push ebx
call fcn.004134f2
test eax, eax
jne 0x40264d
xor eax, eax
jmp 0x402652
mov eax, 1
mov ebx, eax
test ebx, ebx
je 0x402665
push 0
push dword [0x4148b0]
call fcn.0041356a
push 0x7d0
push dword [esi + 0x38]
call fcn.0041357c
push 0xffffffffffffffff
push dword [esi + 0x38]
call fcn.004133f0
test ebx, ebx
je 0x40268d
push 1
push dword [0x4148b0]
call fcn.0041356a
push dword [esi + 0x38]
call fcn.0041327c
test edi, edi
je 0x4026a9
mov edx, str..exe
mov eax, edi
call fcn.0040f23c
test eax, eax
je 0x4026dc
cmp byte [0x414044], 0
je 0x4026c4
cmp byte [esp], 0
jne 0x4026c4
push 0x1b58
call fcn.004133e4
jmp 0x4026dc
cmp byte [esp], 0
je 0x4026d1
mov edx, 0xc8
jmp 0x4026d6
mov edx, 0x3e8
push edx
call fcn.004133e4
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x4026e6
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffffbe0
push esp
push 0x400
call fcn.00413300
cmp byte [0x414045], 0
jne 0x40276f
mov eax, esp
call fcn.00405b5c
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.0040f260
test eax, eax
jne 0x40276f
push 0x414203
call fcn.004133b4
mov eax, esp
call fcn.0040f134
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x400]
mov ecx, 0x1e
xor edx, edx
call fcn.0040f0b4
mov dword [esp + 0x404], 3
mov word [esp + 0x410], 0x14
mov eax, esp
mov dword [esp + 0x408], eax
lea edx, [esp + 0x400]
push edx
call fcn.00413438
add esp, 0x420
ret

Function at 0x40282a
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x41405d], 0
je 0x4028a1
cmp byte [0x41596c], 0
je 0x4028a1
lea edx, [esp + 8]
mov eax, 0x41596c
call fcn.004027f9
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x4028a1
mov eax, ebx
call fcn.0040f134
inc eax
push eax
push ebx
push 1
push 0
lea edx, [esp + 0x18]
push edx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x408
pop ebx
ret

Function at 0x4028a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffff7f4
mov ebx, eax
cmp byte [0x41405d], 0
je 0x402922
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.004027f9
push esp
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402922
mov dword [esp + 4], 0x400
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0x410]
push eax
lea edx, [esp + 0x10]
push edx
push 0
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x40291a
lea edx, [esp + 0x40c]
mov eax, ebx
call fcn.0040f1b4
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x80c
pop ebx
ret

Function at 0x4029e8
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call fcn.00413330
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret

Function at 0x4029f2
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call fcn.00413330
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret
Function at 0x402b50
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
push 0
call fcn.004135a2
lea eax, [ebp - 8]
push eax
push 0x414800
push 1
push 0
push 0x414810
call fcn.00413596
test eax, eax
jl 0x402c4f
push esi
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x50]
push edi
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp dword [ebp + 0xc], 0
je 0x402bb3
push 0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
cmp dword [ebp + 8], 0
je 0x402bc5
push dword [ebp + 8]
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x40c]
mov edx, esi
call fcn.0040f1b4
lea eax, [ebp - 0x40c]
call fcn.00405f28
cmp byte [ebp - 0x40c], 0
je 0x402bf6
lea edx, [ebp - 0x40c]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
lea edx, [ebp - 0xc]
push edx
push 0x414830
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402c46
push 0x104
lea edx, [ebp - 0x614]
push edx
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0
call fcn.004133a8
push 1
lea ecx, [ebp - 0x614]
push ecx
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
test eax, eax
jl 0x402c3d
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
call fcn.004135a8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402c60
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
push esp
call fcn.00413444
lea eax, [esp + 4]
push eax
push esi
push 0
call fcn.0041344a
push ebx
push dword [esp + 8]
call fcn.00413456
push dword [esp + 4]
mov edx, dword [esp + 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x402dc4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x4148b0]
call fcn.004134b0
mov esi, eax
cmp byte [0x414019], 0
jne 0x402e20
mov eax, dword [0x415d6c]
call fcn.00404278
push 5
push esi
call fcn.0041356a
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call fcn.00413540
push 0x414099
push 0
push 0xc2
push esi
call fcn.00413540
mov byte [0x414019], 1
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call fcn.00413540
mov dword [esp], 0x3c
mov edx, esp
push edx
push 0
push 0x43a
push esi
call fcn.00413540
mov byte [esp + 0x19], 0
mov dword [esp + 4], 1
test bl, bl
je 0x402e7a
and dword [esp + 8], 0xbfffffff
or dword [esp + 8], 1
mov dword [esp + 0x14], 0xa0
or dword [esp + 4], 0x40000000
mov ecx, esp
push ecx
push 1
push 0x444
push esi
call fcn.00413540
push edi
push 0
push 0xc2
push esi
call fcn.00413540
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call fcn.00413540
test bl, bl
je 0x402ece
or dword [esp + 8], 0x40000000
and dword [esp + 8], 0xfffffffe
mov eax, esp
push eax
push 1
push 0x444
push esi
call fcn.00413540
push 0x4140c0
push 0
push 0xc2
push esi
call fcn.00413540
add esp, 0x3c
pop edi
pop esi
pop ebx
ret
Function at 0x4037a0
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x41a4ac
push ebx
mov ebx, 0x415564
push esi
call fcn.0040f98c
call fcn.004132fa
mov esi, eax
test esi, esi
je 0x4037da
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x4037da
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040f144
mov esi, eax
test esi, esi
je 0x40388a
mov edx, 0x414108
mov eax, esi
call fcn.0040f188
mov esi, eax
test eax, eax
je 0x4037fd
mov eax, ebx
mov edx, esi
call fcn.0040f1b4
mov byte [ebp - 1], 0
xor eax, eax
xor esi, esi
jmp 0x40387a
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
je 0x403814
mov byte [ebp - 1], 1
cmp ecx, 0x22
jne 0x40381a
inc esi
test esi, 1
jne 0x403879
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
jne 0x40383b
test eax, eax
je 0x403845
xor edx, edx
mov dl, byte [ebx + eax - 1]
cmp edx, 0x20
je 0x403845
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x2f
jne 0x403879
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x403855
cmp edx, 0x53
jne 0x403879
mov dl, byte [ebx + eax + 2]
test dl, dl
je 0x403866
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
jne 0x403879
mov dword [0x414058], 1
mov byte [0x41405c], 1
jmp 0x403881
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x403807
cmp byte [ebp - 1], 0
jne 0x40388a
mov byte [ebx], 0
push 0x400
push 0x415164
push 0
call fcn.00413336
push 0x415164
push str.sfxname
call fcn.004133c0
push 0
call fcn.0041333c
mov ebx, eax
mov dword [0x41a4a4], eax
push 0x64
push ebx
call fcn.00413504
mov dword [0x415964], eax
push 0x65
push dword [0x41a4a4]
call fcn.004134f8
mov dword [0x415968], eax
lea eax, [ebp - 0xc]
call fcn.00405540
mov edx, 0x415164
mov eax, 0x41a490
call fcn.00404b80
lea eax, [ebp - 0x24]
call fcn.004040e8
lea eax, [ebp - 0x3c]
call fcn.004040e8
push 0
push 0x401183
lea edx, [ebp - 0x24]
push 0
mov dword [0x415d6c], edx
lea ecx, [ebp - 0x3c]
push str.STARTDLG
push ebx
mov dword [0x415d70], ecx
call fcn.00413486
xor eax, eax
mov dword [0x4148b0], eax
xor edx, edx
mov dword [0x415d70], edx
mov dword [0x415d6c], edx
cmp dword [0x4148b8], 0
jne 0x40395d
cmp dword [0x4148c4], 0
jne 0x40395d
mov ecx, 4
mov edx, dword [0x414048]
xor eax, eax
call fcn.004018d1
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0040410c
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0040410c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004055b4
cmp byte [0x414044], 0
je 0x403992
call fcn.004026e6
mov eax, 0x4150d4
mov ecx, 0x80
xor edx, edx
call fcn.0040f0b4
cmp dword [0x414054], 0
jle 0x4039b6
mov eax, dword [0x414048]
call fcn.0040f038
push dword [0x415964]
call fcn.00413424
mov eax, dword [0x415968]
test eax, eax
je 0x4039d0
push eax
call fcn.00413424
cmp dword [0x41a484], 0
jne 0x4039f1
cmp dword [0x4148b8], 0
je 0x4039f1
mov eax, 0x41a484
mov edx, 0xff
call fcn.0040c500
mov dword [0x4148b8], 2
push dword [0x41a484]
call fcn.004132b2
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403a10
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov dword [0x4148c8], 1
mov ebx, dword [0x4148b0]
test ebx, ebx
je 0x403a38
mov eax, 0x7d
call fcn.00402930
push eax
push 1
push ebx
call fcn.00413546
xor edx, edx
mov dword [0x4148cc], edx
mov dword [0x4148d0], 1
mov eax, dword [0x4148b0]
test eax, eax
je 0x403a91
push 1
push eax
call fcn.0041356a
cmp dword [0x414054], 0
jne 0x403a88
cmp byte [0x414019], 0
jne 0x403a88
push 0
push 1
push 0x111
push dword [0x4148b0]
call fcn.00413540
jmp 0x403a88
call fcn.004029ac
cmp dword [0x4148b8], 2
jne 0x403a83
cmp byte [0x414044], 0
je 0x403a9f
call fcn.004026e6
pop ebx
ret

Function at 0x404134
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
push esi
push edi
cmp byte [ebx + 0x14], 0
mov edi, edx
mov esi, ecx
jne 0x404159
push 0
call fcn.004135a2
call fcn.00413410
mov byte [ebx + 0x14], 1
mov byte [ebx + 0x15], 0
push 0
push esi
call fcn.0041356a
mov edx, edi
mov eax, ebx
call fcn.00404290
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebx + 0x10], ecx
push eax
push esi
call fcn.004134e0
push 2
lea edx, [ebp - 0x10]
push edx
push esi
call fcn.004134c2
push eax
push 0
call fcn.00413510
mov eax, dword [ebx + 4]
test eax, eax
je 0x40419f
push eax
call fcn.00413480
push ebx
push dword [ebx]
push 0
push esi
call fcn.004134c2
push eax
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
add ecx, 0xfffffffe
push ecx
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call fcn.0041346e
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
je 0x4041f0
push 5
push edi
call fcn.0041356a
push dword [ebx + 4]
call fcn.00413576
cmp byte [ebx + 0x15], 0
jne 0x40426d
mov eax, dword [ebx + 4]
test eax, eax
je 0x404208
push eax
call fcn.00413480
xor edx, edx
mov dword [ebx + 4], edx
push 5
push esi
call fcn.0041356a
mov eax, dword [ebp + 8]
call fcn.0040f134
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.0040f024
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.0040f1b4
mov edx, edi
mov eax, ebx
call fcn.004048cc
test al, al
jne 0x404249
mov edx, edi
mov eax, ebx
call fcn.00404904
mov edx, edi
mov eax, ebx
call fcn.00404744
mov ebx, eax
mov eax, edi
call fcn.0040f038
test ebx, ebx
je 0x40426d
push ebx
push esi
call fcn.00413564
mov eax, ebx
call fcn.0040f038
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404484
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], edx
call fcn.00413360
mov ebx, eax
jmp 0x4044ea
call fcn.00413360
sub eax, ebx
cmp eax, 0x2710
ja 0x4044fb
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call fcn.00413528
test eax, eax
je 0x4044ea
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
call fcn.004134bc
lea ecx, [esp + 8]
push ecx
call fcn.00413570
lea eax, [esp + 8]
push eax
call fcn.0041348c
push esp
push esi
mov edx, dword [esi]
call dword [edx + 0x48]
test eax, eax
jl 0x4044a2
cmp dword [esp], 0
je 0x4044a2
xor ebx, ebx
cmp dword [esp], 0
je 0x404545
lea eax, [esp + 4]
push eax
push 0x414840
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x404545
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x40453b
push edi
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
setge bl
and ebx, 1
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, ebx
add esp, 0x24
pop edi
pop esi
pop ebx
ret
Function at 0x405050
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7ac
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov esi, edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.0040524c
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.004134e0
lea edx, [ebp - 0x44]
push edx
push esi
call fcn.004134aa
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
inc ecx
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc eax
sub eax, dword [ebp - 0x38]
test bl, bl
mov dword [ebp - 0x18], eax
je 0x4050e7
cmp byte [ebp + 8], 0
jne 0x4050e7
mov eax, dword [ebp - 0x3c]
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x38]
imul dword [ebp - 0x10]
cdq
mov edi, 0x64
idiv edi
add ecx, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push 0x206
push eax
push ecx
push 0
push 0
push 0
push esi
call fcn.0041355e
cmp byte [ebp + 8], 0
jne 0x405125
push 0x400
lea eax, [ebp - 0x444]
push eax
push esi
call fcn.004134e6
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x444]
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 4]
call fcn.00404ed4
lea edx, [ebp - 0x444]
push edx
push esi
call fcn.00413564
push 8
call fcn.004134ce
sub dword [ebp - 0x18], eax
push 5
push esi
call fcn.004134d4
mov edi, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
jmp 0x405233
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call fcn.004134e6
cmp byte [ebp - 0x844], 0
je 0x405184
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.00404ed4
lea edx, [ebp - 0x844]
push edx
push edi
call fcn.00413564
test bl, bl
je 0x405223
lea ecx, [ebp - 0x854]
push ecx
push edi
call fcn.004134e0
mov eax, dword [ebp - 0x854]
sub eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x4051ac
adc edx, 0
sub eax, edx
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x18]
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x84c]
sub eax, dword [ebp - 0x854]
inc eax
imul dword [ebp - 0xc]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x848]
sub eax, dword [ebp - 0x850]
inc eax
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
push 0x204
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push ecx
push 0
push edi
call fcn.0041355e
push 2
push edi
call fcn.004134d4
mov edi, eax
cmp edi, dword [ebp - 0x1c]
je 0x405243
inc esi
test edi, edi
je 0x405243
cmp esi, 0x200
jl 0x405143
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40541c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ac
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
lea ebx, [ebp - 0x254]
test edi, edi
je 0x405463
mov edx, edi
mov eax, ebx
call fcn.0040f1b4
mov eax, ebx
call fcn.0040f134
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.0040f1b4
mov eax, ebx
call fcn.0040f134
inc eax
add ebx, eax
mov eax, 0x85
call fcn.00402930
mov edx, eax
mov eax, ebx
call fcn.0040f1b4
mov eax, ebx
call fcn.0040f134
inc eax
add ebx, eax
mov edx, 0x41456c
mov eax, ebx
call fcn.0040f1b4
mov eax, ebx
call fcn.0040f134
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.0040f0b4
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x41a4a4]
mov dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x400
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, esi
call fcn.00405b5c
cmp esi, eax
jne 0x4054fc
lea edx, [ebp - 0x654]
push edx
push 0x400
call fcn.00413300
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x1080c
lea eax, [ebp - 0x54]
push eax
call fcn.0041341e
mov ebx, eax
test ebx, ebx
jne 0x40552c
call fcn.00413418
cmp eax, 0x3002
jne 0x40552c
mov byte [esi], 0
lea eax, [ebp - 0x54]
push eax
call fcn.0041341e
mov ebx, eax
test ebx, ebx
setne al
and eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406634
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.004052f0
test eax, eax
je 0x40665a
test ebx, ebx
je 0x40665a
cmp word [ebx], 0
je 0x40665a
push 0
push ebx
call fcn.0041328e
jmp 0x406662
push 0
push esi
call fcn.00413288
test eax, eax
je 0x406675
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.004069f0
xor eax, eax
jmp 0x406690
call fcn.0041332a
cmp eax, 2
je 0x406684
cmp eax, 3
jne 0x40668b
mov eax, 2
jmp 0x406690
mov eax, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004052f0
test eax, eax
je 0x40698f
test ebx, ebx
je 0x40698f
cmp word [ebx], 0
je 0x40698f
push ebx
call fcn.00413318
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call fcn.00413312
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x4069c4
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004052f0
test eax, eax
je 0x4069e6
test ebx, ebx
je 0x4069e6
cmp word [ebx], 0
je 0x4069e6
push ebx
call fcn.00413318
pop esi
pop ebx
ret
push esi
call fcn.00413312
pop esi
pop ebx
ret

Function at 0x4069f0
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.004052f0
test eax, eax
je 0x406a1d
test ebx, ebx
je 0x406a1d
cmp word [ebx], 0
je 0x406a1d
push esi
push ebx
call fcn.004133cc
test eax, eax
setne al
and eax, 1
jmp 0x406a2c
push esi
push edi
call fcn.004133c6
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4086d8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x41617c
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x4086f2
call fcn.004086a0
mov eax, ebp
jmp 0x40870a
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x408712
test al, 7
jne 0x4086f6
cmp esi, 8
jb 0x40879b
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x40871b
xor edx, edx
jmp 0x4087b5
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp esi, edx
ja 0x40879f
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret