joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e0121f5
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.2e00dc8f
and dword [ebp - 4], 0
cmp dword [0x2e02a84c], 0
mov ebx, eax
jne 0x2e0122a6
push 0x2e004718
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x2e012357
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x2e00470c
push edi
call esi
test eax, eax
je 0x2e012357
push eax
call fcn.2e00dc1d
mov dword [esp], 0x2e0046fc
push edi
mov dword [0x2e02a84c], eax
call esi
push eax
call fcn.2e00dc1d
mov dword [esp], 0x2e0046e8
push edi
mov dword [0x2e02a850], eax
call esi
push eax
call fcn.2e00dc1d
mov dword [esp], 0x2e0046cc
push edi
mov dword [0x2e02a854], eax
call esi
push eax
call fcn.2e00dc1d
pop ecx
mov dword [0x2e02a85c], eax
test eax, eax
je 0x2e0122a6
push 0x2e0046b4
push edi
call esi
push eax
call fcn.2e00dc1d
pop ecx
mov dword [0x2e02a858], eax
mov eax, dword [0x2e02a858]
cmp eax, ebx
je 0x2e0122fe
cmp dword [0x2e02a85c], ebx
je 0x2e0122fe
push eax
call fcn.2e00dc98
push dword [0x2e02a85c]
mov esi, eax
call fcn.2e00dc98
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x2e0122fe
test edi, edi
je 0x2e0122fe
call esi
test eax, eax
je 0x2e0122f5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x2e0122f5
test byte [ebp - 0xc], 1
jne 0x2e0122fe
or dword [ebp + 0x10], 0x200000
jmp 0x2e012337
mov eax, dword [0x2e02a850]
cmp eax, ebx
je 0x2e012337
push eax
call fcn.2e00dc98
pop ecx
test eax, eax
je 0x2e012337
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x2e012337
mov eax, dword [0x2e02a854]
cmp eax, ebx
je 0x2e012337
push eax
call fcn.2e00dc98
pop ecx
test eax, eax
je 0x2e012337
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x2e02a84c]
call fcn.2e00dc98
pop ecx
test eax, eax
je 0x2e012357
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x2e012359
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x2e017321
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov ecx, dword [ebp + 8]
push esi
mov eax, 0x101
xor esi, esi
push esi
push eax
mov dword [ebp - 4], eax
call fcn.2e017203
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
call fcn.2e016f41
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x2e017391
push 0x2e0051c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.2e016f0a
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e024d94
lea eax, [ebp - 0x110]
lea edi, [ebp - 0x110]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e00c848
mov ecx, dword [ebp + 8]
push esi
push dword [ebp - 4]
call fcn.2e017203
pop esi
leave
ret 4
Function at 0x2e018057
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x218
cmp dword [ecx + 4], eax
jl 0x2e018113
push ebx
xor ebx, ebx
push esi
push edi
cmp byte [ecx + 0x83], bl
jne 0x2e0180ad
push 0x2e0053c4
lea eax, [ebp - 0x218]
push 0x26
push eax
call fcn.2e008322
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e024d94
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e00c848
cmp word [ebp + 0x10], bx
jne 0x2e0180bc
movzx edi, word [ecx + 0x84]
jmp 0x2e0180c0
movzx edi, word [ebp + 0x10]
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jne 0x2e0180cd
mov esi, dword [ecx + 0x88]
xor edx, edx
dec eax
je 0x2e0180e1
dec eax
je 0x2e0180dd
dec eax
jne 0x2e0180e4
push 4
pop edx
jmp 0x2e0180e4
push 2
jmp 0x2e0180da
xor edx, edx
inc edx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x2e0180f2
mov eax, dword [eax + 4]
jmp 0x2e0180f5
add eax, 4
push ebx
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push ebx
push 1
push ebx
push esi
push edi
push edx
push dword [ecx + 0x8c]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x2e01a56b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x24], 0xffffffff
jne 0x2e01a5b2
push 0x2e005a74
lea eax, [ebp - 0x21c]
push 0x15
push eax
call fcn.2e008322
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e024d94
lea eax, [ebp - 0x110]
lea edi, [ebp - 0x110]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e00c848
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [eax + 0x18], 0x10
jb 0x2e01a5c4
mov esi, dword [eax + 4]
jmp 0x2e01a5c7
lea esi, [eax + 4]
push 0
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2e01a5fd
push 0x2e005a5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.2e016f0a
jmp 0x2e01a591
pop edi
pop esi
leave
ret 4

