joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c060
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43a8fb
push eax
mov dword fs:[0], esp
mov eax, dword [ecx + 4]
sub esp, 0x84
cmp eax, 0xffffffff
push edi
je 0x41c10e
lea ecx, [esp + 4]
xor edi, edi
push ecx
push eax
mov dword [esp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x41c0fe
push esi
mov esi, dword [esp + 0x9c]
cmp esi, edi
je 0x41c0f5
lea ecx, [esp + 0xc]
call fcn.00405600
lea ecx, [esp + 0xc]
mov dword [esp + 0x94], edi
call fcn.00406650
mov edi, dword [esi]
lea ecx, [esp + 0xc]
call fcn.00404320
push eax
mov ecx, esi
call dword [edi + 0x14]
mov edx, dword [esi]
push str.Failed_to_get_file_size__64_
mov ecx, esi
call dword [edx + 0x14]
lea ecx, [esp + 0xc]
mov dword [esp + 0x94], 0xffffffff
call fcn.004056c0
or eax, 0xffffffff
or edx, 0xffffffff
pop esi
jmp 0x41c12c
mov ecx, dword [esp + 4]
push ecx
push eax
call fcn.0040f9b0
add esp, 8
jmp 0x41c12c
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x41c126
push ecx
call fcn.0041b860
push eax
call fcn.00430b2b
add esp, 8
jmp 0x41c12c
or eax, 0xffffffff
or edx, 0xffffffff
mov ecx, dword [esp + 0x88]
pop edi
mov dword fs:[0], ecx
add esp, 0x90
ret 4

Function at 0x41c4c0
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
ret
Function at 0x41e9f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov edx, 1
cmp dword [esi + 0x48], edx
jle 0x41eafb
push ebx
push edi
lea eax, [esi + 0x5e]
xor ebx, ebx
xor ecx, ecx
mov bl, byte [eax - 1]
mov cl, byte [eax + 1]
add eax, 0x10
mov edi, dword [ebx*4 + 0x449fd4]
mov ecx, dword [ecx*4 + 0x44a7d4]
xor ebx, ebx
xor ecx, edi
mov bl, byte [eax - 0x10]
mov edi, dword [ebx*4 + 0x44a3d4]
xor ebx, ebx
mov bl, byte [eax - 0x12]
xor ecx, edi
mov edi, dword [ebx*4 + 0x449bd4]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0x12], ecx
mov bl, byte [eax - 0xc]
xor ecx, ecx
mov cl, byte [eax - 0xb]
mov edi, dword [ebx*4 + 0x44a3d4]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44a7d4]
mov bl, byte [eax - 0xd]
xor ecx, edi
mov edi, dword [ebx*4 + 0x449fd4]
xor ebx, ebx
mov bl, byte [eax - 0xe]
xor ecx, edi
mov edi, dword [ebx*4 + 0x449bd4]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xe], ecx
mov bl, byte [eax - 8]
xor ecx, ecx
mov cl, byte [eax - 7]
mov edi, dword [ebx*4 + 0x44a3d4]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44a7d4]
mov bl, byte [eax - 9]
xor ecx, edi
mov edi, dword [ebx*4 + 0x449fd4]
xor ebx, ebx
mov bl, byte [eax - 0xa]
xor ecx, edi
mov edi, dword [ebx*4 + 0x449bd4]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xa], ecx
mov bl, byte [eax - 4]
xor ecx, ecx
mov cl, byte [eax - 3]
mov edi, dword [ebx*4 + 0x44a3d4]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44a7d4]
mov bl, byte [eax - 5]
xor ecx, edi
mov edi, dword [ebx*4 + 0x449fd4]
xor ebx, ebx
mov bl, byte [eax - 6]
xor ecx, edi
mov edi, dword [ebx*4 + 0x449bd4]
xor ecx, edi
inc edx
mov dword [eax - 6], ecx
mov ecx, dword [esi + 0x48]
cmp edx, ecx
jl 0x41ea06
pop edi
pop ebx
pop esi
ret
Function at 0x428da0
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ecx
mov al, byte [0x45a038]
test al, al
jne 0x428ea7
mov al, byte [0x45a039]
test al, al
jne 0x428e9d
mov eax, dword [0x45a03c]
test eax, eax
jne 0x428ea7
push ebp
push esi
push edi
push 0x400
mov byte [0x45a039], 1
call fcn.0042f7ff
add esp, 4
mov dword [esp + 0xc], eax
xor ebp, ebp
mov esi, eax
mov eax, ebp
xor edx, edx
mov ecx, 7
test al, 1
je 0x428dfd
mov edi, 1
shl edi, cl
or edx, edi
shr eax, 1
dec ecx
cmp ecx, 0xffffffff
jg 0x428df0
shl edx, 0x18
mov dword [esi], edx
mov edi, 8
mov edx, dword [esi]
mov ecx, edx
and ecx, 0x80000000
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
dec edi
mov dword [esi], ecx
jne 0x428e0f
mov edx, ecx
xor eax, eax
mov ecx, 0x1f
test dl, 1
je 0x428e44
mov edi, 1
shl edi, cl
or eax, edi
shr edx, 1
dec ecx
cmp ecx, 0xffffffff
jg 0x428e36
mov dword [esi], eax
inc ebp
add esi, 4
cmp ebp, 0xff
jbe 0x428de7
mov eax, dword [0x45a03c]
pop edi
pop esi
pop ebp
test eax, eax
jne 0x428e80
mov ecx, dword [esp]
mov byte [0x45a038], 1
mov dword [0x45a03c], ecx
mov byte [0x45a039], 0
pop ecx
ret
mov edx, dword [esp]
push edx
call fcn.0042f346
add esp, 4
mov byte [0x45a038], 1
mov byte [0x45a039], 0
pop ecx
ret
push 1
call fcn.0041b5f0
add esp, 4
pop ecx
ret
Function at 0x429150
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x400
push esi
mov esi, dword [esp + 0x40c]
test esi, esi
jne 0x42916c
xor eax, eax
pop esi
add esp, 0x400
ret
push ebx
push ebp
push edi
call fcn.00428da0
mov ebp, dword [esp + 0x41c]
or edx, 0xffffffff
test ebp, ebp
jne 0x4291b8
mov edi, dword [0x45a03c]
mov eax, dword [esp + 0x414]
mov ecx, edx
xor ebx, ebx
mov bl, byte [eax]
and ecx, 0xff
xor ecx, ebx
shr edx, 8
mov ecx, dword [edi + ecx*4]
xor edx, ecx
inc eax
dec esi
jne 0x42918f
pop edi
mov eax, edx
pop ebp
pop ebx
not eax
pop esi
add esp, 0x400
ret
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [0x45a03c]
mov ecx, dword [esp + 0x414]
xor eax, eax
mov al, byte [ecx]
mov ebx, dword [esp + eax*4 + 0x10]
inc ebx
mov dword [esp + eax*4 + 0x10], ebx
mov ebx, edx
and ebx, 0xff
xor ebx, eax
shr edx, 8
mov eax, dword [edi + ebx*4]
xor edx, eax
inc ecx
dec esi
jne 0x4291d2
xor edi, edi
xor eax, eax
lea ecx, [esp + 0x10]
mov esi, 7
mov ebx, dword [ecx]
add ecx, 4
add eax, ebx
dec esi
jne 0x429202
lea ecx, [esp + 0x2c]
mov esi, 0x79
mov ebx, 0x80
add edi, dword [ecx]
add ecx, 4
dec esi
jne 0x42921a
cmp ebx, 0x100
jge 0x42923f
mov esi, 0x100
lea ecx, [esp + ebx*4 + 0x10]
sub esi, ebx
mov ebx, dword [ecx]
add ecx, 4
add eax, ebx
dec esi
jne 0x429235
shr edi, 2
cmp edi, eax
pop edi
sbb ecx, ecx
mov eax, edx
neg ecx
mov word [ebp], cx
pop ebp
pop ebx
pop esi
not eax
add esp, 0x400
ret

