joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430260
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], eax
call fcn.0042efbc
test al, al
je 0x430276
or dword [ebp - 4], 0x10
call fcn.0042dde0
test al, al
je 0x430283
or dword [ebp - 4], 1
call fcn.0042de98
test al, al
je 0x430290
or dword [ebp - 4], 2
call fcn.0042df48
test al, al
je 0x4302a0
or dword [ebp - 4], 0x80
call fcn.0042dde8
test al, al
je 0x4302ad
or dword [ebp - 4], 0x40
call fcn.0042f014
test al, al
je 0x4302ba
or dword [ebp - 4], 0x20
call fcn.0042df50
test al, al
je 0x4302ca
or dword [ebp - 4], 0x100
call fcn.0042def0
test al, al
je 0x4302da
or dword [ebp - 4], 0x200
call fcn.0042e0a4
test al, al
je 0x4302ea
or dword [ebp - 4], 0x400
call fcn.0042dfa8
test al, al
je 0x4302fa
or dword [ebp - 4], 0x800
call fcn.0042e04c
test al, al
je 0x43030a
or dword [ebp - 4], 0x1000
call fcn.0042e2cc
test al, al
je 0x43031a
or dword [ebp - 4], 0x2000
call fcn.0042e324
test al, al
je 0x43032a
or dword [ebp - 4], 0x4000
call fcn.0042e37c
test al, al
je 0x43033a
or dword [ebp - 4], 0x8000
call fcn.0042e3d4
test al, al
je 0x43034a
or dword [ebp - 4], 0x10000
call fcn.0042e42c
test al, al
je 0x43035a
or dword [ebp - 4], 0x800000
call fcn.0042e484
test al, al
je 0x43036a
or dword [ebp - 4], 0x1000000
call fcn.0042e4dc
test al, al
je 0x430377
or dword [ebp - 4], 0x20
call fcn.0042e534
test al, al
je 0x430384
or dword [ebp - 4], 0x40
call fcn.0042e58c
test al, al
je 0x430394
or dword [ebp - 4], 0x10000000
call fcn.0042e5e4
test al, al
je 0x4303a4
or dword [ebp - 4], 0x20000000
call fcn.0042e63c
test al, al
je 0x4303b4
or dword [ebp - 4], 0x40000000
call fcn.0042e694
test al, al
je 0x4303c4
or dword [ebp - 4], 0x80000000
call fcn.0042e79c
test al, al
je 0x4303d1
or dword [ebp - 4], 3
call fcn.0042e7f4
test al, al
je 0x4303de
or dword [ebp - 4], 5
call fcn.0042e6ec
test al, al
je 0x4303eb
or dword [ebp - 4], 1
call fcn.0042e744
test al, al
je 0x4303f8
or dword [ebp - 4], 2
call fcn.0042e84c
test al, al
je 0x430408
or dword [ebp - 4], 0x20000
call fcn.0042e954
test al, al
je 0x430418
or dword [ebp - 4], 0x100000
call fcn.0042e9ac
test al, al
je 0x430428
or dword [ebp - 4], 0x200000
call fcn.0042ea04
test al, al
je 0x430438
or dword [ebp - 4], 0x400000
call fcn.0042ecc4
test al, al
je 0x430448
or dword [ebp - 4], 0x40000
call fcn.0042ea5c
test al, al
je 0x430458
or dword [ebp - 4], 0x80000
call fcn.0042eab4
test al, al
je 0x430468
or dword [ebp - 4], 0x2000000
call fcn.0042eb0c
test al, al
je 0x430475
or dword [ebp - 4], 4
call fcn.0042ec14
test al, al
je 0x430482
or dword [ebp - 4], 7
call fcn.0042ec6c
test al, al
je 0x43048f
or dword [ebp - 4], 9
call fcn.0042e8a4
test al, al
je 0x43049c
or dword [ebp - 4], 8
call fcn.0042e8fc
test al, al
je 0x4304ac
or dword [ebp - 4], 0x80
call fcn.0042eb64
test al, al
je 0x4304bc
or dword [ebp - 4], 0x4000000
call fcn.0042ebbc
test al, al
je 0x4304cc
or dword [ebp - 4], 0x8000000
mov eax, dword [ebp - 4]
pop ecx
pop ebp
ret
Function at 0x448580
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x28], eax
mov eax, 0x5baa98
call fcn.0057c5c8
xor edx, edx
mov dword [ebp - 0x2c], edx
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x14], 8
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x2c], eax
call fcn.0042e0fc
test al, al
je 0x4485e7
call fcn.0042e37c
test al, al
jne 0x4485d2
call fcn.0042e42c
test al, al
je 0x4485e7
push 0xf01ff
push 0x5b6645
push dword [ebp - 0x2c]
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x30], eax
call fcn.0042e0fc
test al, al
je 0x448619
call fcn.0042e3d4
test al, al
jne 0x448602
call fcn.0042e484
test al, al
je 0x448619
push 0xf01ff
push 0x5b6653
push dword [ebp - 0x2c]
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x30], eax
jmp 0x44862e
push 0xf01ff
push 0x5b6662
push dword [ebp - 0x2c]
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x30]
call sub.advapi32.dll_QueryServiceStatus
cmp dword [ebp - 0x64], 4
jne 0x44867b
lea edx, [ebp - 0x68]
push edx
push 1
push dword [ebp - 0x30]
call sub.advapi32.dll_ControlService
test eax, eax
jne 0x44867b
push 0x10
mov ecx, 0x5b6682
mov edx, 0x5b666f
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
call fcn.0058f760
xor edx, edx
mov dword [ebp - 8], edx
lea ecx, [ebp - 0x24]
push ecx
call sub.CC3260MT.DLL___Return_unwind
pop ecx
jmp 0x4486f0
push dword [ebp - 0x30]
call sub.advapi32.dll_DeleteService
test eax, eax
je 0x4486a4
push 0x40
push 0x5b66ac
push 0x5b6687
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov edx, dword [eax]
push dword [edx + 0x30]
call sub.user32.dll_MessageBoxA
jmp 0x4486bc
push 0x10
mov ecx, 0x5b66c4
mov edx, 0x5b66b1
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
call fcn.0058f760
mov word [ebp - 0x14], 0
cmp dword [ebp - 0x30], 0
je 0x4486d0
push dword [ebp - 0x30]
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x2c], 0
je 0x4486de
push dword [ebp - 0x2c]
call sub.advapi32.dll_CloseServiceHandle
cmp word [ebp - 0x12], 0
je 0x4486e6
ret
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x70]
mov ebx, dword [ebp - 0x6c]
mov esp, ebp
pop ebp
ret
Function at 0x455804
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0xc]
mov dword [edx + 8], 0x67452301
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], 0xefcdab89
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x10], 0x98badcfe
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x14], 0x10325476
pop ebp
ret