Function at 0x2e01a76f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x2e01a78a
mov eax, dword [esi]
jmp 0x2e01a78c
mov eax, esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x2e01a7df
cmp dword [edi + 0x18], 8
jb 0x2e01a7a2
mov esi, dword [esi]
push dword [ebp + 0xc]
push esi
push 0x2e005afc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.2e016f0a
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
push 0x2e024d94
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e00c848
pop edi
pop esi
leave
ret 8
Function at 0x2e01a846
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x2e01a861
mov eax, dword [esi]
jmp 0x2e01a863
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x2e01a8e1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
jne 0x2e01a8a0
push 0x80
push edi
call fcn.2e01a76f
cmp dword [edi + 0x18], 8
jb 0x2e01a891
mov eax, dword [esi]
jmp 0x2e01a893
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x2e01a8e0
call ebx
test eax, eax
je 0x2e01a8e0
cmp dword [edi + 0x18], 8
jb 0x2e01a8ac
mov esi, dword [esi]
push esi
push 0x2e005b3c
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.2e016f0a
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x2e024d94
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e00c848
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x2e01bb89
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0x104
mov ecx, esi
call fcn.2e017203
mov edi, dword [esi + 0x18]
push 0
mov ecx, esi
call fcn.2e016f41
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x2e01bbf6
push 0x2e005f5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.2e016f0a
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e024d94
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e00c848
push 0
push eax
mov ecx, esi
call fcn.2e017203
pop edi
pop esi
leave
ret 4

Function at 0x2e01ccc4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10220
call fcn.2e01628b
mov eax, dword [0x2e0287b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x10008], 0
cmp dword [eax + 0x18], 8
push esi
push edi
mov edi, dword [ebp + 8]
jb 0x2e01ccf5
mov eax, dword [eax + 4]
jmp 0x2e01ccf8
add eax, 4
mov esi, 0x7fff
push esi
lea ecx, [ebp - 0x10004]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x2e01cd34
cmp eax, esi
ja 0x2e01cd34
lea eax, [ebp - 0x10004]
push eax
mov ecx, edi
call fcn.2e009ff7
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.2e00cc70
leave
ret 8
push 0x2e006020
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10220]
push eax
call fcn.2e016f0a
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e024d94
lea eax, [ebp - 0x10114]
lea edi, [ebp - 0x10114]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e00c848
int3

Function at 0x2e01d31e
Capabilities:
Accept command line arguments

Disassembly:
push 0x240
mov eax, 0x2e0247a8
call fcn.2e00cce7
mov eax, dword [ebp + 8]
and dword [ebp - 0x30], 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x2e01d387
push 0x2e006048
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.2e016f0a
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e024d94
lea eax, [ebp - 0x140]
lea edi, [ebp - 0x140]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e00c848
xor esi, esi
cmp dword [ebp - 0x30], esi
jle 0x2e01d3bf
push dword [edi + esi*4]
lea ecx, [ebp - 0x2c]
call fcn.2e009ff7
mov ecx, dword [ebp - 0x34]
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.2e01d2c4
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.2e0085c5
inc esi
cmp esi, dword [ebp - 0x30]
jl 0x2e01d38e
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.2e00cd6a
ret 4
Function at 0x2e01d8fb
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push 0x2e0061b0
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x2e01d924
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x2e01d924
xor bl, bl
jmp 0x2e01d931
mov bl, 1
test esi, esi
je 0x2e01d931
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
ret

Function at 0x2e01dad7
Capabilities:
Allocate thread local storage