Function at 0x42aec0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
test ebp, ebp
push edi
jge 0x42aed3
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x42aee2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
xor bl, bl
call fcn.0041b7d0
mov esi, eax
test esi, esi
jne 0x42aef6
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push edi
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x42af05
mov bl, 1
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret

Function at 0x4328dc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4407f0
push 0x43345c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [0x45a9e8]
test eax, eax
je 0x432924
mov dword [ebp - 4], 1
call eax
jmp 0x432920
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x43292d
jmp 0x436c42
push 0xa
call fcn.0043356d
push 0x16
call fcn.004387cd
pop ecx
pop ecx
push 3
call fcn.0042f8e0

Function at 0x432932
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440808
push 0x43345c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [fcn.004328dc]
test eax, eax
je 0x43297a
mov dword [ebp - 4], 1
call eax
jmp 0x432976
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x432983
jmp fcn.004328dc
Function at 0x43356d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x456818
cmp edx, dword [eax]
je 0x43358f
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x433580
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x456818]
jne 0x4336bd
mov eax, dword [0x45a98c]
cmp eax, 1
je 0x433697
test eax, eax
jne 0x4335c0
cmp dword [0x456664], 1
je 0x433697
cmp edx, 0xfc
je 0x4336bd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4335f7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00436ca0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00432b70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43363a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00432b70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4478ac
push edi
call fcn.0042ff00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00436ca0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00436cb0
lea eax, [ebp - 0xa0]
push 0x440af4
push eax
call fcn.00436cb0
push dword [esi + 0x45681c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00436cb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00437b56
add esp, 0x2c
pop edi
jmp 0x4336bd
lea eax, [ebp + 8]
lea esi, [esi + 0x45681c]
push 0
push eax
push dword [esi]
call fcn.00432b70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x436c79
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043641b
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x436c9a
test byte [esp + 8], 2
je 0x436c9a
mov dword [0x45a938], 0xd
mov dword [0x45a93c], 5
jmp 0x436c75
xor eax, eax
ret

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401bc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x134
mov eax, dword [0x4222d0]
xor eax, esp
mov dword [esp + 0x130], eax
push edi
push 0x94
lea eax, [esp + 0xa4]
push 0
push eax
mov dword [esi + 8], 0xffffffff
call fcn.00413820
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 0xa4], 0x94
call edi
cmp dword [esp + 0xa4], 5
jb 0x401c63
push 0x9c
lea edx, [esp + 8]
push 0
push edx
call fcn.00413820
add esp, 0xc
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x9c
call edi
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, 5
jne 0x401cba
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x401c7b
cmp word [esp + 0x98], 4
mov dword [esi + 8], ecx
jae 0x401dc4
xor eax, eax
pop edi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040e9d0
add esp, 0x134
ret
cmp ecx, eax
jne 0x401c98
mov dword [esi + 8], eax
pop edi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040e9d0
add esp, 0x134
ret
cmp ecx, 2
jne 0x401dc4
mov dword [esi + 8], ecx
pop edi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040e9d0
add esp, 0x134
ret
cmp ecx, 6
jne 0x401d7a
mov ecx, dword [esp + 0xa8]
test ecx, ecx
jne 0x401cf4
cmp byte [esp + 0x9e], al
pop edi
setne cl
add ecx, 3
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040e9d0
add esp, 0x134
ret
cmp ecx, eax
jne 0x401d20
xor edx, edx
cmp byte [esp + 0x9e], al
pop edi
setne dl
add edx, 5
mov dword [esi + 8], edx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040e9d0
add esp, 0x134
ret
cmp ecx, 2
jne 0x401d4d
xor ecx, ecx
cmp byte [esp + 0x9e], al
pop edi
setne cl
add ecx, 7
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040e9d0
add esp, 0x134
ret
cmp ecx, 3
jne 0x401dc4
xor edx, edx
cmp byte [esp + 0x9e], al
pop edi
setne dl
add edx, 9
mov dword [esi + 8], edx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040e9d0
add esp, 0x134
ret
cmp dword [esp + 0xa4], 0xa
jne 0x401dbd
cmp dword [esp + 0xa8], 0
mov dword [esi + 8], 0xb
jne 0x401dbd
xor ecx, ecx
cmp byte [esp + 0x9e], al
pop edi
setne cl
add ecx, 0xb
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040e9d0
add esp, 0x134
ret
mov dword [esi + 8], 0xd
mov ecx, dword [esp + 0x134]
pop edi
xor ecx, esp
call fcn.0040e9d0
add esp, 0x134
ret
Function at 0x401f20
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x418d50
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4222d0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4222d0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
xor ebx, ebx
mov eax, 0xf
mov esi, ecx
mov edi, edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov eax, edi
mov byte [esp + 0x5c], 1
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x401f87
sub eax, ecx
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.00403d70
push 1
push 0x41f48c
lea eax, [esp + 0x20]
call fcn.00402c50
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401fb0
sub eax, edx
push eax
push esi
lea eax, [esp + 0x20]
call fcn.00402c50
lea ebx, [esp + 0x34]
mov ecx, esi
call fcn.004020c0
mov ecx, dword [esp + 0x38]
mov esi, 0x10
cmp dword [esp + 0x4c], esi
jae 0x401fe2
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x401ff0
lea eax, [esp + 0x1c]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40203f
push 8
call fcn.0040f571
mov esi, eax
add esp, 4
test esi, esi
je 0x40202a
mov eax, 0x13
mov ecx, 0x294
mov word [esi], ax
mov word [esi + 2], cx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x40202c
xor esi, esi
push 0x4202cc
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], esi
call fcn.0040fa1b
lea edx, [ebp + 0x94]
lea ecx, [esp + 0x18]
call fcn.00402f10
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call fcn.00403340
cmp dword [esp + 0x30], esi
jb 0x402072
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040f47d
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x4c], esi
jb 0x402095
mov eax, dword [esp + 0x38]
push eax
call fcn.0040f47d
add esp, 4
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0040e9d0
add esp, 0x4c
ret 4
Function at 0x4020c0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x128
mov eax, dword [0x4222d0]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
push 0x104
lea eax, [esp + 0x1d]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x24], 0
call fcn.00413820
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x402147
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402110
sub eax, edx
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.00403d70
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0040e9d0
add esp, 0x128
ret
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx edx, word [esp + 0x16]
movzx eax, word [esp + 0x14]
movzx ecx, word [esp + 0x12]
push edx
push eax
push ecx
push esi
push edi
push str._s_s__d_d_d.tmp
lea edx, [esp + 0x30]
push 0x104
push edx
call fcn.0040f22d
add esp, 0x20
test eax, eax
jle 0x4021bc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402190
sub eax, edx
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.00403d70
mov ecx, dword [esp + 0x124]
pop esi
xor ecx, esp
call fcn.0040e9d0
add esp, 0x128
ret
push 8
call fcn.0040f571
mov esi, eax
add esp, 4
test esi, esi
je 0x4021e8
mov ecx, 0x13
mov edx, 0x312
mov word [esi], cx
mov word [esi + 2], dx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x4021ea
xor esi, esi
push 0x4202cc
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], esi
call fcn.0040fa1b
int3
Function at 0x402820
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xac]
mov ecx, dword [edi + 0x94]
mov esi, dword [eax]
add edi, 0x94
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
mov ebx, dword [edi + 0x18]
mov eax, dword [edi]
test ecx, ecx
je 0x402858
cmp ecx, eax
je 0x40285d
call fcn.0040f439
cmp esi, ebx
je 0x4028f7
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402889
call fcn.0040f439
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x40287e
call fcn.0040f439
cmp dword [esi + 0x40], 0x10
jb 0x40288d
mov eax, dword [esi + 0x2c]
jmp 0x402890
mov eax, dword [eax]
jmp 0x402874
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x10], 0
jne 0x4028a3
call fcn.0040f439
cmp byte [esi + 0x45], 0
je 0x4028b0
call fcn.0040f439
jmp 0x402847
mov eax, dword [esi + 8]
cmp byte [eax + 0x45], 0
jne 0x4028d2
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
jne 0x402847
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x4028c3
jmp 0x402847
mov eax, dword [esi + 4]
cmp byte [eax + 0x45], 0
jne 0x4028f0
jmp 0x4028e0
cmp esi, dword [eax + 8]
jne 0x4028f0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x4028e0
mov esi, eax
jmp 0x402847
mov edx, dword [edi + 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, edi
call fcn.004039d0
mov eax, dword [edi + 0x18]
mov esi, dword [ebp + 8]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
xor ebx, ebx
mov dword [edi + 0x1c], ebx
mov dword [eax], eax
mov edi, dword [edi + 0x18]
add esi, 0xb4
mov dword [edi + 8], edi
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + 4]
push edx
mov ecx, esi
call fcn.00403b10
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], ebx
mov dword [eax], eax
mov esi, dword [esi + 0x18]
pop edi
mov dword [esi + 8], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4061d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [edi + edi*8 - 1], esi
dec dword [edi]
scasd eax, dword es:[edi]
lea esi, [edi + edi*8 - 1]
dec dword [ecx + 0x5d880c4d]
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00405ee7
add al, 0xd8
arpl bx, bp
lea eax, [ebp - 0x40]
push eax
invalid
invalid
cld
Function at 0x409bd0
Capabilities:
Get file size
Read file on windows
Set registry value
Write file on windows

