joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061708
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10073290]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx]
test eax, eax
je 0x10004167
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 1
lea edi, [esi + 4]
jb 0x100040d4
mov ecx, dword [edi]
jmp 0x100040d6
mov ecx, edi
lea edx, [ebp - 0x30]
push edx
push 0
lea edx, [ebp - 0x34]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
cmp eax, ecx
jne 0x10004167
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x30]
shr eax, 1
jne 0x10004117
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2c]
call fcn.100018a0
jmp 0x10004121
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.100031a0
mov ecx, dword [ebp - 0x28]
mov eax, 8
cmp dword [ebp - 0x14], eax
jae 0x10004131
lea ecx, [ebp - 0x28]
cmp dword [esi + 0x18], eax
jb 0x1000413a
mov eax, dword [edi]
jmp 0x1000413c
mov eax, edi
lea edx, [ebp - 0x30]
push edx
mov edx, dword [ebx]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1000416b
cmp dword [ebp - 0x14], 8
jb 0x10004167
mov eax, dword [ebp - 0x28]
push eax
call fcn.10044440
add esp, 4
xor al, al
jmp 0x100041b6
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
shr eax, 1
dec eax
cmp eax, ecx
ja 0x10004185
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2c]
call fcn.100018a0
jmp 0x10004192
sub eax, ecx
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.100031a0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.10001b20
cmp dword [ebp - 0x14], 8
jb 0x100041b4
mov edx, dword [ebp - 0x28]
push edx
call fcn.10044440
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10044431
mov esp, ebp
pop ebp
ret 4
Function at 0x100041e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061708
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10073290]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx]
test eax, eax
je 0x100042c7
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 2
lea edi, [esi + 4]
jb 0x10004234
mov ecx, dword [edi]
jmp 0x10004236
mov ecx, edi
lea edx, [ebp - 0x30]
push edx
push 0
lea edx, [ebp - 0x34]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
cmp eax, ecx
jne 0x100042c7
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x30]
shr eax, 1
jne 0x10004277
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2c]
call fcn.100018a0
jmp 0x10004281
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.100031a0
mov ecx, dword [ebp - 0x28]
mov eax, 8
cmp dword [ebp - 0x14], eax
jae 0x10004291
lea ecx, [ebp - 0x28]
cmp dword [esi + 0x18], eax
jb 0x1000429a
mov eax, dword [edi]
jmp 0x1000429c
mov eax, edi
lea edx, [ebp - 0x30]
push edx
mov edx, dword [ebx]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100042cb
cmp dword [ebp - 0x14], 8
jb 0x100042c7
mov eax, dword [ebp - 0x28]
push eax
call fcn.10044440
add esp, 4
xor al, al
jmp 0x10004316
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
shr eax, 1
dec eax
cmp eax, ecx
ja 0x100042e5
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2c]
call fcn.100018a0
jmp 0x100042f2
sub eax, ecx
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.100031a0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.10001b20
cmp dword [ebp - 0x14], 8
jb 0x10004314
mov edx, dword [ebp - 0x28]
push edx
call fcn.10044440
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10044431
mov esp, ebp
pop ebp
ret 4
Function at 0x10004340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x10073290]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x10004423
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 7
lea esi, [edi + 4]
jb 0x10004392
mov eax, dword [esi]
jmp 0x10004394
mov eax, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x10]
push edx
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
push ecx
call ebx
test eax, eax
jne 0x10004423
lea eax, [ebp - 0x2c]
push eax
call fcn.10004770
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
lea ecx, [ebp - 0x2c]
call fcn.10004ab0
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
sar ecx, 1
jne 0x100043da
call fcn.100445a8
cmp dword [edi + 0x18], 8
jb 0x100043e2
mov esi, dword [esi]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx]
lea ecx, [ebp - 0x14]
push ecx
xor edi, edi
push edi
push esi
push eax
call ebx
cmp eax, edi
je 0x10004439
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x1000440e
push eax
call fcn.10044440
add esp, 4
mov ecx, dword [ebp - 0x2c]
push ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.10044440
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x10]
shr eax, 1
lea ecx, [ebp - 0x2c]
call fcn.10004ab0
lea edx, [ebp - 0x44]
push edx
call fcn.10004770
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
sub eax, edi
sar eax, 1
jne 0x10004467
call fcn.100445a8
mov edi, dword [ebp - 0x20]
cmp word [edi], 0
je 0x100044d3
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004472
sub eax, edx
sar eax, 1
mov esi, eax
xor ecx, ecx
push esi
mov word [ebp - 0x5c], cx
push edi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
call fcn.100017a0
lea edx, [ebp - 0x60]
push edx
lea ebx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.100049b0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x48], 8
jb 0x100044c7
mov eax, dword [ebp - 0x5c]
push eax
call fcn.10044440
add esp, 4
cmp word [edi + esi*2 + 2], 0
lea edi, [edi + esi*2 + 2]
jne 0x1000446d
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
push ecx
call fcn.10004820
lea esi, [ebp - 0x44]
call fcn.100047d0
mov eax, dword [ebp - 0x20]
xor esi, esi
cmp eax, esi
je 0x100044f9
push eax
call fcn.10044440
add esp, 4
mov edx, dword [ebp - 0x2c]
push edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.10044440
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10004530
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [ecx]
test ecx, ecx
jne 0x10004539
xor al, al
ret
cmp dword [eax + 0x18], 8
jb 0x10004550
mov eax, dword [eax + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete al
ret
add eax, 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete al
ret

Function at 0x10005ca0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, eax
call fcn.10005d20
test al, al
je 0x10005d0a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x38]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10005d0a
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x10005d0d
cmp dword [ebp + 0x14], eax
jle 0x10005d0d
xor edi, edi
cmp dword [esi + 0x24], eax
jle 0x10005d0d
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 0x38]
push 0
push eax
push ecx
push edx
call ebx
cmp eax, 0xffffffff
jne 0x10005d0d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, dword [esi + 0x24]
jl 0x10005ce4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10