Disassembly:
push 0x21c
mov eax, 0x2e0248a3
call fcn.2e00cc7e
mov esi, ecx
mov dword [ebp - 0x10], esi
or dword [esi], 0xffffffff
push dword [0x2e02a898]
lea ecx, [esi + 4]
push 0x1e
push 0x2e006200
push 0x9b
call fcn.2e016c71
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x2e01db52
push 0x2e0061ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.2e016f0a
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e024d94
lea eax, [ebp - 0x11c]
lea edi, [ebp - 0x11c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e00c848
mov eax, esi
call fcn.2e00cd56
ret

Function at 0x2e01db5a
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x2e01db9e
push 0x2e006230
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.2e008322
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e024d94
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e00c848
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
leave
ret 4

Function at 0x2e01dbac
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x2e01dbf0
push 0x2e006230
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.2e008322
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e024d94
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e00c848
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
leave
ret
Function at 0x2e01df99
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x2e02aa50], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x2e01dfdd
call ebx
test eax, eax
jns 0x2e01dfd3
push 0x2e0062dc
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x2e0062d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x2e02aa4c], eax
mov dword [0x2e02aa50], 1
mov eax, dword [0x2e02aa4c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x2e01dff9
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x2e01e029
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x2e01e01f
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x2e01e014
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x2e01e019
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x2e01e028
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x2e01e68f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x2e01e6a0
mov eax, dword [eax + 4]
jmp 0x2e01e6a3
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x2e01e6b3
xor al, al
jmp 0x2e01e6b8
shr al, 4
and al, 1
pop ebp
ret 4

Function at 0x2e01e6bc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x2e01e6d7
mov eax, dword [esi]
jmp 0x2e01e6d9
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x2e01e730
cmp eax, 0x50
je 0x2e01e730
cmp eax, 0xb7
je 0x2e01e730
cmp dword [edi + 0x18], 8
jb 0x2e01e6fc
mov esi, dword [esi]
push esi
push 0x2e0064a8
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.2e016f0a
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x2e024d94
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e00c848
pop edi
pop esi
leave
ret 4
Function at 0x4025c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2b6c
call fcn.004474b0
mov eax, dword [0x46e140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
mov ecx, 0x13
mov esi, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
lea edi, [ebp - 0x2b68]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
lea ecx, [ebp - 0x2b68]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40261f
mov eax, 2
jmp 0x40276d
mov dword [ebp - 0x2b6c], 0
jmp 0x40263a
mov edx, dword [ebp - 0x2b6c]
add edx, 1
mov dword [ebp - 0x2b6c], edx
mov dword [ebp - 0x10], 0x3e8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2b10]
push ecx
mov edx, dword [ebp - 0x2b6c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40266e
jmp 0x402760
lea ecx, [ebp - 0x2b14]
push ecx
push 0x20119
push 0
lea edx, [ebp - 0x2b10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402693
jmp 0x40262b
mov dword [ebp - 0x10], 0x2710
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x2728]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.NetCfgInstanceId
mov ecx, dword [ebp - 0x2b14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40274e
lea edx, [ebp - 0x2728]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00447420
add esp, 8
test eax, eax
jne 0x40274e
mov dword [ebp - 0x10], 0x2710
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x2728]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.MatchingDeviceId
mov ecx, dword [ebp - 0x2b14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40274e
lea edx, [ebp - 0x2728]
push edx
push str.MatchingDeviceId:___s__n
call fcn.0044735b
add esp, 8
push 4
push 0x4615a8
lea eax, [ebp - 0x2728]
push eax
call fcn.0045e528
add esp, 0xc
test eax, eax
jne 0x40274e
mov ecx, dword [ebp - 0x2b14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], 0
jmp 0x402760
mov edx, dword [ebp - 0x2b14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40262b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00446cea
mov esp, ebp
pop ebp
ret
Function at 0x402780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ef8
call fcn.004474b0
mov eax, dword [0x46e140]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push eax
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
push 0x7d0
lea ecx, [ebp - 0x2ef8]
push ecx
call fcn.00447558
add esp, 0x10
lea edx, [ebp - 4]
push edx
push 0x20119
push 0
lea eax, [ebp - 0x2ef8]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4027e3
mov eax, 2
jmp 0x40283c
mov dword [ebp - 0x10], 0x2710
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x2728]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.PnpInstanceID
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40282f
push 4
push str.pci_
lea edx, [ebp - 0x2728]
push edx
call fcn.0045e528
add esp, 0xc
test eax, eax
jne 0x40282f
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00446cea
mov esp, ebp
pop ebp
ret
Function at 0x402870
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x311c
call fcn.004474b0
mov eax, dword [0x46e140]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x311c], ecx
mov byte [ebp - 0x600], 0
push 0x103
push 0
lea eax, [ebp - 0x5ff]
push eax
call fcn.00446c70
add esp, 0xc
mov byte [ebp - 0x4f8], 0
push 0x103
push 0
lea ecx, [ebp - 0x4f7]
push ecx
call fcn.00446c70
add esp, 0xc
push 0x104
lea edx, [ebp - 0x600]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x600]
push eax
push 0x461628
lea ecx, [ebp - 0x4f8]
push ecx
call fcn.004474db
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea edx, [ebp - 0x4f8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40291e
mov al, 1
jmp 0x402aa4
mov byte [ebp - 0x601], 0
mov dword [ebp - 0x3114], 0
mov byte [ebp - 0x3110], 0
push 0x270f
push 0
lea eax, [ebp - 0x310f]
push eax
call fcn.00446c70
add esp, 0xc
mov byte [ebp - 0x9f0], 0
push 0x3e7
push 0
lea ecx, [ebp - 0x9ef]
push ecx
call fcn.00446c70
add esp, 0xc
mov byte [ebp - 0x3f0], 0
push 0x3e7
push 0
lea edx, [ebp - 0x3ef]
push edx
call fcn.00446c70
add esp, 0xc
push 0xc
push 0
lea eax, [ebp - 0x9fc]
push eax
call fcn.00446c70
add esp, 0xc
mov dword [ebp - 0x9fc], 0
mov dword [ebp - 0x9f8], 0
push 0
lea ecx, [ebp - 0x3114]
push ecx
push 0x2710
lea edx, [ebp - 0x3110]
push edx
push 0xc
lea eax, [ebp - 0x9fc]
push eax
push 0x2d1400
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4029ea
mov byte [ebp - 0x601], 2
jmp 0x402a94
lea edx, [ebp - 0x3110]
mov dword [ebp - 0x3118], edx
lea eax, [ebp - 0x3f0]
push eax
push 0
mov ecx, dword [ebp - 0x3118]
mov edx, dword [ecx + 0x10]
push edx
lea eax, [ebp - 0x3110]
push eax
call fcn.00402200
add esp, 0x10
lea ecx, [ebp - 0x9f0]
push ecx
push 1
mov edx, dword [ebp - 0x3118]
mov eax, dword [edx + 0x18]
push eax
lea ecx, [ebp - 0x3110]
push ecx
call fcn.00402200
add esp, 0x10
lea edx, [ebp - 0x3f0]
push edx
call fcn.00447580
add esp, 4
push eax
lea eax, [ebp - 0x3f0]
push eax
mov ecx, dword [ebp - 0x311c]
add ecx, 0x18
push ecx
call fcn.00401040
add esp, 0xc
lea edx, [ebp - 0x9f0]
push edx
call fcn.00447580
add esp, 4
push eax
lea eax, [ebp - 0x9f0]
push eax
mov ecx, dword [ebp - 0x311c]
add ecx, 0x18
push ecx
call fcn.00401040
add esp, 0xc
xor edx, edx
jne 0x402986
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x601]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00446cea
mov esp, ebp
pop ebp
ret
Function at 0x402ee0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
je 0x402f0b
mov al, 1
jmp 0x402f76
mov ecx, dword [ebp - 4]
push ecx
call fcn.004476e8
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402f24
mov al, 3
jmp 0x402f76
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x402f45
mov ecx, dword [ebp - 8]
push ecx
call fcn.0044760b
add esp, 4
mov al, 4
jmp 0x402f76
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x190]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x194
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x18
push edx
call fcn.00401040
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.0044760b
add esp, 4
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4033c0
Capabilities:
Check for time delay via gettickcount
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea ecx, [ebp - 4]
call fcn.00403aa0
mov dword [ebp - 8], 0x80004005
cmp dword [ebp + 8], 0
je 0x4033e1
cmp dword [ebp + 0xc], 0
jne 0x4033f8
mov dword [ebp - 0x3c], 0x80070057
lea ecx, [ebp - 4]
call fcn.00403ac0
mov eax, dword [ebp - 0x3c]
jmp 0x40347e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x46f840], eax
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call sub.urlmon.dll_URLDownloadToFileW
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x46f840], eax
cmp dword [ebp - 8], 0
jne 0x40346d
mov dword [ebp - 0x38], 0
push 0x2c
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.00446c70
add esp, 0xc
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004478b3
add esp, 8
test eax, eax
jne 0x403466
cmp dword [ebp - 0x24], 0
jne 0x403464
mov dword [ebp - 8], 0x80004005
jmp 0x40346d
mov dword [ebp - 8], 0x80004005
mov eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 4]
call fcn.00403ac0
mov eax, dword [ebp - 0x40]
mov esp, ebp
pop ebp
ret