joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003a0e
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov dword [ebp - 4], ecx
push ebx
mov ebx, edx
test ecx, ecx
jne 0x10003a29
or eax, 0xffffffff
jmp 0x10003b68
test ebx, ebx
jg 0x10003a35
push 0xfffffffffffffffe
pop eax
jmp 0x10003b68
cmp dword [ebp + 8], 0
jne 0x10003a3f
push 0xfffffffffffffffd
jmp 0x10003a2f
cmp dword [ebp + 0xc], 0
jg 0x10003a49
push 0xfffffffffffffffc
jmp 0x10003a2f
cmp dword [ebp + 0x10], 0
jne 0x10003a53
push 0xfffffffffffffffb
jmp 0x10003a2f
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jg 0x10003a5f
push 0xfffffffffffffffa
jmp 0x10003a66
cmp dword [ebp + 0xc], edi
jge 0x10003a6c
push 0xfffffffffffffff9
pop eax
jmp 0x10003b67
push esi
xor esi, esi
mov edx, esi
mov ecx, esi
mov esi, dword [ebp - 4]
mov al, byte [edx + esi]
mov byte [ebp + ecx - 0x204], al
lea eax, [edx + 1]
cdq
idiv ebx
mov byte [ebp + ecx - 0x104], cl
inc ecx
cmp ecx, 0x100
jl 0x10003a76
xor esi, esi
mov edi, esi
mov ebx, esi
mov dl, byte [ebp + ebx - 0x104]
movzx eax, byte [ebp + ebx - 0x204]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x10003ac2
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + edi - 0x104], dl
mov byte [ebp + ebx - 0x104], al
inc ebx
cmp ebx, 0x100
jl 0x10003a9c
mov edi, dword [ebp + 0x14]
mov eax, esi
test edi, edi
jle 0x10003b64
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
sub edx, ebx
inc eax
and eax, 0x800000ff
jns 0x10003b00
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 4], eax
movzx eax, byte [ebp + eax - 0x104]
add esi, eax
and esi, 0x800000ff
jns 0x10003b1d
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [ebp - 4]
mov cl, byte [ebp + esi - 0x104]
mov al, byte [ebp + eax - 0x104]
mov byte [ebp + esi - 0x104], al
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x104], cl
movzx eax, byte [ebp + esi - 0x104]
movzx ecx, cl
add ecx, eax
movzx eax, cl
mov al, byte [ebp + eax - 0x104]
xor al, byte [edx + ebx]
mov byte [ebx], al
inc ebx
mov eax, dword [ebp - 4]
sub edi, 1
jne 0x10003af1
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10003c0e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10003c69
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10003c5a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x10003c56
cmp esi, ecx
jae 0x10003c5a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x10003c44
cmp esi, ecx
jb 0x10003c5e
xor eax, eax
jmp 0x10003c68
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10003dfd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1010c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov edx, dword [ebp + 8]
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10003e74
cmp dword [ebp - 8], 1
je 0x10003e4c
cmp dword [ebp - 8], 2
je 0x10003e4c
push 0xd
pop eax
jmp 0x10003e74
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x10003e6e
test ecx, ecx
je 0x10003e69
test cl, 1
jne 0x10003e47
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x10003e6e
jmp 0x10003e47
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008aeea
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10003f43
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1010c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x218], ebx
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x10003f6f
mov eax, dword [edi]
jmp 0x10003f71
mov eax, edi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
push 1
push ebx
push str.http_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000402f
push esi
mov esi, 0x208
mov dword [ebp - 0x214], ebx
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1008e420
add esp, 0xc
mov dword [ebp - 0x210], esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push 0x100d1a34
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x218]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov dword [ebp - 0x218], ebx
pop esi
jne 0x1000402f
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1009670f
lea ecx, [ebp - 0x20c]
push ecx
call fcn.10001a38
add esp, 0xc
lea ecx, [ebp - 0x20c]
push eax
push ecx
mov ecx, edi
call fcn.10001dcf
xor eax, eax
inc eax
jmp 0x10004031
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1008aeea
mov esp, ebp
pop ebp
ret
Function at 0x10004041
Capabilities:
Query environment variable

