joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465434
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x465567
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x423fec]
call fcn.00424158
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x46553d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004241f8
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.004050f0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x46557c
call fcn.00405198
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00424460
lea ecx, [ebp - 4]
mov edx, 0x4655b8
mov eax, dword [ebp - 0xc]
call fcn.004248b8
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040f36c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x465520
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4655c4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4c39d4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465527
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x465614
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x46565b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46563e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46564f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x46565b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x46dff4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x46e045
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x46e02c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x46e01c
jmp 0x46e045
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x46e02d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47cb80
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
ret

Function at 0x47ea74
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40f8ec]
call fcn.004059dc
xor eax, eax
push ebp
push 0x47ec15
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c3cc0], 0
jne 0x47eacf
mov ecx, dword [0x53d6b4]
mov dl, 1
mov eax, dword [0x4087cc]
call fcn.0040d6f8
call fcn.00404814
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.004036e8
mov eax, ebx
call fcn.004057e4
mov dword [ebp - 0x24], eax
mov esi, 0x47ec24
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406e90
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.004057f4
test eax, eax
jle 0x47ebb8
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x47eba4
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004050f0
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x47eb4a
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00405108
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x47eb60
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00405108
mov eax, dword [ebp - 0x54]
call fcn.00405310
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004050f0
mov eax, dword [ebp - 0x58]
call fcn.00405310
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x47eba6
xor eax, eax
test al, al
je 0x47ebb1
mov ebx, 0x15
jmp 0x47ebbd
mov ebx, 0x10
jmp 0x47ebbd
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4c3cc0]
call fcn.0047e8f4
mov eax, dword [ebp - 4]
call fcn.0047e8f4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406ea8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ec1c
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404ea4
lea eax, [ebp - 0xc]
mov edx, dword [0x40f8ec]
call fcn.00405aac
ret
Function at 0x4823f4
Capabilities:
Hide graphical window

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
mov eax, ebx
call fcn.00481e34
test byte [ebx + 0x285], 4
jne 0x482489
mov edx, esp
mov eax, ebx
call fcn.00450d24
push esp
mov eax, ebx
call fcn.004592d8
push eax
push 0
mov eax, ebx
test eax, eax
je 0x482429
sub eax, 0xfffffd34
push eax
push 0
push 0xfffffffffffffffb
mov eax, dword [ebx + 0x260]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
cmp dword [ebx + 0x274], 0
jne 0x48245a
mov ecx, dword [0x53d96c]
mov dl, 1
mov eax, dword [0x47e320]
call fcn.0040d6f8
call fcn.00404814
mov eax, ebx
call fcn.004829cc
cmp byte [ebx + 0x57], 0
jne 0x482490
mov eax, ebx
call fcn.004594e8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x482490
push 0
mov eax, ebx
call fcn.004594e8
push eax
call sub.user32.dll_ShowWindow
jmp 0x482490
mov eax, ebx
call fcn.004556d4
add esp, 0x10
pop ebx
ret

Function at 0x48699c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x486a03
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
call sub.user32.dll_GetWindowTextLengthA
mov ebx, eax
lea edi, [ebx + 1]
mov edx, edi
lea eax, [ebp - 4]
call fcn.004055a0
push edi
mov eax, dword [ebp - 4]
call fcn.00405310
push eax
push esi
call sub.user32.dll_GetWindowTextA
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404ed4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486a0a
lea eax, [ebp - 4]
call fcn.00404e80
ret