Function at 0x10005d20
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [esi + 0x38], 0
push edi
je 0x10005d34
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x38], eax
test eax, eax
je 0x10005df4
mov ecx, dword [esi + 0x24]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 8
lea edx, [ebp - 8]
push edx
push 0x1005
push 0xffff
push eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
call edi
cmp eax, 0xffffffff
je 0x10005de3
mov ecx, dword [esi + 0x38]
push 8
lea eax, [ebp - 8]
push eax
push 0x1006
push 0xffff
push ecx
call edi
cmp eax, 0xffffffff
je 0x10005de3
mov edx, 2
lea edi, [esi + 0x28]
push esi
mov word [edi], dx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0x2c], eax
movzx eax, word [esi + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x38]
push 0x10
push edi
push ecx
mov word [esi + 0x2a], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10005d2d
mov edx, dword [esi + 0x38]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x38], 0
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x38], 0
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10008e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10073290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
add eax, 4
lea ecx, [ebp - 0x13]
mov esi, 4
jmp 0x10008e30
movzx edx, byte [eax - 4]
mov byte [ecx - 1], dl
movzx edx, byte [eax]
mov byte [ecx], dl
movzx edx, byte [eax + 4]
mov byte [ecx + 1], dl
movzx edx, byte [eax + 8]
mov byte [ecx + 2], dl
inc eax
add ecx, 4
sub esi, 1
jne 0x10008e30
lea eax, [ebp - 0x10]
lea ecx, [edi + 0x2a8]
mov esi, 4
movzx edx, byte [ecx - 4]
xor byte [eax - 4], dl
movzx edx, byte [ecx]
xor byte [eax], dl
movzx edx, byte [ecx + 4]
xor byte [eax + 4], dl
movzx edx, byte [ecx + 8]
xor byte [eax + 8], dl
inc ecx
inc eax
sub esi, 1
jne 0x10008e61
push ebx
lea ebx, [esi + 9]
lea esi, [edi + 0x298]
lea esp, [esp]
lea edi, [ebp - 0x14]
call fcn.10009100
mov ecx, dword [ebp - 0x1c]
mov eax, edi
call fcn.100090a0
xor eax, eax
jmp 0x10008eb0
movzx ecx, byte [esi + eax - 4]
movzx edx, byte [esi + eax]
xor byte [ebp + eax - 0x14], cl
xor byte [ebp + eax - 0x10], dl
movzx ecx, byte [esi + eax + 4]
movzx edx, byte [esi + eax + 8]
xor byte [ebp + eax - 0xc], cl
xor byte [ebp + eax - 8], dl
inc eax
cmp eax, 4
jl 0x10008eb0
test ebx, ebx
je 0x10008ee6
lea eax, [ebp - 0x14]
push eax
call fcn.100091a0
dec ebx
sub esi, 0x10
test ebx, ebx
jge 0x10008e90
mov eax, dword [ebp - 0x18]
add eax, 4
lea ecx, [ebp - 0x13]
mov esi, 4
pop ebx
lea ecx, [ecx]
movzx edx, byte [ecx - 1]
mov byte [eax - 4], dl
movzx edx, byte [ecx]
mov byte [eax], dl
movzx edx, byte [ecx + 1]
mov byte [eax + 4], dl
movzx edx, byte [ecx + 2]
mov byte [eax + 8], dl
inc eax
add ecx, 4
sub esi, 1
jne 0x10008f00
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
xor ecx, ebp
pop esi
call fcn.10044431
mov esp, ebp
pop ebp
ret 4

