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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060688
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10071290]
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 0x10004157
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 1
lea edi, [esi + 4]
jb 0x100040c4
mov ecx, dword [edi]
jmp 0x100040c6
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 0x10004157
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 0x10004107
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001890
jmp 0x10004111
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003190
mov ecx, dword [ebp - 0x28]
mov eax, 8
cmp dword [ebp - 0x14], eax
jae 0x10004121
lea ecx, [ebp - 0x28]
cmp dword [esi + 0x18], eax
jb 0x1000412a
mov eax, dword [edi]
jmp 0x1000412c
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 0x1000415b
cmp dword [ebp - 0x14], 8
jb 0x10004157
mov eax, dword [ebp - 0x28]
push eax
call fcn.10043fe0
add esp, 4
xor al, al
jmp 0x100041a6
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
shr eax, 1
dec eax
cmp eax, ecx
ja 0x10004175
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001890
jmp 0x10004182
sub eax, ecx
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003190
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.10001b10
cmp dword [ebp - 0x14], 8
jb 0x100041a4
mov edx, dword [ebp - 0x28]
push edx
call fcn.10043fe0
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.10043fd1
mov esp, ebp
pop ebp
ret 4
Function at 0x100041d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060688
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10071290]
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 0x100042b7
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 2
lea edi, [esi + 4]
jb 0x10004224
mov ecx, dword [edi]
jmp 0x10004226
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 0x100042b7
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 0x10004267
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001890
jmp 0x10004271
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003190
mov ecx, dword [ebp - 0x28]
mov eax, 8
cmp dword [ebp - 0x14], eax
jae 0x10004281
lea ecx, [ebp - 0x28]
cmp dword [esi + 0x18], eax
jb 0x1000428a
mov eax, dword [edi]
jmp 0x1000428c
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 0x100042bb
cmp dword [ebp - 0x14], 8
jb 0x100042b7
mov eax, dword [ebp - 0x28]
push eax
call fcn.10043fe0
add esp, 4
xor al, al
jmp 0x10004306
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
shr eax, 1
dec eax
cmp eax, ecx
ja 0x100042d5
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001890
jmp 0x100042e2
sub eax, ecx
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003190
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.10001b10
cmp dword [ebp - 0x14], 8
jb 0x10004304
mov edx, dword [ebp - 0x28]
push edx
call fcn.10043fe0
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.10043fd1
mov esp, ebp
pop ebp
ret 4
Function at 0x10004330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060b78
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x10071290]
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 0x10004413
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 7
lea esi, [edi + 4]
jb 0x10004382
mov eax, dword [esi]
jmp 0x10004384
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 0x10004413
lea eax, [ebp - 0x2c]
push eax
call fcn.10004760
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
lea ecx, [ebp - 0x2c]
call fcn.10004aa0
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
sar ecx, 1
jne 0x100043ca
call fcn.10044148
cmp dword [edi + 0x18], 8
jb 0x100043d2
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 0x10004429
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x100043fe
push eax
call fcn.10043fe0
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.10043fe0
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.10004aa0
lea edx, [ebp - 0x44]
push edx
call fcn.10004760
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
sub eax, edi
sar eax, 1
jne 0x10004457
call fcn.10044148
mov edi, dword [ebp - 0x20]
cmp word [edi], 0
je 0x100044c3
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004462
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.10001790
lea edx, [ebp - 0x60]
push edx
lea ebx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.100049a0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x48], 8
jb 0x100044b7
mov eax, dword [ebp - 0x5c]
push eax
call fcn.10043fe0
add esp, 4
cmp word [edi + esi*2 + 2], 0
lea edi, [edi + esi*2 + 2]
jne 0x1000445d
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
push ecx
call fcn.10004810
lea esi, [ebp - 0x44]
call fcn.100047c0
mov eax, dword [ebp - 0x20]
xor esi, esi
cmp eax, esi
je 0x100044e9
push eax
call fcn.10043fe0
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.10043fe0
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 0x10004520
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [ecx]
test ecx, ecx
jne 0x10004529
xor al, al
ret
cmp dword [eax + 0x18], 8
jb 0x10004540
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 0x10005c90
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.10005d10
test al, al
je 0x10005cfa
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 0x10005cfa
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x10005cfd
cmp dword [ebp + 0x14], eax
jle 0x10005cfd
xor edi, edi
cmp dword [esi + 0x24], eax
jle 0x10005cfd
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 0x10005cfd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, dword [esi + 0x24]
jl 0x10005cd4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10

Function at 0x10005d10
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 0x10005d24
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 0x10005de4
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 0x10005dd3
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 0x10005dd3
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 0x10005d1d
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 0x10008ad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10071290]
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 0x10008b00
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 0x10008b00
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 0x10008b31
push ebx
lea ebx, [esi + 9]
lea esi, [edi + 0x298]
lea esp, [esp]
lea edi, [ebp - 0x14]
call fcn.10008dd0
mov ecx, dword [ebp - 0x1c]
mov eax, edi
call fcn.10008d70
xor eax, eax
jmp 0x10008b80
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 0x10008b80
test ebx, ebx
je 0x10008bb6
lea eax, [ebp - 0x14]
push eax
call fcn.10008e70
dec ebx
sub esi, 0x10
test ebx, ebx
jge 0x10008b60
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 0x10008bd0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
xor ecx, ebp
pop esi
call fcn.10043fd1
mov esp, ebp
pop ebp
ret 4