Function at 0x48db70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
push 0x40
push 0x1000
push pe_nt_image_headers32
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48dbfa
xor edx, edx
push ebp
push 0x48dbdb
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov dword [eax], 0x448b5050
mov dword [eax + 4], 0x44890824
mov dword [eax + 8], 0x58b0424
lea edx, [ebx + 4]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0x8244489
mov dword [eax + 0x14], 0x25ff9058
mov dword [eax + 0x18], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48dbfa
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x48ee70
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405300
mov eax, dword [ebp - 8]
call fcn.00405300
mov eax, dword [ebp - 0xc]
call fcn.00405300
xor eax, eax
push ebp
push 0x48ef9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.00405310
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 3
mov eax, dword [ebp - 0xc]
call fcn.00405310
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
call fcn.0043b010
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00405310
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48ef84
xor eax, eax
push ebp
push 0x48ef7d
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
push 0
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x48ef5d
push 0
push 0
push 0x25
push 0
call sub.wininet.dll_InternetSetOptionA
test eax, eax
jne 0x48ef61
xor eax, eax
jmp 0x48ef63
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ef84
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48efa6
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ea4
ret
Function at 0x48efb0
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405300
mov eax, dword [ebp - 8]
call fcn.00405300
mov eax, dword [ebp - 0xc]
call fcn.00405300
mov eax, dword [ebp + 0xc]
call fcn.00405300
xor eax, eax
push ebp
push 0x48f11a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.00405310
mov esi, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], 3
mov eax, 0x48f130
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00405310
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48f0f7
xor edx, edx
push ebp
push 0x48f0f0
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 3
mov eax, dword [ebp + 0xc]
call fcn.00405310
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405310
push eax
movzx eax, word [ebp + 8]
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetConnectA
test eax, eax
je 0x48f0d9
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x48f0d0
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionA
test eax, eax
jne 0x48f0d4
xor eax, eax
jmp 0x48f0d6
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f0f7
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f121
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ea4
lea eax, [ebp + 0xc]
call fcn.00404e80
ret
Function at 0x48f138
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov byte [ebp - 1], 0
mov ebx, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, 0x48f200
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x48f204
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
push 0x48f200
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x48f1f7
xor eax, eax
push ebp
push 0x48f1f0
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x4b
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f1f7
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
movzx eax, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48f58c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x48f79e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x105
mov eax, dword [ebp - 0x20]
call fcn.00402f7c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x48f60a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
je 0x48f5f4
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00405078
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f611
mov eax, dword [ebp - 0x10]
call fcn.00402f98
ret

Function at 0x490b74
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov bl, 2
lea eax, [ebp - 0xa]
xor ecx, ecx
mov edx, 0xa
call fcn.004036e8
push 0xa
lea eax, [ebp - 0xa]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
je 0x490bae
cmp byte [ebp - 0xa], 0x31
jne 0x490bac
mov bl, 1
jmp 0x490bae
xor ebx, ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49248c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.00459888
test al, al
je 0x49254b
mov byte [ebp - 9], 0
xor ebx, ebx
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 8], eax
jmp 0x492529
cmp word [esi + 0x65a], 0
je 0x4924dd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [esi + 0x65c]
call dword [esi + 0x658]
movzx eax, byte [esi + 0x650]
or al, byte [ebp - 9]
jne 0x492500
cmp dword [ebp - 4], 0
jbe 0x4924fc
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
ja 0x492500
xor ebx, ebx
jmp 0x492502
mov bl, 1
test bl, bl
jne 0x49254b
mov eax, dword [0x53dafc]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
jne 0x49254b
mov eax, dword [0x53dafc]
mov eax, dword [eax]
call fcn.004490e8
push 1
call sub.kernel32.dll_Sleep_2
test esi, esi
je 0x49254b
cmp byte [esi + 0x5f0], 0
jne 0x49254b
mov edx, 0xfffffdf3
mov eax, esi
call fcn.00482804
cmp eax, 4
jne 0x4924ba
mov byte [esi + 0x650], 0
test bl, bl
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x493ffc
Capabilities:
Hash data using sha256