Function at 0x456b10
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push esi
push edi
mov eax, 0x5bf260
call fcn.0057c5c8
mov word [ebp - 0x14], 8
mov edx, 0x5bf2bc
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov esi, 0x5bf044
lea edi, [ebp - 0x124]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov esi, 0x5bf144
lea edi, [ebp - 0x224]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
push 0x100
lea eax, [ebp - 0x124]
push eax
mov edx, dword [ebp + 8]
add edx, 4
push edx
call sub.CC3260MT.DLL__memcpy
add esp, 0xc
push 0x100
lea ecx, [ebp - 0x224]
push ecx
mov eax, dword [ebp + 8]
add eax, 0x104
push eax
call sub.CC3260MT.DLL__memcpy
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x204
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00456e48
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x456e48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov eax, dword [0x5bf244]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5bf248]
mov dword [ebp - 0x18], eax
mov ax, word [0x5bf24c]
mov word [ebp - 0x14], ax
xor edx, edx
mov dword [ebp - 0xc], edx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x10]
mov dl, byte [ecx + eax*4]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
lea ecx, [ecx + eax*4]
mov eax, dword [ebp - 0x10]
mov byte [ecx + eax], dl
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jl 0x456e75
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jl 0x456e70
mov dword [ebp - 4], 1
xor edx, edx
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], 0
je 0x456ed7
mov eax, dword [ebp - 4]
shl eax, 4
mov edx, dword [ebp + 0x10]
lea ecx, [edx + eax]
mov eax, dword [ebp - 0xc]
lea edx, [ecx + eax*4]
mov ecx, dword [ebp - 8]
mov al, byte [edx + ecx - 1]
jmp 0x456eeb
mov edx, dword [ebp - 4]
dec edx
shl edx, 4
mov ecx, dword [ebp + 0x10]
lea eax, [ecx + edx]
mov edx, dword [ebp - 0xc]
mov al, byte [eax + edx*4 + 3]
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x20], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jl 0x456eb6
cmp dword [ebp - 8], 0
jne 0x456f53
mov cl, byte [ebp - 0x20]
mov byte [ebp - 0x21], cl
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
inc edx
and edx, 0x80000003
jns 0x456f1d
dec edx
or edx, 0xfffffffc
inc edx
xor ecx, ecx
mov cl, byte [ebp + edx - 0x20]
mov eax, dword [ebp + 8]
mov dl, byte [eax + ecx + 4]
mov ecx, dword [ebp - 0xc]
mov byte [ebp + ecx - 0x20], dl
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jl 0x456f0c
xor eax, eax
mov al, byte [ebp - 0x21]
mov edx, dword [ebp + 8]
mov cl, byte [edx + eax + 4]
mov byte [ebp - 0x1d], cl
mov eax, dword [ebp - 4]
mov dl, byte [ebp + eax - 0x1d]
xor byte [ebp - 0x20], dl
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
dec eax
shl eax, 4
mov edx, dword [ebp + 0x10]
lea ecx, [edx + eax]
mov eax, dword [ebp - 0xc]
lea edx, [ecx + eax*4]
mov ecx, dword [ebp - 8]
mov al, byte [edx + ecx]
mov edx, dword [ebp - 0xc]
xor al, byte [ebp + edx - 0x20]
mov ecx, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ebp + 0x10]
lea ecx, [edx + ecx]
mov edx, dword [ebp - 0xc]
lea ecx, [ecx + edx*4]
mov edx, dword [ebp - 8]
mov byte [ecx + edx], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jl 0x456f58
inc dword [ebp - 8]
cmp dword [ebp - 8], 4
jl 0x456eb1
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jle 0x456eac
mov esp, ebp
pop ebp
ret
Function at 0x457028
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
lea edx, [ecx + eax*4]
mov ecx, dword [ebp - 8]
mov al, byte [edx + ecx]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
lea edx, [edx + ecx*4]
mov ecx, dword [ebp - 8]
xor byte [edx + ecx], al
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jl 0x457038
inc dword [ebp - 8]
cmp dword [ebp - 8], 4
jl 0x457033
pop ecx
pop ecx
pop ebp
ret
Function at 0x4713bc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4713c9
xor eax, eax
pop ebp
ret
xor dword [ebp + 8], 0xffffffff
cmp dword [ebp + 0x10], 8
jb 0x47150a
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [edx]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov eax, dword [ecx*4 + 0x5caf58]
mov edx, dword [ebp + 8]
shr edx, 8
xor eax, edx
mov dword [ebp + 8], eax
inc dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [ecx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov edx, dword [eax*4 + 0x5caf58]
mov ecx, dword [ebp + 8]
shr ecx, 8
xor edx, ecx
mov dword [ebp + 8], edx
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [eax]
xor edx, dword [ebp + 8]
and edx, 0xff
mov ecx, dword [edx*4 + 0x5caf58]
mov eax, dword [ebp + 8]
shr eax, 8
xor ecx, eax
mov dword [ebp + 8], ecx
inc dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [edx]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov eax, dword [ecx*4 + 0x5caf58]
mov edx, dword [ebp + 8]
shr edx, 8
xor eax, edx
mov dword [ebp + 8], eax
inc dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [ecx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov edx, dword [eax*4 + 0x5caf58]
mov ecx, dword [ebp + 8]
shr ecx, 8
xor edx, ecx
mov dword [ebp + 8], edx
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [eax]
xor edx, dword [ebp + 8]
and edx, 0xff
mov ecx, dword [edx*4 + 0x5caf58]
mov eax, dword [ebp + 8]
shr eax, 8
xor ecx, eax
mov dword [ebp + 8], ecx
inc dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [edx]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov eax, dword [ecx*4 + 0x5caf58]
mov edx, dword [ebp + 8]
shr edx, 8
xor eax, edx
mov dword [ebp + 8], eax
inc dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [ecx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov edx, dword [eax*4 + 0x5caf58]
mov ecx, dword [ebp + 8]
shr ecx, 8
xor edx, ecx
mov dword [ebp + 8], edx
inc dword [ebp + 0xc]
sub dword [ebp + 0x10], 8
cmp dword [ebp + 0x10], 8
jae 0x4713d7
cmp dword [ebp + 0x10], 0
je 0x47153a
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [eax]
xor edx, dword [ebp + 8]
and edx, 0xff
mov ecx, dword [edx*4 + 0x5caf58]
mov eax, dword [ebp + 8]
shr eax, 8
xor ecx, eax
mov dword [ebp + 8], ecx
inc dword [ebp + 0xc]
dec dword [ebp + 0x10]
jne 0x471510
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x471544
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov edx, dword [ebp + 8]
xor eax, dword [edx]
and eax, 0xff
mov ecx, dword [eax*4 + 0x5caf58]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
shr edx, 8
xor ecx, edx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
and ecx, 0xff
mov eax, dword [ebp + 8]
add dword [eax + 4], ecx
mov edx, dword [ebp + 8]
imul ecx, dword [edx + 4], 0x8088405
inc ecx
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
shr ecx, 0x18
mov eax, dword [ebp + 8]
xor ecx, dword [eax + 8]
and ecx, 0xff
mov edx, dword [ecx*4 + 0x5caf58]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor edx, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], edx
pop ebp
ret

Function at 0x472200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [ebp + 0xc]
imul dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
cmp byte [edx], 0
je 0x472248
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push dword [eax + 4]
call sub.kernel32.dll_ReadFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x47223e
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x47229a
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x1c]
add eax, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
cmp eax, dword [edx + 0x18]
jbe 0x472268
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x18]
mov edx, dword [ebp + 0x14]
sub eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
push dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x14]
mov edx, dword [ebp + 0x14]
add eax, dword [edx + 0x1c]
push eax
push dword [ebp + 8]
call sub.CC3260MT.DLL__memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
add dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4738d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4738eb
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0xffffffff
je 0x4738f5
mov eax, 0x1000000
jmp 0x4739c2
mov edx, dword [ebp + 8]
add edx, 0x140
push edx
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ecx, dword [ebp + 8]
add ecx, 0x140
push ecx
call sub.CC3260MT.DLL__strlen
pop ecx
mov edx, dword [ebp + 8]
mov al, byte [edx + eax + 0x13f]
mov byte [ebp - 1], al
movsx ecx, byte [ebp - 1]
cmp ecx, 0x5c
je 0x47394f
movsx eax, byte [ebp - 1]
cmp eax, 0x2f
je 0x47394f
push 0x5cb632
mov edx, dword [ebp + 8]
add edx, 0x140
push edx
call sub.CC3260MT.DLL__strcat
add esp, 8
cmp dword [ebp + 0x14], 1
jne 0x473980
push 1
push 0
push 0
push dword [ebp + 0xc]
call sub.kernel32.dll_SetFilePointer
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
setne cl
and ecx, 1
mov byte [ebp - 9], cl
cmp byte [ebp - 9], 0
jne 0x473980
mov eax, 0x2000000
jmp 0x4739c2
lea edx, [ebp - 0x10]
push edx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00471f50
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4739a3
mov eax, dword [ebp - 0x10]
jmp 0x4739c2
push dword [ebp - 0x14]
call fcn.00472608
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
jne 0x4739c0
mov eax, 0x200
jmp 0x4739c2
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x474120
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
cmp dword [ebp + 8], 0
je 0x474146
push dword [ebp + 8]
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x474146
push 0
push dword [ebp + 8]
call sub.kernel32.dll_CreateDirectoryA
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x474221
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
jmp 0x47417f
mov eax, dword [ebp - 8]
movsx edx, byte [eax]
cmp edx, 0x2f
je 0x474176
mov ecx, dword [ebp - 8]
movsx eax, byte [ecx]
cmp eax, 0x5c
jne 0x47417c
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
inc dword [ebp - 8]
mov ecx, dword [ebp - 8]
cmp byte [ecx], 0
jne 0x474160
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
je 0x4741d1
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
call sub.CC3260MT.DLL__memcpy
add esp, 0xc
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0xc]
mov byte [ebp + edx - 0x110], 0
lea ecx, [ebp - 0x110]
push ecx
push dword [ebp + 8]
call fcn.00474120
add esp, 8
inc dword [ebp - 0xc]
mov byte [ebp - 0x214], 0
cmp dword [ebp + 8], 0
je 0x4741f0
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call sub.CC3260MT.DLL__strcpy
add esp, 8
push dword [ebp + 0xc]
lea edx, [ebp - 0x214]
push edx
call sub.CC3260MT.DLL__strcat
add esp, 8
lea ecx, [ebp - 0x214]
push ecx
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x474221
push 0
lea eax, [ebp - 0x214]
push eax
call sub.kernel32.dll_CreateDirectoryA
mov esp, ebp
pop ebp
ret
Function at 0x4784a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor eax, eax
lea ecx, [ebp + 9]
xor dl, byte [ecx]
inc eax
inc ecx
cmp eax, 5
jl 0x4784b2
xor eax, eax
lea ecx, [ebp + 0xe]
xor dl, byte [ecx]
inc eax
inc ecx
cmp eax, 0x12
jl 0x4784c0
mov eax, edx
pop ebp
ret