Function at 0x10009300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
xor ebx, ebx
lea esi, [ebp - 1]
mov byte [ebp - 1], 0x55
call fcn.10009670
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x10009361
mov ax, word [ebp + 8]
mov cl, byte [ebp - 1]
push ebx
push ebx
mov word [ebp - 8], ax
xor byte [ebp - 7], cl
push 2
xor al, cl
push esi
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], al
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 2
jne 0x1000935a
push ebx
lea eax, [ebp - 0xc]
push eax
push 2
lea ecx, [ebp - 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009670
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10073290]
xor eax, ebp
mov dword [ebp - 8], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x212]
push ecx
mov word [ebp - 0x214], ax
call fcn.10049f90
add esp, 0xc
lea edi, [ebp - 0x214]
call fcn.10009790
test al, al
je 0x1000977d
mov edx, edi
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp byte [ebp + 8], 0
mov al, byte [eax + 0xa]
push 0
push 0x80
push 3
mov byte [esi], al
push 0
je 0x100096e0
push 3
push 0xc0000000
mov ecx, edi
push ecx
jmp 0x100096ee
push 1
push connect
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000977d
test ebx, ebx
je 0x1000976c
push 0
push 0
push 4
push edi
mov dword [ebp - 0x218], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 4
jne 0x1000976c
push 0
lea eax, [ebp - 0x218]
push eax
push 0x12c0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000976c
lea eax, [ebx + 1]
mov ecx, 0x320
movzx edx, byte [esi]
xor byte [eax - 1], dl
movzx edx, byte [esi]
xor byte [eax], dl
movzx edx, byte [esi]
xor byte [eax + 1], dl
movzx edx, byte [esi]
xor byte [eax + 2], dl
movzx edx, byte [esi]
xor byte [eax + 3], dl
movzx edx, byte [esi]
xor byte [eax + 4], dl
add eax, 6
sub ecx, 1
jne 0x10009741
mov eax, edi
pop edi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10044431
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.10044431
mov esp, ebp
pop ebp
ret
Function at 0x10009790
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x10073290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x416]
push ecx
mov word [ebp - 0x418], ax
call fcn.10049f90
add esp, 0xc
lea esi, [ebp - 0x418]
call fcn.100099e0
test al, al
je 0x100099cc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x61e]
push eax
mov word [ebp - 0x620], dx
call fcn.10049f90
add esp, 0xc
mov ecx, esi
push ecx
lea edx, [ebp - 0x620]
push 0x104
push edx
call fcn.10045cd5
add esp, 0xc
push str..res
lea eax, [ebp - 0x620]
push 0x104
push eax
call fcn.10045d44
add esp, 0xc
push 0x24c
lea ecx, [ebp - 0x87c]
push 0
push ecx
mov dword [ebp - 0x880], 0
call fcn.10049f90
add esp, 0xc
lea edx, [ebp - 0x880]
push edx
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10009909
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea esp, [esp]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.10049f90
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.10045cd5
add esp, 0xc
push 0x1006f53c
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.10045d44
add esp, 0xc
lea eax, [ebp - 0x854]
push eax
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.10045d44
add esp, 0xc
lea eax, [ebp - 0x210]
call fcn.10009a50
test al, al
jne 0x1000999e
lea edx, [ebp - 0x880]
push edx
push esi
call ebx
test eax, eax
jne 0x10009870
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x630]
push ecx
call dword [sym.imp.ole32.dll_CoCreateGuid]
movzx edx, byte [ebp - 0x621]
movzx eax, byte [ebp - 0x622]
movzx ecx, byte [ebp - 0x623]
push edx
movzx edx, byte [ebp - 0x624]
push eax
movzx eax, byte [ebp - 0x625]
push ecx
movzx ecx, byte [ebp - 0x626]
push edx
movzx edx, byte [ebp - 0x627]
push eax
movzx eax, byte [ebp - 0x628]
push ecx
movzx ecx, word [ebp - 0x62a]
push edx
movzx edx, word [ebp - 0x62c]
push eax
mov eax, dword [ebp - 0x630]
push ecx
push edx
push eax
lea ecx, [ebp - 0x418]
push ecx
push str._s_04x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x.res
push 0x104
push edi
call fcn.10048516
add esp, 0x3c
mov eax, edi
call fcn.10009ad0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10044431
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
push 0x104
push edi
call fcn.10045cd5
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10044431
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.10044431
mov esp, ebp
pop ebp
ret
Function at 0x100099e0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push 1
push 0x23
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x100099f4
xor al, al
ret
push ebx
push edi
push str.LogApp_
push 0x104
push esi
call fcn.10045d44
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10009a21
push 0
push esi
call ebx
push str.2E932316_24CC_484d_81B2_F593B7B32CEE
push 0x104
push esi
call fcn.10045d44
add esp, 0xc
push esi
call edi
test eax, eax
jne 0x10009a3f
push eax
push esi
call ebx
push esi
call edi
test eax, eax
pop edi
setne al
pop ebx
ret