Disassembly:
push ebx
xor ecx, ecx
mov edx, 0x4c3f70
mov ebx, dword [edx]
mov dword [eax + ecx*4 + 4], ebx
inc ecx
add edx, 4
cmp ecx, 8
jne 0x494004
xor edx, edx
mov dword [eax + 0x24], edx
xor edx, edx
mov dword [eax + 0x28], edx
xor edx, edx
mov dword [eax + 0x6c], edx
pop ebx
ret
Function at 0x4941a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405300
xor eax, eax
push ebp
push 0x49431c
push dword fs:[eax]
mov dword fs:[eax], esp
or ebx, 0xffffffff
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea edx, [ebp - 0x20]
xor ecx, ecx
mov eax, 0x494334
call fcn.0040abd0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 8]
call fcn.00405310
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4942f9
lea eax, [ebp - 0xc]
mov edx, 0x400
call fcn.004055a0
lea eax, [ebp - 0xc]
call fcn.00405370
mov edx, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x494238
sub eax, 4
mov eax, dword [eax]
xor ecx, ecx
xchg edx, eax
call fcn.004036e8
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x49424c
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405310
push eax
push 0
push 0
push 0x494394
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4942f0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x49427e
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jl 0x4942f0
lea eax, [ebp - 0x24]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00405378
mov eax, dword [ebp - 0x24]
mov edx, 0x4943ac
call fcn.004052a8
jne 0x4942f0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x4943b0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 2
je 0x4942dd
test eax, eax
jne 0x4942e1
cmp dword [ebp - 0x18], 1
jne 0x4942e1
xor ebx, ebx
jmp 0x4942f0
test eax, eax
jne 0x4942f0
cmp dword [ebp - 0x18], 2
jne 0x4942f0
mov ebx, 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494323
lea eax, [ebp - 0x24]
call fcn.00404e80
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ea4
ret
Function at 0x4943e0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x494516
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00404e80
xor edi, edi
lea eax, [ebp - 0x12]
xor ecx, ecx
mov edx, 6
call fcn.004036e8
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
call sub.Iphlpapi.dll_GetAdaptersInfo
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4943c0]
call fcn.0040668c
add esp, 4
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.Iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x494496
test ebx, ebx
je 0x494496
lea edx, [ebp - 8]
lea eax, [ebx + 8]
call fcn.0040a6e0
mov eax, dword [ebp - 8]
call fcn.004941a4
mov esi, eax
cmp esi, 1
je 0x494478
test esi, esi
jne 0x494490
lea edx, [ebp - 0x12]
lea eax, [ebx + 0x194]
mov ecx, 6
call fcn.0040316c
inc edi
test esi, esi
je 0x494496
mov ebx, dword [ebx]
test ebx, ebx
jne 0x49445a
test edi, edi
jle 0x4944f2
mov eax, dword [ebp - 0xc]
push eax
movzx eax, byte [ebp - 0x12]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0
movzx eax, byte [ebp - 0x11]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
movzx eax, byte [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
movzx eax, byte [ebp - 0xf]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
movzx eax, byte [ebp - 0xe]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
movzx eax, byte [ebp - 0xd]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x48]
mov ecx, 5
mov eax, 0x49452c
call fcn.0040abd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49451d
lea eax, [ebp - 8]
call fcn.00404e80
lea eax, [ebp - 4]
mov edx, dword [0x4943c0]
call fcn.004067ac
ret
Function at 0x494d98
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x494e9e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [esi], eax
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.004055a0
push 0x104
mov eax, dword [ebp - 4]
call fcn.00405310
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
je 0x494e88
mov eax, dword [ebp - 4]
test eax, eax
je 0x494def
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jl 0x494e0e
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
add al, 0xbf
sub al, 0x1a
jb 0x494e0a
add al, 0xfa
sub al, 0x1a
jb 0x494e0a
xor eax, eax
jmp 0x494e10
mov al, 1
jmp 0x494e10
xor eax, eax
test al, al
je 0x494e88
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x494e88
lea eax, [ebp - 4]
mov edx, 3
call fcn.004055a0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405310
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x494e63
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov bl, 1
jmp 0x494e88
call sub.kernel32.dll_GetLastError
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x494e7f
cmp eax, dword [esp]
pop edx
pop eax
jne 0x494e88
call sub.kernel32.dll_GetTickCount_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494ea5
lea eax, [ebp - 4]
call fcn.00404e80
ret
Function at 0x4957e4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405300
xor eax, eax
push ebp
push 0x49592f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp esi, 0x80000001
jne 0x49582e
lea eax, [ebp - 0x18]
push eax
push esi
call sub.advapi32.dll_RegOpenCurrentUser
test eax, eax
jne 0x495914
jmp 0x495831
mov dword [ebp - 0x18], esi
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.004956f4
mov edi, eax
test edi, edi
jle 0x495903
lea eax, [ebp - 8]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405378
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
movzx eax, byte [ebp + 8]
mov eax, dword [eax*4 + 0x4c40a4]
or eax, 0x20006
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00405310
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x495903
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x49589c
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 8]
push eax
mov ecx, ebx
sub ecx, edi
lea edx, [edi + 1]
mov eax, dword [ebp - 4]
call fcn.00405378
cmp dword [ebp - 8], 0
jne 0x4958d5
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
jmp 0x4958fa
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405310
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp esi, 0x80000001
jne 0x495914
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495936
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ea4
ret