Disassembly:
push ecx
cmp dword [esi + 0x14], 0
je 0x409bf0
mov ecx, dword [esi + 0xc]
push 4
lea eax, [esi + 0x1c]
push eax
push 4
push 0
push str.LogLevel
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esi + 0x20]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x409cc3
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [esi + 0x18]
cmp edi, eax
jbe 0x409cb8
sub edi, eax
cmp edi, 0x200000
jae 0x409cb8
push ebx
push 0
push 0
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x409cb7
mov edx, dword [esi + 8]
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409ca9
push str._SetupApi_log_begin_
xor ecx, ecx
mov edx, esi
call fcn.00409cd0
mov ecx, dword [esp + 8]
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push str._SetupApi_log_end_
xor ecx, ecx
mov edx, esi
call fcn.00409cd0
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebx
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ecx
ret

Function at 0x409d40
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x409dc0
test esi, esi
je 0x409dc0
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409d62
push 0
lea ecx, [esp + 8]
push ecx
sub eax, edx
mov edx, dword [edi + 4]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edx
call esi
test eax, eax
je 0x409dc0
test ebx, ebx
je 0x409dac
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409d90
push 0
lea ecx, [esp + 8]
push ecx
sub eax, edx
mov edx, dword [edi + 4]
push eax
push ebx
push edx
call esi
test eax, eax
je 0x409dc0
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 8]
push eax
push 2
push 0x41f970
push ecx
call esi
pop esi
pop ecx
ret

Function at 0x40e9d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4222d0]
jne 0x40e9da
repz ret
jmp fcn.0040feb6