Function at 0x10008fd0
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.10009340
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x10009031
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 0x1000902a
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 0x10009340
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10071290]
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.10049a70
add esp, 0xc
lea edi, [ebp - 0x214]
call fcn.10009460
test al, al
je 0x1000944d
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 0x100093b0
push 3
push 0xc0000000
mov ecx, edi
push ecx
jmp 0x100093be
push 1
push connect
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000944d
test ebx, ebx
je 0x1000943c
push 0
push 0
push 4
push edi
mov dword [ebp - 0x218], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 4
jne 0x1000943c
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 0x1000943c
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 0x10009411
mov eax, edi
pop edi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10043fd1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.10043fd1
mov esp, ebp
pop ebp
ret
Function at 0x10009460
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x10071290]
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.10049a70
add esp, 0xc
lea esi, [ebp - 0x418]
call fcn.100096b0
test al, al
je 0x1000969c
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x61e]
push eax
mov word [ebp - 0x620], dx
call fcn.10049a70
add esp, 0xc
mov ecx, esi
push ecx
lea edx, [ebp - 0x620]
push 0x104
push edx
call fcn.10045875
add esp, 0xc
push str..res
lea eax, [ebp - 0x620]
push 0x104
push eax
call fcn.100458e4
add esp, 0xc
push 0x24c
lea ecx, [ebp - 0x87c]
push 0
push ecx
mov dword [ebp - 0x880], 0
call fcn.10049a70
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 0x100095d9
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.10049a70
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.10045875
add esp, 0xc
push 0x1006d53c
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.100458e4
add esp, 0xc
lea eax, [ebp - 0x854]
push eax
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.100458e4
add esp, 0xc
lea eax, [ebp - 0x210]
call fcn.10009720
test al, al
jne 0x1000966e
lea edx, [ebp - 0x880]
push edx
push esi
call ebx
test eax, eax
jne 0x10009540
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.10047ff6
add esp, 0x3c
mov eax, edi
call fcn.100097a0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10043fd1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
push 0x104
push edi
call fcn.10045875
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.10043fd1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.10043fd1
mov esp, ebp
pop ebp
ret
Function at 0x100096b0
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 0x100096c4
xor al, al
ret
push ebx
push edi
push str.LogApp_
push 0x104
push esi
call fcn.100458e4
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 0x100096f1
push 0
push esi
call ebx
push str.584BAD15_5093_4800_8F06_052D854AB151
push 0x104
push esi
call fcn.100458e4
add esp, 0xc
push esi
call edi
test eax, eax
jne 0x1000970f
push eax
push esi
call ebx
push esi
call edi
test eax, eax
pop edi
setne al
pop ebx
ret

Function at 0x10009720
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 0x10009793
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 0x1000978c
jg 0x10009769
cmp dword [ebp - 0x10], 0x12c4
jb 0x1000978c
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 0x1000978c
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 0x100097a0
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 0x1000987e
mov dword [ebp - 0x10], 0
call fcn.10044846
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.1000d9ca
mov esi, eax
add esp, 4
test esi, esi
je 0x10009877
mov edi, esi
mov dword [ebp - 0xc], 0x63
nop
mov ecx, edi
call fcn.10009c10
add edi, 0x30
sub dword [ebp - 0xc], 1
jns 0x10009830
xor eax, eax
xor byte [eax + esi], bl
inc eax
cmp eax, 0x12c0
jb 0x10009842
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 0x1000986b
mov byte [ebp - 1], 1
push esi
call fcn.1004483b
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 0x10009890
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x30
call fcn.1000d9ca
mov edx, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x10009979
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 0x100098c0
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 0x100098f5
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 0x1000996b
cmp dword [ebx + 0xc], 0
jbe 0x1000996b
cmp dword [ebp + 0x14], 0
je 0x1000996b
push 0
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebx + 8], eax
jne 0x1000996b
mov ecx, dword [ebx + 0xc]
push ecx
call fcn.1000d9ca
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x1000996b
xor esi, esi
cmp dword [ebx + 0xc], esi
jbe 0x1000994d
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 0x10009938
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.1004483b
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1004483b
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
test edi, edi
jbe 0x100099f0
push edi
call fcn.1000d9ca
mov esi, eax
add esp, 4
test esi, esi
je 0x100099f0
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 0x100099e7
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 0x100099e7
xor eax, eax
test edi, edi
jbe 0x100099db
lea esp, [esp]
mov dl, byte [ebp + 8]
xor byte [eax + esi], dl
inc eax
cmp eax, edi
jb 0x100099d0
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.1004483b
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10009b30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x10071290]
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.10002850
cmp byte [ebp - 8], 0
mov esi, dword [ebp + 0xc]
mov edi, 0x10
jne 0x10009ba4
lea ecx, [ebp - 0x70]
call fcn.10002900
mov byte [ebp - 8], 1
lea ecx, [ebp - 0x18]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10009bd6
sub edi, 4
add esi, 4
add ecx, 4
cmp edi, 4
jae 0x10009ba7
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.10043fd1
mov esp, ebp
pop ebp
ret
movzx edx, byte [esi]
movzx eax, al
sub eax, edx
jne 0x10009c02
movzx eax, byte [ecx + 1]
movzx edx, byte [esi + 1]
sub eax, edx
jne 0x10009c02
movzx eax, byte [ecx + 2]
movzx edx, byte [esi + 2]
sub eax, edx
jne 0x10009c02
movzx eax, byte [ecx + 3]
movzx ecx, byte [esi + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jmp 0x10009bbd