Disassembly:
push 0x814
mov eax, 0x100bc3f5
call fcn.1008bbf4
mov esi, ecx
mov edi, 0x400
lea eax, [ebp - 0x810]
push edi
xor ebx, ebx
push ebx
push eax
call fcn.1008e420
push edi
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.1008e420
mov dword [ebp - 0x820], edi
xor eax, eax
lea edi, [ebp - 0x81c]
add esp, 0x18
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x814], ebx
mov edi, 0x20019
mov dword [ebp - 4], ebx
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_pathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x81c]
call fcn.10003d84
test eax, eax
jne 0x100041b2
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x810]
push eax
push 0x100d1a34
lea ecx, [ebp - 0x81c]
call fcn.10003dfd
test eax, eax
sete bl
test eax, eax
je 0x10004132
lea ecx, [ebp - 0x81c]
call fcn.10003d6a
push edi
push str.SoftwareMicrosoftIE_SetupSetup
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x81c]
call fcn.10003d84
test eax, eax
jne 0x10004132
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x810]
push eax
push str.Path
lea ecx, [ebp - 0x81c]
call fcn.10003dfd
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
je 0x100041b2
mov edi, 0x200
lea eax, [ebp - 0x410]
push edi
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jle 0x100041b2
push str.iexplore.exe
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call fcn.10096350
pop ecx
pop ecx
test eax, eax
je 0x10004196
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0xc
push str.iexplore.exe
lea eax, [ebp - 0x410]
push edi
push eax
call fcn.10095f95
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
call fcn.10001a38
pop ecx
push eax
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.10001dcf
lea ecx, [ebp - 0x81c]
call fcn.10003d6a
mov eax, ebx
call fcn.1008bb9e
ret

Function at 0x100041c5
Capabilities:
Create process on windows

Disassembly:
push 0xc
push 0x100ff390
call fcn.1008c050
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
push 5
push esi
push esi
call fcn.10001e60
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x1c], eax
jmp 0x100041fb
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.1008c096
ret
Function at 0x1000420b
Capabilities:
Create process on windows

Disassembly:
push 0x88
mov eax, 0x100bc42d
call fcn.1008bbf4
mov esi, ecx
push 0x100d1a34
lea ecx, [ebp - 0x40]
call fcn.100028b0
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.100041c5
mov edi, eax
push 0x20
pop eax
cmp eax, edi
jbe 0x1000438e
lea ecx, [ebp - 0x40]
call fcn.10003f43
test eax, eax
je 0x10004389
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push str.iexplore.exe
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.1008d664
pop ecx
pop ecx
test eax, eax
je 0x10004389
push 0x100d1a34
lea ecx, [ebp - 0x28]
call fcn.100028b0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10004041
test eax, eax
je 0x1000437e
push 0x40
lea eax, [ebp - 0x80]
mov dword [ebp - 0x84], 0x44
push ebx
push eax
call fcn.1008e420
mov ebx, dword [ebp - 0x18]
xor ecx, ecx
add ebx, 4
add ebx, dword [esi + 0x10]
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10095fe3
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100042e5
xor ebx, ebx
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.10001f43
jmp 0x10004392
push 0x100d2f38
push ebx
push edi
call fcn.10095c92
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
push edi
call fcn.10096511
push 0x100d2f3c
push ebx
push edi
call fcn.10096511
add esp, 0x24
cmp dword [esi + 0x14], 8
jb 0x1000431b
mov esi, dword [esi]
push esi
push ebx
push edi
call fcn.10096511
add esp, 0xc
lea ecx, [ebp - 0x94]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ebx, ebx
push ecx
lea ecx, [ebp - 0x84]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push edi
mov esi, eax
call fcn.10095ea7
pop ecx
test esi, esi
je 0x100042d3
push dword [ebp - 0x94]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x90]
call esi
xor esi, esi
inc esi
jmp 0x100042d5
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.10001f43
push 0x20
pop eax
cmp eax, edi
sbb esi, esi
neg esi
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.10001f43
mov eax, esi
call fcn.1008bb9e
ret
Function at 0x1000442d
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 8
mov eax, 0x100bc492
call fcn.1008bbf4
mov edi, ecx
xor esi, esi
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x14], esi
call fcn.1000563a
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100044a5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100044a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100044a5
lea ecx, [ebp - 0x14]
call fcn.100043a5
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
je 0x100044a8
mov ecx, eax
call fcn.1000442d
test eax, eax
je 0x100044a8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100044a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100044a8
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.100018e3
mov eax, esi
call fcn.1008bb9e
ret

Function at 0x10004702
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1010c070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov ebx, 0x412
mov dword [ebp - 0x424], eax
xor edi, edi
lea eax, [ebp - 0x418]
push ebx
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x420], edi
call fcn.1008e420
add esp, 0xc
mov dword [ebp - 0x41c], 0x208
lea eax, [ebp - 0x420]
push eax
push 0x20119
push edi
push str.SoftwareMicrosoftInternet_ExplorerMain
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004875
push ebx
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], 0x208
push edi
push eax
call fcn.1008e420
add esp, 0xc
lea eax, [ebp - 0x41c]
lea esi, [ebp - 0x418]
mov ebx, edi
push eax
mov eax, esi
push eax
push edi
push edi
jmp 0x100047fa
inc ebx
cmp ebx, 4
ja 0x1000482d
mov eax, dword [ebp - 0x41c]
add eax, 0x209
mov dword [ebp - 0x41c], eax
test esi, esi
je 0x100047d3
lea ecx, [ebp - 0x418]
cmp ecx, esi
je 0x100047d3
push esi
call fcn.10095ea7
mov eax, dword [ebp - 0x41c]
pop ecx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10095fe3
mov esi, eax
pop ecx
test esi, esi
je 0x10004828
lea eax, [ebp - 0x41c]
push eax
push esi
push 0
push 0
push str.Start_Page
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
je 0x1000479d
test edi, edi
jne 0x10004830
test esi, esi
je 0x10004830
push esi
call fcn.10001a38
pop ecx
push eax
push esi
jmp 0x1000483e
push 8
pop edi
jmp 0x10004815
push 8
pop edi
mov ebx, 0x100d1a34
push ebx
call fcn.10001a38
pop ecx
push eax
push ebx
mov ecx, dword [ebp - 0x424]
call fcn.10001dcf
test esi, esi
je 0x1000485e
lea eax, [ebp - 0x418]
cmp eax, esi
je 0x1000485e
push esi
call fcn.10095ea7
pop ecx
cmp dword [ebp - 0x420], 0
je 0x10004873
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008aeea
mov esp, ebp
pop ebp
ret
Function at 0x10004cd3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x100bc5fb
call fcn.1008bbf4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1000158b
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x10004d33
lea eax, [ecx - 1]
test eax, eax
js 0x10004d99
cmp eax, ecx
jg 0x10004d99
movzx eax, word [esi + eax*2]
cmp eax, 0x5c
je 0x10004d33
cmp eax, 0x2f
je 0x10004d33
push 1
push 0x100d2cf8
lea ecx, [ebp - 0x14]
call fcn.10003981
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10004d46
test eax, 0x4800
jne 0x10004d7e
lea ecx, [ebp - 0x14]
call fcn.10004c6e
lea ecx, [ebp - 0x14]
call fcn.100043a5
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], ebx
je 0x10004d7b
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x18], edi
call fcn.1000158b
add eax, 0x10
mov dword [edi], eax
call fcn.10004cd3
pop ecx
test eax, eax
je 0x10004d7e
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.100018e3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.100018e3
mov eax, ebx
call fcn.1008bb9e
ret
push 0x80070057
call fcn.10001e48
int3