Function at 0x10009a50
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10009ac3
lea ecx, [ebp - 0x10]
push ecx
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [ebp - 0xc], ebx
jl 0x10009abc
jg 0x10009a99
cmp dword [ebp - 0x10], 0x12c4
jb 0x10009abc
push ebx
lea edx, [ebp - 8]
push edx
push 2
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 8], ebx
mov byte [ebp - 4], bl
mov byte [ebp - 3], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [ebp - 3], 0xd8
jne 0x10009abc
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009ad0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, eax
push esi
mov byte [ebp - 1], 0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov bl, byte [eax + 0xa]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x10009bae
mov dword [ebp - 0x10], 0
call fcn.10044ca6
cdq
mov ecx, 0xff
idiv ecx
push 0
lea eax, [ebp - 8]
mov byte [ebp - 7], 0xd8
mov byte [ebp - 6], bl
mov byte [ebp - 5], bl
mov byte [ebp - 8], dl
lea edx, [ebp - 0x10]
push edx
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x12c0
call fcn.1000de3a
mov esi, eax
add esp, 4
test esi, esi
je 0x10009ba7
mov edi, esi
mov dword [ebp - 0xc], 0x63
nop
mov ecx, edi
call fcn.10009f40
add edi, 0x30
sub dword [ebp - 0xc], 1
jns 0x10009b60
xor eax, eax
xor byte [eax + esi], bl
inc eax
cmp eax, 0x12c0
jb 0x10009b72
mov edx, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0x12c0
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10009b9b
mov byte [ebp - 1], 1
push esi
call fcn.10044c9b
mov edi, dword [ebp - 0x14]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009bc0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x30
call fcn.1000de3a
mov edx, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x10009ca9
push esi
push edi
mov ecx, 0xc
mov esi, ebx
mov edi, edx
mov dword [ebp - 4], eax
rep movsd dword es:[edi], dword [esi]
nop
mov cl, byte [ebp + 0xc]
xor byte [eax + edx], cl
inc eax
cmp eax, 0x30
jb 0x10009bf0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push 0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, eax
jne 0x10009c25
mov eax, dword [ebp - 0xc]
push 0
lea edx, [ebp - 4]
push edx
push 0x30
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 8]
test eax, eax
jbe 0x10009c9b
cmp dword [ebx + 0xc], 0
jbe 0x10009c9b
cmp dword [ebp + 0x14], 0
je 0x10009c9b
push 0
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebx + 8], eax
jne 0x10009c9b
mov ecx, dword [ebx + 0xc]
push ecx
call fcn.1000de3a
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x10009c9b
xor esi, esi
cmp dword [ebx + 0xc], esi
jbe 0x10009c7d
mov edi, dword [ebp + 0x14]
sub edi, eax
mov dl, byte [edi + eax]
xor dl, byte [ebp + 0xc]
inc esi
mov byte [eax], dl
inc eax
cmp esi, dword [ebx + 0xc]
jb 0x10009c68
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0xc]
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
push eax
call fcn.10044c9b
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10044c9b
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10009cb0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
test edi, edi
jbe 0x10009d20
push edi
call fcn.1000de3a
mov esi, eax
add esp, 4
test esi, esi
je 0x10009d20
mov eax, dword [ebp + 0xc]
push 0
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0xc], eax
jne 0x10009d17
push 0
lea ecx, [ebp - 4]
push ecx
push edi
push esi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10009d17
xor eax, eax
test edi, edi
jbe 0x10009d0b
lea esp, [esp]
mov dl, byte [ebp + 8]
xor byte [eax + esi], dl
inc eax
cmp eax, edi
jb 0x10009d00
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.10044c9b
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10009e60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x10073290]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push ecx
lea esi, [ebp - 0x70]
mov byte [ebp - 8], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
call fcn.10002860
cmp byte [ebp - 8], 0
mov esi, dword [ebp + 0xc]
mov edi, 0x10
jne 0x10009ed4
lea ecx, [ebp - 0x70]
call fcn.10002910
mov byte [ebp - 8], 1
lea ecx, [ebp - 0x18]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10009f06
sub edi, 4
add esi, 4
add ecx, 4
cmp edi, 4
jae 0x10009ed7
xor eax, eax
mov ecx, dword [ebp - 4]
xor edx, edx
test eax, eax
sete dl
pop edi
xor ecx, ebp
mov al, dl
pop esi
call fcn.10044431
mov esp, ebp
pop ebp
ret
movzx edx, byte [esi]
movzx eax, al
sub eax, edx
jne 0x10009f32
movzx eax, byte [ecx + 1]
movzx edx, byte [esi + 1]
sub eax, edx
jne 0x10009f32
movzx eax, byte [ecx + 2]
movzx edx, byte [esi + 2]
sub eax, edx
jne 0x10009f32
movzx eax, byte [ecx + 3]
movzx ecx, byte [esi + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jmp 0x10009eed