joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x10015776
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10015771
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x1001579e
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x10015787
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.100330d0
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret

Function at 0x100157c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
cmp byte [esi], 0
je 0x10015805
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10015800
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x10015832
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x10015816
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call fcn.100330d0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x10015850
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x1001583d
cmp byte [esi + 8], 0
je 0x1001583d
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret
Function at 0x10015960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x100159a9
cmp byte [edi + 1], 0
je 0x10015997
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x100159af
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
push ebx
je 0x100159d4
cmp byte [edi + 1], 0
je 0x100159cd
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x100159d7
xor ebx, ebx
mov dword [ebp - 0x14], ebx
jmp 0x100159e6
mov ebx, dword [edi + 0x1c]
mov eax, 0xffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp ebx, eax
jae 0x100159e9
mov dword [ebp - 0x10], ebx
push esi
push 0x404
call fcn.10030415
mov esi, eax
add esp, 4
test esi, esi
jne 0x10015a11
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ecx, eax
jbe 0x10015b18
jmp 0x10015a30
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x20], edx
sub ebx, ecx
mov dword [ebp - 0x1c], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x10015a7a
cmp byte [edi + 1], 0
je 0x10015b18
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x10015a7d
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x18], ebx
je 0x10015aa5
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10015aa0
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x10015ace
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x10015ab8
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0x18], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.100330d0
mov eax, dword [ebp - 0x18]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x10015b18
lea eax, [ebx - 3]
test eax, eax
js 0x10015b00
mov edi, edi
dec eax
cmp byte [eax + esi], 0x50
jne 0x10015afc
cmp byte [eax + esi + 1], 0x4b
jne 0x10015afc
cmp byte [eax + esi + 2], 5
jne 0x10015afc
cmp byte [eax + esi + 3], 6
je 0x10015b35
test eax, eax
jns 0x10015ae0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x10015b18
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
cmp eax, ecx
jb 0x10015a30
push esi
call fcn.100300d6
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
jmp 0x10015b03
Function at 0x10016b90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x10016c51
cmp dword [esi + 4], 0xffffffff
jne 0x10016c51
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016bc1
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x10016bee
cmp eax, 0x2f
je 0x10016bee
push 0x100f13b0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x10016c14
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10016c14
mov eax, 0x2000000
pop edi
pop esi
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.10015600
add esp, 8
test eax, eax
jne 0x10016c34
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
mov ecx, eax
call fcn.10015b40
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
pop edi
pop esi
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x10017460
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x10017492
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10017492
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x10017546
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x100174af
cmp ax, 0x5c
jne 0x100174b1
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x100174a3
cmp esi, ebx
je 0x100174f6
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.100330d0
add esp, 0xc
cmp esi, 0x208
jae 0x10017556
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, edi
mov word [ebp + esi - 0x414], ax
call fcn.10017460
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x10017517
push 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10017546
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret
call fcn.10030d66
int3
Function at 0x100186b0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], ebx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x1001879d
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x100186f4
cmp dword [esi + 0x40], ebx
jae 0x100186f4
push eax
call fcn.1002f7b8
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x1001870c
lea eax, [ebx + ebx]
push eax
call fcn.1002f7cc
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push dword [esi + 0x3c]
call fcn.100330d0
xor edx, edx
add esp, 0xc
mov dword [ebp - 0xc], edx
test ebx, ebx
je 0x1001879a
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x100f0e48]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
and eax, 0xff
shr edx, 8
xor cl, bl
mov ebx, dword [ebp - 8]
xor edx, dword [eax*4 + 0x100f0e48]
mov dword [esi + 0x38], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp - 0xc], edx
cmp edx, ebx
jb 0x10018722
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100187dd
mov edx, dword [esi + 0x24]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x100187b8
mov dword [esi + 0x14], 0x30000
jmp 0x10018810
push ebx
add ecx, edx
push edi
push ecx
call fcn.100330d0
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x10018809
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x14], 0x1000000
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret 8
Function at 0x1001a2f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push sym.SmUtils.dll_private:_static_unsigned_long_int___stdcall_CAdLogic::LoginThreadProc_void__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret
Function at 0x10020bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cdf3b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
call fcn.10055816
push 0x84
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.10034ae0
lea eax, [ebp - 0x94]
push eax
call fcn.10050d8e
add esp, 0x14
mov dword [ebp - 4], 0
call fcn.10050f4d
dec eax
je 0x10020c8b
sub eax, 3
jne 0x10020caf
lea ecx, [ebp - 0x94]
call fcn.1004defe
push eax
call fcn.100557cd
add esp, 4
push 0x100f2494
push 0x67
call fcn.10050f38
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10020caf
push esi
call fcn.10050f38
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10020c82
push esi
call fcn.10050f38
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x10020c82
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.10055823
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x10020caf
push str.ResUpdateRemind_
lea ecx, [ebp - 0x94]
call fcn.1004df5f
lea ecx, [ebp - 0x94]
call fcn.1004defe
push eax
call fcn.100557cd
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.1004ddfa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret
Function at 0x10020f90
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
add ecx, 4
push ebx
push esi
push edi
mov edi, dword [ecx]
mov dword [ebp - 4], ecx
mov esi, dword [edi]
cmp esi, edi
je 0x10021092
jmp 0x10020fb0
mov ecx, dword [ecx]
mov edx, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x10020fd5
cmp dword [eax + 0x10], edx
jge 0x10020fcb
mov eax, dword [eax + 8]
jmp 0x10020fcf
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10020fc1
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov edx, dword [esi + 0x10]
cmp ecx, eax
je 0x10020fee
cmp edx, dword [ecx + 0x10]
jl 0x10020fee
mov dword [ebp - 8], ecx
lea eax, [ebp - 8]
jmp 0x10020ff4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ecx]
je 0x10021012
mov eax, dword [eax + 0x14]
push 0
push 0
push 0x52c
push dword [eax + 8]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0xffffffffffffffff
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1002102f
push 0
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.1002f7b8
add esp, 4
cmp byte [esi + 0xd], 0
jne 0x10021087
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x1002106c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10021087
lea ebx, [ebx]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10021060
jmp 0x10021087
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10021085
cmp esi, dword [eax + 8]
jne 0x10021085
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10021075
mov esi, eax
mov ecx, dword [ebp - 4]
cmp esi, edi
jne 0x10020fb0
mov eax, dword [ecx]
mov edi, dword [eax + 4]
mov esi, edi
cmp byte [edi + 0xd], 0
jne 0x100210be
nop
push dword [esi + 8]
call fcn.100194d0
mov esi, dword [esi]
push edi
call fcn.1002f7b8
mov ecx, dword [ebp - 4]
add esp, 4
cmp byte [esi + 0xd], 0
mov edi, esi
je 0x100210a0
mov eax, dword [ecx]
pop edi
pop esi
pop ebx
mov dword [eax + 4], eax
mov eax, dword [ecx]
mov dword [eax], eax
mov eax, dword [ecx]
mov dword [eax + 8], eax
mov dword [ecx + 4], 0
mov esp, ebp
pop ebp
ret
Function at 0x100210e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
lea edi, [ecx + 4]
mov ecx, esi
mov dword [ebp - 8], edi
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10021114
cmp dword [eax + 0x10], edx
jge 0x1002110a
mov eax, dword [eax + 8]
jmp 0x1002110e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10021100
cmp ecx, esi
je 0x10021120
mov dword [ebp - 4], ecx
cmp edx, dword [ecx + 0x10]
jge 0x10021123
mov dword [ebp - 4], esi
mov ebx, dword [edi]
lea esi, [ebp - 4]
mov esi, dword [esi]
cmp esi, ebx
je 0x100211c8
mov edi, ebx
mov ecx, ebx
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x10021154
nop
cmp dword [eax + 0x10], edx
jge 0x1002114a
mov eax, dword [eax + 8]
jmp 0x1002114e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10021140
cmp ecx, edi
je 0x10021160
mov dword [ebp - 4], ecx
cmp edx, dword [ecx + 0x10]
jge 0x10021163
mov dword [ebp - 4], edi
lea eax, [ebp - 4]
mov eax, dword [eax]
cmp eax, ebx
je 0x10021181
mov eax, dword [eax + 0x14]
push 0
push 0
push 0x52c
push dword [eax + 8]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov eax, dword [esi + 0x14]
push 0xffffffffffffffff
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100211a4
mov eax, dword [esi + 0x14]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x14]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x14]
call fcn.1002f7b8
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
add esp, 4
push esi
push eax
call fcn.10019250
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100212b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 8], 0x14
jae 0x10021373
push ebx
push edi
push 0x18
call fcn.1002f7cc
add esp, 4
mov edi, eax
mov eax, dword [ebp + 0xc]
push 0
push 0
push 0
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [edi + 0x14], esi
mov dword [edi], 0
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
lea ebx, [edi + 8]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push edi
push sym.SmUtils.dll_private:_static_unsigned_long_int___stdcall_CGlobalMsgDispatch::MsgLoopProc_void__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [edi + 4]
test ecx, ecx
je 0x1002132b
mov dword [ecx], eax
jmp 0x10021332
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1002133b
mov eax, dword [ebp - 8]
mov dword [ebx], eax
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 4]
call fcn.10023130
mov dword [eax], edi
mov eax, 1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002d530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x104], 0
push 0xff
push 0
lea eax, [ebp - 0x103]
push eax
call fcn.10034ae0
add esp, 0xc
mov dword [ebp - 0x508], 1
mov dword [ebp - 0x50c], 0x100
push 0x200
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_
lea ecx, [ebp - 0x304]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Connection
lea ecx, [ebp - 0x304]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x510]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x304]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x514], eax
cmp dword [ebp - 0x514], 0
jne 0x1002d669
lea ecx, [ebp - 0x50c]
push ecx
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x508]
push eax
push 0
push str.PnpInstanceID
mov ecx, dword [ebp - 0x510]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x514], eax
cmp dword [ebp - 0x514], 0
jne 0x1002d65c
push 0x200
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x100f3010
lea ecx, [ebp - 0x504]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x1002d65c
mov edx, dword [ebp - 0x510]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1002d66b
mov eax, dword [ebp - 0x510]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret
Function at 0x1002d680
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0
mov byte [ebp - 0x84], 0
push 0x7f
push 0
lea eax, [ebp - 0x83]
push eax
call fcn.10034ae0
add esp, 0xc
mov byte [ebp - 0x284], 0
push 0x1ff
push 0
lea ecx, [ebp - 0x283]
push ecx
call fcn.10034ae0
add esp, 0xc
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.10034ae0
add esp, 0xc
push 0x288
call fcn.10030415
add esp, 4
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x288], 0x288
lea ecx, [ebp - 0x288]
push ecx
mov edx, dword [ebp - 0x290]
push edx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0x6f
jne 0x1002d768
mov eax, dword [ebp - 0x290]
push eax
call fcn.100300d6
add esp, 4
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.10030415
add esp, 4
mov dword [ebp - 0x290], eax
lea edx, [ebp - 0x288]
push edx
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0
jne 0x1002d8c3
mov ecx, dword [ebp - 0x290]
mov dword [ebp - 0x28c], ecx
cmp dword [ebp - 0x28c], 0
je 0x1002d8b6
mov edx, dword [ebp - 0x28c]
cmp dword [edx + 0x1a0], 6
jne 0x1002d8a8
push 0x100
mov eax, dword [ebp - 0x28c]
add eax, 8
push eax
lea ecx, [ebp - 0x284]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [ebp - 0x284]
push edx
call fcn.1002d530
add esp, 4
test eax, eax
jne 0x1002d7ef
jmp 0x1002d8c3
mov eax, 1
imul ecx, eax, 5
mov edx, dword [ebp - 0x28c]
movzx eax, byte [edx + ecx + 0x194]
push eax
mov ecx, 1
shl ecx, 2
mov edx, dword [ebp - 0x28c]
movzx eax, byte [edx + ecx + 0x194]
push eax
mov ecx, 1
imul edx, ecx, 3
mov eax, dword [ebp - 0x28c]
movzx ecx, byte [eax + edx + 0x194]
push ecx
mov edx, 1
shl edx, 1
mov eax, dword [ebp - 0x28c]
movzx ecx, byte [eax + edx + 0x194]
push ecx
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 0x28c]
movzx ecx, byte [eax + edx + 0x194]
push ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x28c]
movzx edx, byte [ecx + eax + 0x194]
push edx
push str._02X_02X_02X_02X_02X_02X
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x298], 1
mov eax, dword [ebp - 0x28c]
mov ecx, dword [eax]
mov dword [ebp - 0x28c], ecx
cmp dword [ebp - 0x28c], 0
jne 0x1002d79b
cmp dword [ebp - 0x290], 0
je 0x1002d8db
mov edx, dword [ebp - 0x290]
push edx
call fcn.100300d6
add esp, 4
mov eax, dword [ebp - 0x298]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret