joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403570
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push 0x411220
push 1
push str.Mode
push str.Setup
call esi
xor edi, edi
push 0x411220
push edi
push 0x40d3bc
push str.Setup
mov dword [0x40d030], eax
mov dword [0x40d034], eax
call esi
push 0x411220
push edi
push 0x40d3ac
push str.Setup
mov dword [0x4111a4], eax
call esi
push 0x411220
push edi
push 0x40d3a0
push str.Setup
mov dword [0x4111ac], eax
call esi
push 0x411220
push edi
push 0x40d390
push str.Setup
mov dword [0x4111a0], eax
call esi
mov ecx, dword [0x4111a0]
mov edx, dword [0x4111a4]
mov dword [0x4111a8], eax
push eax
mov eax, dword [0x4111ac]
push eax
push ecx
push edx
call fcn.004037d0
add esp, 0x10
test eax, eax
jne 0x403644
mov eax, dword [0x411198]
push 0x10
push str.FaFa
push str.Invalid_Margin_Values__
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x4111a8], edi
mov dword [0x4111a0], edi
mov dword [0x4111ac], edi
mov dword [0x4111a4], edi
mov ecx, dword [0x4111a4]
mov edx, dword [0x4111ac]
mov eax, dword [0x4111a0]
push 0x411220
mov dword [0x4113a4], ecx
mov ecx, dword [0x4111a8]
push 0x96
push str.Timer
push str.Setup
mov dword [0x4113ac], edx
mov dword [0x4113a0], eax
mov dword [0x4113a8], ecx
call esi
pop edi
mov dword [0x40d04c], eax
mov dword [0x4111f4], eax
pop esi
ret

Function at 0x406451
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x406465
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.004042a1
mov ecx, 0x8bce26f3
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.004042a1
dec esp
cmp ebx, esp
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x40648e
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x40648e
call fcn.004042a1
push ss
or al, 0x65
invalid
Function at 0x408f69
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4107f0
cmp edx, dword [eax]
je 0x408f8b
add eax, 8
inc ecx
cmp eax, 0x410880
jl 0x408f7c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4107f0]
jne 0x4090b9
mov eax, dword [0x410f24]
cmp eax, 1
je 0x409093
test eax, eax
jne 0x408fbc
cmp dword [0x410734], 1
je 0x409093
cmp edx, 0xfc
je 0x4090b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408ff3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407f80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409760
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409036
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409760
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c548
push edi
call fcn.0040a710
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407f80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407f90
lea eax, [ebp - 0xa0]
push 0x40c528
push eax
call fcn.00407f90
push dword [esi + 0x4107f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407f90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a685
add esp, 0x2c
pop edi
jmp 0x4090b9
lea eax, [ebp + 8]
lea esi, [esi + 0x4107f4]
push 0
push eax
push dword [esi]
call fcn.00409760
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1000aff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1000afff
pop dword [ebp - 0x40]
mov eax, 0x8b3e8726
add eax, 0x84c228d9
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x6d2de644
add dword [ebp - 0x50], 0xe1245f07
mov dword [ebp - 0x4c], 0xa9cfe2f2
add dword [ebp - 0x4c], 0x88636953
mov dword [ebp - 0x48], 0x8bc68d86
add dword [ebp - 0x48], 0xc085b6a8
mov dword [ebp - 0x44], 0x8cc5aca4
add dword [ebp - 0x44], 0x733a535c
lea eax, [ebp - 0x50]
push eax
mov eax, 0x22ce2c25
add eax, 0xed3793fb
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xd8bfbc38
sub dword [ebp - 0x50], 0x644d52e2
mov dword [ebp - 0x4c], 0x679913c1
sub dword [ebp - 0x4c], 0x262cb24c
mov dword [ebp - 0x48], 0xc2f3bc3c
add dword [ebp - 0x48], 0xa07bb030
mov dword [ebp - 0x44], 0x5578c4d0
sub dword [ebp - 0x44], 0x5578c4d0
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x532f5
push 0
call eax
mov ecx, 0x41c2a9d7
add ecx, 0xbe3d9dd6
xor ebx, ebx
add ebx, eax
mov edi, 0xee517062
sub edi, 0xde485462
add edi, dword [ebp - 0x40]
mov edx, 0x2d256696
sub edx, 0x3753ab63
mov dword [ebp - 0x2c], 0xf05020cc
mov esi, dword [edi]
add dword [ebp - 0x28], ebx
xor esi, edx
add dword [ebp - 0x10], 0x5794efa1
mov dword [ebx], esi
xor dword [ebp - 0x3c], 0xa0e582b1
add ebx, 0xdde88aab
sub ebx, 0xdde88aa7
add edi, 0x19008858
sub edi, 0x19008854
loop 0x1000b11e
add eax, 0x65a6a6c9
sub eax, 0x65a59542
xor ebx, ebx
add ebx, eax
add eax, 0xcb1f09ef
sub eax, 0xcb1f09ea
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x1000db80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057176
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x10082d0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
cmp dword [eax + 0x18], 0
je 0x1000dcaf
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::get_unsigned_short_int_const__
mov edi, dword [esi + 4]
mov dword [ebp - 4], 0
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::getBinary_void_
cmp dword [edi + 0x14], eax
mov eax, edi
setne cl
cmp byte [ebp + 0xc], 0
je 0x1000dbf0
test cl, cl
je 0x1000dbf0
push dword [edi + 0x2c]
lea ecx, [ebp - 0x10]
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::get_unsigned_short_int_const__
mov eax, dword [esi + 4]
push dword [eax + 0x14]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::get_unsigned_short_int_const__
mov edi, eax
test edi, edi
jne 0x1000dc30
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1000dc30
mov eax, dword [esi + 4]
push dword [eax + 0x18]
push 1
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, 0x34
cmp eax, 1
cmovne edi, ecx
mov eax, dword [esi + 4]
push dword [eax + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
mov ecx, dword [esi + 4]
add esp, 4
push dword [ecx + 0x18]
test eax, eax
je 0x1000dc74
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
add esp, 4
lea ecx, [ebp - 0x10]
mov edi, 0x34
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::get_unsigned_short_int_const__
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
mov ecx, dword [esi + 4]
add esp, 4
cmp edx, dword [ecx + 0x24]
jl 0x1000dc92
jg 0x1000dc8c
cmp eax, dword [ecx + 0x20]
jbe 0x1000dc92
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
lea ecx, [ebp - 0x10]
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::get_unsigned_short_int_const__
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 0x32
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10010090
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
push 0
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::get_unsigned_short_int_const__
cwde
test eax, eax
je 0x100100c2
mov ecx, dword [esi]
and al, 3
pop esi
cmp al, 2
jne 0x100100b9
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10033310
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10033540
mov eax, 0x30
pop esi
pop ebp
ret
Function at 0x10035310
Capabilities:
Get graphical window text
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x10082d0c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::get_unsigned_short_int_const__
mov ebx, eax
test ebx, ebx
je 0x1003547c
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x1003535c
push 4
push edi
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
jne 0x10035358
push edi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x1003535c
mov edi, eax
jmp 0x10035340
push 0x100
lea eax, [ebp - 0x184]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x10035474
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x10035474
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
jne 0x10035474
test edi, edi
je 0x10035474
push esi
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test esi, esi
mov dword [ebp - 0x188], eax
pop esi
je 0x10035474
cmp eax, edi
je 0x10035474
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
je 0x10035421
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push edi
push dword [ebp - 0x188]
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100544a0
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2000
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 2
lea eax, [ebp - 0x188]
mov dword [ebp - 0x188], 0
push eax
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 2
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100544a0
mov esp, ebp
pop ebp
ret
Function at 0x100354a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x100354cb
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
push dword [ebp - 0xc]
push esi
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::get_unsigned_short_int_const__
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x100354f4
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov edx, dword [ebp - 8]
test eax, eax
cmove edx, esi
mov dword [ebp - 8], edx
test edx, edx
jne 0x1003550a
lea eax, [ebp - 0xc]
push eax
push 0x10035590
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [ebp - 8]
test edx, edx
je 0x10035551
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10083c98]
mov dword [ebp - 4], edx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10083c10]
cmp eax, dword [ecx + 4]
jg 0x10035558
jmp 0x1003552e
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0
push dword [0x10083c0c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 8]
test eax, eax
pop esi
cmovne ecx, dword [ebp - 4]
mov eax, ecx
mov esp, ebp
pop ebp
ret
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
push 0x10083c10
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::get_unsigned_short_int_const__
add esp, 4
cmp dword [0x10083c10], 0xffffffff
jne 0x1003552b
push str.adobe.sccore.get.dialog.owner
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push 0x10083c10
mov dword [0x10083c0c], eax
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::get_unsigned_short_int_const__
add esp, 4
jmp 0x1003552b
Function at 0x100356d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005ac13
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10082d0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.ScCore::Thread.0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 1
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::get_unsigned_short_int_const__
mov edi, eax
mov ebx, edx
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push sym.ScCore.dll_private:_static_unsigned_int___stdcall_ScCore::Thread::go_void__
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10035768
mov dword [esi + 0xc], 0x20
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov eax, dword [0x10083ae8]
test eax, eax
jne 0x1003577c
call sym.ScCore.dll_public:_static_class_ScCore::Context____cdecl_ScCore::Context::get_void_
mov dword [eax + 0x58], edi
mov dword [eax + 0x5c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10035810
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0xc], 0
jne 0x1003581f
push dword [ecx + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x10035b60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10083c3c]
test eax, eax
jne 0x10035bc9
push dword [0x100829d0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x10035bc9
push esi
push 0x178
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::get_unsigned_short_int_const__
add esp, 4
test eax, eax
je 0x10035b96
mov ecx, eax
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::get_unsigned_short_int_const__
mov esi, eax
jmp 0x10035b98
xor esi, esi
cmp byte [0x10083c38], 0
jne 0x10035bb2
mov ecx, esi
mov dword [0x10083c3c], esi
call fcn.1001d6f0
mov eax, esi
pop esi
ret
push esi
push dword [0x100829d0]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esi
call fcn.1001d6f0
mov eax, esi
pop esi
ret

Function at 0x10035bd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x100829d0]
cmp eax, 0xffffffff
je 0x10035c26
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10035c17
mov ecx, dword [0x10083c3c]
xor eax, eax
cmp esi, ecx
cmove ecx, eax
mov dword [0x10083c3c], ecx
mov ecx, esi
call fcn.1001d720
mov ecx, esi
call fcn.1001d6c0
push 0x178
push esi
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::get_unsigned_short_int_const__
add esp, 8
push 0
push dword [0x100829d0]
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret
Function at 0x10001550
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x5a4
mov eax, dword [0x10046ac0]
xor eax, esp
mov dword [esp + 0x59c], eax
push 0x400
lea eax, [esp + 0x195]
push 0
push eax
mov byte [esp + 0x19c], 0
call fcn.10025ab0
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x401
lea edx, [esp + 0x194]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x10001610
lea eax, [esp + 0x190]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10001618
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x10001618
cmp word [eax + 0xa], 4
jl 0x10001618
mov edx, ecx
mov eax, dword [edx]
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax]
push ecx
push edx
push str._u._u._u._u
push esi
call fcn.10003470
add esp, 0x18
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov ecx, dword [esp + 0x59c]
xor ecx, esp
call fcn.10022edc
add esp, 0x5a4
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x59c]
xor ecx, esp
xor eax, eax
call fcn.10022edc
add esp, 0x5a4
ret
Function at 0x10001a10
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x10038df8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10046ac0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor edi, edi
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], edi
call fcn.10001c30
mov dword [esp + 0x34], edi
push 0x288
mov dword [esp + 0x1c], 0x288
call fcn.100235e2
mov ebp, eax
add esp, 4
cmp ebp, edi
jne 0x10001a75
lea esi, [esp + 0x20]
call fcn.10001ca0
xor eax, eax
jmp 0x10001c17
lea eax, [esp + 0x18]
push eax
push ebp
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x10001aa1
push ebp
call fcn.100236ac
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call fcn.100235e2
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x10001a65
lea edx, [esp + 0x18]
push edx
push ebp
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x10001ba2
mov esi, ebp
cmp ebp, edi
je 0x10001b7e
mov edi, edi
mov edi, 6
cmp dword [esi + 0x1a0], edi
jne 0x10001b74
lea ebx, [esi + 0x10c]
push str.Bluetooth
push ebx
call fcn.10023740
add esp, 8
test eax, eax
ja 0x10001b74
cmp dword [esi + 0x190], edi
jne 0x10001b74
push 0x1003e240
push ebx
call fcn.10023740
add esp, 8
test eax, eax
jbe 0x10001b74
movzx eax, byte [esi + 0x199]
movzx ecx, byte [esi + 0x198]
movzx edx, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push ecx
movzx ecx, byte [esi + 0x195]
push edx
movzx edx, byte [esi + 0x194]
push eax
push ecx
push edx
lea eax, [esp + 0x38]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.10003470
add esp, 0x20
lea ecx, [esi + 0x1b0]
push ecx
lea ecx, [esp + 0x28]
call fcn.10003170
lea edx, [esi + 8]
push edx
lea ecx, [esp + 0x2c]
call fcn.10003170
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x20]
push eax
call fcn.10001d70
mov esi, dword [esi]
test esi, esi
jne 0x10001ac0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x10001ba2
mov dword [esp + 0x1c], 1
push ebp
call fcn.100236ac
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10001bd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001bf3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001c13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x10004be0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10004bf9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10004c34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10004c30
lea ebx, [ebx]
cmp esi, eax
jae 0x10004c34
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10004c20
cmp esi, eax
jb 0x10004c3a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x10006d30
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x10038f29
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10046ac0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
call fcn.10016fba
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x10006d7f
push 0x80004005
call fcn.100033a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push ecx
push ebx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], ebx
call edi
mov edx, dword [esp + 0x14]
push edx
call fcn.10016be6
mov esi, eax
add esp, 4
lea eax, [esp + 0x14]
push eax
push esi
call edi
test eax, eax
je 0x10006de6
cmp esi, ebx
jne 0x10006dcf
xor eax, eax
jmp 0x10006ddd
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10006dd4
sub eax, edx
push eax
push esi
mov ecx, ebp
call fcn.100030c0
push esi
call fcn.10016bf1
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x10006e10
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x10038f29
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10046ac0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
call fcn.10016fba
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x10006e5f
push 0x80004005
call fcn.100033a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push ecx
push ebx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], ebx
call edi
mov edx, dword [esp + 0x14]
push edx
call fcn.10016be6
mov esi, eax
add esp, 4
lea eax, [esp + 0x14]
push eax
push esi
call edi
test eax, eax
je 0x10006ec6
cmp esi, ebx
jne 0x10006eaf
xor eax, eax
jmp 0x10006ebd
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10006eb4
sub eax, edx
push eax
push esi
mov ecx, ebp
call fcn.100030c0
push esi
call fcn.10016bf1
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4