Function at 0x4784d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
shl eax, 4
add eax, ebx
lea eax, [ebx + eax*8]
cmp dword [eax*2 + 0x5eb00c], 0
jne 0x4784f8
mov eax, 0xa0100002
jmp 0x4785b1
push 0x19
push 0
lea edx, [ebp - 0x20]
push edx
call sub.CC3260MT.DLL__memset
add esp, 0xc
call sub.kernel32.dll_GetTickCount
push eax
call sub.CC3260MT.DLL__srand
pop ecx
call sub.CC3260MT.DLL__rand
mov byte [ebp - 5], al
mov byte [ebp - 0x1f], 0xb
mov cl, byte [ebp - 5]
mov byte [ebp - 0x1e], cl
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 0
lea edx, [ebp - 0x20]
mov al, byte [edx + 0x18]
push eax
mov eax, 5
push dword [edx + eax*4]
dec eax
jns 0x47853e
call fcn.004784a8
mov ecx, ebx
add esp, 0x1c
shl ecx, 4
mov byte [ebp - 8], al
add ecx, ebx
lea ecx, [ebx + ecx*8]
add ecx, ecx
add ecx, 0x5eb01a
push ecx
call fcn.0047b194
pop ecx
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x20]
push edx
push ebx
call fcn.00477f30
mov ecx, ebx
add esp, 0xc
shl ecx, 4
mov dword [ebp - 4], eax
add ecx, ebx
lea ecx, [ebx + ecx*8]
add ecx, ecx
add ecx, 0x5eb01a
push ecx
call fcn.0047b1ac
pop ecx
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov edx, eax
lea eax, [ebp - 0x36]
mov bl, byte [eax]
xor bl, byte [ebp - 5]
mov byte [edx], bl
inc ecx
inc edx
inc eax
cmp ecx, 4
jl 0x47859f
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4785b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, esi
shl eax, 4
add eax, esi
lea eax, [esi + eax*8]
cmp dword [eax*2 + 0x5eb00c], 0
jne 0x4785e2
mov eax, 0xa0100002
jmp 0x478692
push 0x19
push 0
lea edx, [ebp - 0x1c]
push edx
call sub.CC3260MT.DLL__memset
add esp, 0xc
call sub.kernel32.dll_GetTickCount
push eax
call sub.CC3260MT.DLL__srand
pop ecx
call sub.CC3260MT.DLL__rand
mov byte [ebp - 0x1b], 0xc
mov ecx, eax
xor edi, edi
mov byte [ebp - 0x1a], cl
lea edx, [ebp - 0x16]
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 0
mov eax, dword [ebp + 0xc]
mov bl, byte [eax]
inc eax
xor bl, cl
inc edi
mov byte [edx], bl
inc edx
cmp edi, 4
jl 0x478620
lea edx, [ebp - 0x1c]
mov al, byte [edx + 0x18]
push eax
mov eax, 5
push dword [edx + eax*4]
dec eax
jns 0x47863a
call fcn.004784a8
mov ecx, esi
add esp, 0x1c
shl ecx, 4
mov byte [ebp - 4], al
add ecx, esi
lea ecx, [esi + ecx*8]
add ecx, ecx
add ecx, 0x5eb01a
push ecx
call fcn.0047b194
pop ecx
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x1c]
push edx
push esi
call fcn.00477f30
mov ebx, eax
mov eax, esi
shl eax, 4
add esp, 0xc
add eax, esi
lea eax, [esi + eax*8]
add eax, eax
add eax, 0x5eb01a
push eax
call fcn.0047b1ac
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47869c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
shl eax, 4
add eax, ebx
lea eax, [ebx + eax*8]
cmp dword [eax*2 + 0x5eb00c], 0
jne 0x4786c4
mov eax, 0xa0100002
jmp 0x47877d
push 0x19
push 0
lea edx, [ebp - 0x20]
push edx
call sub.CC3260MT.DLL__memset
add esp, 0xc
call sub.kernel32.dll_GetTickCount
push eax
call sub.CC3260MT.DLL__srand
pop ecx
call sub.CC3260MT.DLL__rand
mov byte [ebp - 5], al
mov byte [ebp - 0x1f], 4
mov cl, byte [ebp - 5]
mov byte [ebp - 0x1e], cl
mov al, byte [ebp - 5]
xor al, 0
mov byte [ebp - 0x1d], al
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x1b], al
lea ecx, [ebp - 0x20]
mov dl, byte [ecx + 0x18]
push edx
mov edx, 5
push dword [ecx + edx*4]
dec edx
jns 0x47870c
call fcn.004784a8
mov byte [ebp - 8], al
mov eax, ebx
shl eax, 4
add esp, 0x1c
add eax, ebx
lea eax, [ebx + eax*8]
add eax, eax
add eax, 0x5eb01a
push eax
call fcn.0047b194
pop ecx
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x20]
push ecx
push ebx
call fcn.00477f30
mov dword [ebp - 4], eax
mov eax, ebx
shl eax, 4
add esp, 0xc
add eax, ebx
lea eax, [ebx + eax*8]
add eax, eax
add eax, 0x5eb01a
push eax
call fcn.0047b1ac
pop ecx
xor ecx, ecx
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x36]
mov bl, byte [eax]
xor bl, byte [ebp - 5]
mov byte [edx], bl
inc ecx
inc edx
inc eax
cmp ecx, 8
jl 0x47876b
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x478784
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
shl eax, 4
add eax, esi
lea eax, [esi + eax*8]
cmp dword [eax*2 + 0x5eb00c], 0
jne 0x4787ad
mov eax, 0xa0100002
jmp 0x478852
call sub.kernel32.dll_GetTickCount
push eax
call sub.CC3260MT.DLL__srand
pop ecx
call sub.CC3260MT.DLL__rand
mov ebx, eax
push 0x19
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.CC3260MT.DLL__memset
mov byte [ebp - 0x1b], 0xa
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
add esp, 0xc
xor edx, edx
lea eax, [ebp - 0x16]
xor byte [eax], bl
inc edx
inc eax
cmp edx, 0x12
jl 0x4787e5
lea ecx, [ebp - 0x1c]
mov dl, byte [ecx + 0x18]
push edx
mov edx, 5
push dword [ecx + edx*4]
dec edx
jns 0x4787fa
call fcn.004784a8
mov byte [ebp - 4], al
mov eax, esi
shl eax, 4
add esp, 0x1c
add eax, esi
lea eax, [esi + eax*8]
add eax, eax
add eax, 0x5eb01a
push eax
call fcn.0047b194
pop ecx
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x1c]
push ecx
push esi
call fcn.00477f30
mov ebx, eax
mov eax, esi
shl eax, 4
add esp, 0xc
add eax, esi
lea eax, [esi + eax*8]
add eax, eax
add eax, 0x5eb01a
push eax
call fcn.0047b1ac
pop ecx
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4