Function at 0x10004da4
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1010c070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
jb 0x10004dbc
mov ecx, dword [ecx]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x10004dda
or edx, 0xffffffff
mov eax, edx
jmp 0x10004df2
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
test edx, edx
jg 0x10004df2
jl 0x10004dea
test eax, eax
jae 0x10004df2
or eax, 0xffffffff
mov edx, closesocket
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008aeea
mov esp, ebp
pop ebp
ret
Function at 0x10005146
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1010c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x238], edx
push edi
push 2
mov dword [ebp - 0x234], ecx
mov esi, edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10005183
xor eax, eax
jmp 0x1000524e
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10005245
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x228], eax
je 0x100051c5
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100051a3
jmp 0x100051cb
mov esi, dword [ebp - 0x218]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100051e6
mov eax, esi
jmp 0x1000524e
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x1000520c
cmp dword [ebp - 0x228], esi
je 0x10005212
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100051f6
jmp 0x10005243
mov esi, dword [ebp - 0x228]
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x10005221
sub edx, ecx
lea eax, [ebp - 0x20c]
mov ecx, dword [ebp - 0x238]
sar edx, 1
push edx
push eax
call fcn.10005c27
mov edi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008aeea
mov esp, ebp
pop ebp
ret

Function at 0x1000617f
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push dword [esi]
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
call edi
mov dword [ebp - 4], eax
xor esi, esi
mov dword [ebp - 8], 0x10
push dword [esi + 0x100d3360]
call edi
mov dword [ebp + esi - 0x1c], eax
add esi, 4
cmp esi, 0x10
jl 0x100061a8
mov ebx, dword [ebp - 0xc]
mov esi, 0xe3779b90
mov edx, dword [ebp - 4]
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [esi + ebx]
xor ecx, eax
sub edx, ecx
mov ecx, edx
mov eax, edx
shl ecx, 4
add ecx, dword [ebp - 0x1c]
shr eax, 5
add eax, dword [ebp - 0x18]
xor ecx, eax
lea eax, [esi + edx]
xor ecx, eax
lea esi, [esi + 0x61c88647]
sub ebx, ecx
sub dword [ebp - 8], 1
jne 0x100061c7
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
mov dword [ebp - 4], edx
call edi
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp - 4]
push eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000658f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebx], esi
mov dword [edi + 8], eax
test eax, eax
js 0x100065ad
cmp eax, 3
jl 0x100065b0
mov dword [edi + 8], esi
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1000662d
cmp ecx, 0x1869f
ja 0x1000662d
mov eax, dword [ebp + 0x14]
push esi
push esi
push esi
push esi
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x100065e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x1e8480
mov dword [ebx], eax
jmp 0x10006635
push esi
push esi
push edi
push 0x1000663e
push esi
push esi
call fcn.100968b3
add esp, 0x18
mov dword [edi + 0x18], eax
test eax, eax
jne 0x10006616
push esi
push esi
push edi
push 0x1000663e
push esi
push esi
call fcn.100968b3
add esp, 0x18
mov dword [edi + 0x18], eax
cmp dword [edi + 0x18], esi
jne 0x10006628
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x2dc6c0
jmp 0x100065e4
xor esi, esi
inc esi
jmp 0x10006635
add ecx, 0xf4240
mov dword [ebx], ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x10006b47
Capabilities:
Get common file path

Disassembly:
push 0x43c
mov eax, 0x100bc76b
call fcn.1008bbf4
mov ebx, ecx
mov esi, 0x20a
lea eax, [ebp - 0x430]
push esi
xor edi, edi
push edi
push eax
call fcn.1008e420
add esp, 0xc
lea eax, [ebp - 0x220]
push esi
push edi
push eax
call fcn.1008e420
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x220]
push eax
push edi
push edi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edi, [ebx + 0x20]
cmp dword [edi], 0
jne 0x10006bb7
push edi
call fcn.100b2ab0
mov ecx, dword [edi]
test ecx, ecx
je 0x10006c59
mov esi, dword [ecx]
lea eax, [ebx + 4]
mov edx, ebx
neg edx
sbb edx, edx
and edx, eax
push edx
call dword [esi + 4]
xor ecx, ecx
mov dword [ebp - 0x434], 7
xor eax, eax
mov dword [ebp - 0x438], ecx
mov word [ebp - 0x448], ax
lea eax, [ebp - 0x448]
mov dword [ebp - 4], ecx
push eax
mov ecx, ebx
call fcn.1000674f
lea edx, [ebp - 0x220]
lea ecx, [ebx + 0x28]
xor ebx, ebx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x10006c0c
sub edx, esi
lea eax, [ebp - 0x220]
sar edx, 1
push edx
push eax
call fcn.10005c27
mov ecx, dword [edi]
lea edx, [ebp - 0x448]
cmp dword [ebp - 0x434], 8
lea esi, [ebp - 0x220]
push esi
cmovae edx, dword [ebp - 0x448]
mov eax, dword [ecx]
push edx
call dword [eax + 0xc]
push ebx
push 1
lea ecx, [ebp - 0x448]
call fcn.10001f43
call fcn.1008bb9e
ret
Function at 0x10006daf
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1010c070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x10006ed5
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10006ed5
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test ebx, ebx
je 0x10006ed3
cmp ebx, 0xffffffff
je 0x10006ed3
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp dword [ebp - 8], edi
jne 0x10006ecc
lea ecx, [esi - 1]
cmp ecx, 0x27ff
ja 0x10006ecc
push esi
call fcn.1008b25c
mov edi, eax
pop ecx
test edi, edi
je 0x10006ecc
lea eax, [esi + 0x40]
push eax
mov dword [ebp - 0x14], eax
call fcn.1008b25c
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jne 0x10006e63
push edi
call fcn.1008b265
jmp 0x10006ecb
push esi
push 0
push edi
call fcn.1008e420
lea eax, [esi + 0x40]
push eax
push 0
push dword [ebp - 0x10]
call fcn.1008e420
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
add esp, 0x18
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10006ebc
cmp dword [ebp - 0xc], esi
jne 0x10006ebc
lea eax, [ebp - 0x14]
mov edx, esi
push eax
push dword [ebp - 0x10]
push ecx
mov ecx, edi
call fcn.10006226
add esp, 0xc
test al, al
je 0x10006ebc
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
call fcn.1001b299
push edi
call fcn.1008b265
push dword [ebp - 0x10]
call fcn.1008b265
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1008aeea
mov esp, ebp
pop ebp
ret 8
Function at 0x10007ad0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1010c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
cmp dword [ebp + 8], ebx
je 0x10007b8f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
cmp dword [esi + 4], ebx
je 0x10007ba9
xor ecx, ecx
lea eax, [esi + 0xc]
inc ecx
cmp dword [eax], ebx
je 0x10007ba9
push 0x4ff
push 0x64
push ebx
push eax
push ecx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x10007b8b
cmp eax, 0xffffffff
je 0x10007ba9
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [ebp - 0x20]
inc edi
push edi
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x10007b67
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], 0x12
cmove eax, edi
mov dword [ebp - 0x24], eax
jmp 0x10007b6a
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10007b7e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
cmp eax, 0x2710
ja 0x10007ba9
lea eax, [esi + 0xc]
push 1
pop ecx
cmp dword [esi + 4], ebx
jne 0x10007b0b
jmp 0x10007ba9
xor eax, eax
jmp 0x10007ba6
cmp dword [esi + 0xc], ebx
je 0x10007ba9
push 0xbb8
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
lea ebx, [eax + 1]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008aeea
mov esp, ebp
pop ebp
ret 4