joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x38]
call fcn.0045dd36
xor ebx, ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], ebx
call fcn.0045e1a1
mov cl, byte [esp + 0x34]
mov edx, dword [esp + 0x34]
mov byte [esp + 0x14], cl
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004046d0
lea edx, [esp + 0x14]
mov ecx, 0x48e430
push edx
mov byte [esp + 0x30], 1
call fcn.004077c0
mov ecx, dword [0x48e434]
mov dword [esp + 0xc], eax
cmp eax, ecx
je 0x403900
add eax, 0xc
lea ecx, [esp + 0x14]
push eax
call fcn.00407f30
test eax, eax
jl 0x403900
lea eax, [esp + 0xc]
jmp 0x40390d
mov eax, dword [0x48e434]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov esi, dword [eax]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x403934
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40392b
cmp al, 0xff
je 0x40392b
dec al
mov byte [ecx], al
jmp 0x403934
push ecx
call fcn.0045da32
add esp, 4
mov eax, dword [0x48e434]
pop edi
cmp esi, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
pop esi
pop ebx
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x28]
je 0x403971
call fcn.0045dcc8
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
call fcn.0045dcc8
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x403990
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x28
mov edx, dword [0x4874e8]
mov eax, dword [str.SeDebugPrivilege]
mov ecx, dword [0x4874e4]
mov dword [esp + 0x1c], edx
lea edx, [esp]
mov dword [esp + 0x14], eax
mov eax, dword [0x4874ec]
mov dword [esp + 0x18], ecx
mov cl, byte [0x4874f0]
push edx
push 0x28
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], cl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403a46
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x403a00
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x28
ret
mov ecx, dword [esp]
push 0
push 0
lea eax, [esp + 0xc]
push 0x10
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x403a3b
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x28
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x28
ret

Function at 0x408070
Capabilities:
Create thread

Disassembly:
mov edx, dword [ecx + 0xc]
lea eax, [ecx + 0xc]
test edx, edx
jne 0x40808f
push eax
push 0
push ecx
push 0x408090
push 0
push 0
call fcn.0043a375
add esp, 0x18
ret
Function at 0x408970
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x468f1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0x48e4a8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esi + 4]
test eax, eax
jne 0x4089d2
push 0x50
call fcn.0045da09
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x10], 0
je 0x4089be
mov ecx, eax
call fcn.00414190
jmp 0x4089c0
xor eax, eax
mov ecx, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esi + 4], eax
call fcn.00414500
push 0
push 0
push esi
push 0x408b40
push 0
push 0
call fcn.0043a375
mov ecx, dword [esp + 0x20]
add esp, 0x18
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret
Function at 0x409280
Capabilities:
Create directory
Set file attributes

Disassembly:
sub esp, 0x210
push edi
mov edi, dword [esp + 0x218]
push edi
mov dword [esp + 0x10], ecx
call fcn.004091e0
cmp eax, 1
jne 0x4092a7
pop edi
add esp, 0x210
ret 4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebx
sub edi, ecx
push ebp
push esi
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
xor ebx, ebx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x11b]
mov cl, byte [esp + ecx + 0x11b]
cmp cl, 0x5c
je 0x4092f9
cmp cl, 0x2f
jne 0x4092fb
mov byte [eax], bl
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1c]
mov edx, ecx
mov ecx, 0x40
cmp edx, ebx
mov dword [esp + 0x14], edx
rep stosd dword es:[edi], eax
jle 0x4093c4
mov al, byte [esp + ebp + 0x11c]
cmp al, 0x5c
je 0x409338
mov byte [esp + 0x12], al
jmp 0x40935d
lea eax, [esp + 0x1c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x409358
lea ecx, [esp + 0x1c]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [esp + 0x12], 0x5c
lea edi, [esp + 0x12]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x13], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
dec eax
cmp ebp, eax
rep movsb byte es:[edi], byte [esi]
jne 0x4093b7
lea ecx, [esp + 0x1c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4093b7
lea edx, [esp + 0x1c]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jl 0x409327
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
call fcn.004091e0
neg eax
pop esi
pop ebp
sbb eax, eax
pop ebx
neg eax
pop edi
add esp, 0x210
ret 4
Function at 0x4093f0
Capabilities:
Access peb ldr_data
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x469137
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov dword [esp + 0x14], 0
push 0x48e488
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 1
call fcn.0045dd36
mov esi, dword [esp + 0x30]
mov byte [esp + 0x20], 2
test esi, esi
mov dword [esp + 0xc], 0x34
mov eax, 0x46f7ac
je 0x409444
mov eax, esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x4094cc
push ebp
push edi
call fcn.0045da09
add esp, 4
mov ebp, eax
test esi, esi
mov eax, 0x46f7ac
je 0x409469
mov eax, esi
push ebp
push edi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4094c2
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x487374
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4094c2
mov eax, dword [esp + 0x14]
xor edx, edx
mov dx, word [eax + 0xc]
mov ecx, dword [eax + 0xc]
push edx
xor edx, edx
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
push edx
shr eax, 0x10
push eax
lea ecx, [esp + 0x1c]
push str._d._d._d._d
push ecx
call fcn.0045c3bf
add esp, 0x18
push ebp
call fcn.0045da32
add esp, 4
pop ebp
mov edi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, edi
call fcn.0045da3d
mov dword [esp + 0x14], 1
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.0045dcc8
test esi, esi
je 0x409523
mov al, byte [esi - 1]
test al, al
je 0x409519
cmp al, 0xff
je 0x409519
dec al
mov byte [esi - 1], al
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
dec esi
push esi
call fcn.0045da32
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x40d210
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x400
xor ecx, ecx
lea edx, [esp]
push esi
mov eax, ecx
mov esi, 8
test al, 1
je 0x40d231
shr eax, 1
xor eax, 0xedb88320
jmp 0x40d233
shr eax, 1
dec esi
jne 0x40d224
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x40d21d
mov edx, dword [esp + 0x40c]
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x40d27b
mov esi, dword [esp + 0x408]
push ebx
push edi
movsx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [esp + edi*4 + 0xc]
xor eax, edi
inc ecx
cmp ecx, edx
jb 0x40d25d
pop edi
pop ebx
not eax
pop esi
add esp, 0x400
ret

Function at 0x40d4d0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x8c
lea eax, [esp + 4]
push esi
push 0x40
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
test esi, esi
je 0x40d518
lea edx, [esp + 4]
push edi
push edx
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x8c
ret
xor eax, eax
pop esi
add esp, 0x8c
ret
Function at 0x40e280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x469a47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov dword [esp + 0x18], 0
push 0x48e488
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 3
call fcn.0045dd36
lea eax, [esp + 0x30]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x28], 4
call fcn.0045da3d
lea ecx, [esp + 4]
mov byte [esp + 0x24], 5
call fcn.0045e18f
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x10]
call fcn.0045da3d
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 6
call fcn.0045e18f
lea edx, [esp + 0x38]
lea ecx, [esp + 8]
push edx
call fcn.0045da3d
lea ecx, [esp + 8]
mov byte [esp + 0x24], 7
call fcn.0045e18f
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push eax
call fcn.0045c039
mov esi, eax
test esi, esi
jl 0x40e389
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx - 8]
lea ecx, [esp + 4]
add esi, edx
mov edx, dword [esp + 8]
push esi
push edx
call fcn.0045c047
cmp eax, 0xffffffff
jne 0x40e348
mov eax, dword [esp + 4]
mov eax, dword [eax - 8]
mov ecx, dword [esp + 0x30]
sub eax, esi
mov ecx, dword [ecx - 8]
cmp esi, ecx
jg 0x40e389
lea edx, [eax + esi]
cmp edx, ecx
jg 0x40e389
push eax
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x3c]
call fcn.0045be8d
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 8
call fcn.0045de01
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 7
call fcn.0045dcc8
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0045da3d
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x24], 6
call fcn.0045dcc8
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 5
call fcn.0045dcc8
lea ecx, [esp + 4]
mov byte [esp + 0x24], 4
call fcn.0045dcc8
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call fcn.0045dcc8
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 2
call fcn.0045dcc8
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 1
call fcn.0045dcc8
lea ecx, [esp + 0x38]
mov byte [esp + 0x24], 0
call fcn.0045dcc8
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x40e420
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x469a98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
push esi
push edi
mov dword [esp + 0x10], 0
push 0x48e488
lea ecx, [esp + 0xc]
mov dword [esp + 0x420], 1
call fcn.0045dd36
mov edx, dword [esp + 0x428]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [0x48e510]
lea ecx, [esp + 0x14]
push eax
push 0x3ff
push ecx
push 0x48e488
push edx
push str.Config
mov byte [esp + 0x434], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + eax + 0x14], 0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40e4f1
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.0045dd36
lea ecx, [esp + 0x10]
push ecx
call fcn.0040da90
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x420], 3
call fcn.0045de01
lea ecx, [esp + 0xc]
mov byte [esp + 0x41c], 2
call fcn.0045dcc8
mov esi, dword [esp + 0x424]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0045da3d
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x41c], 1
call fcn.0045dcc8
lea ecx, [esp + 0x428]
mov byte [esp + 0x41c], 0
call fcn.0045dcc8
mov ecx, dword [esp + 0x414]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x418
ret
Function at 0x40eb10
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x469b90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
mov eax, dword [0x4892e4]
push ebx
xor ebx, ebx
push ebp
push esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x2c]
push 0xc8
mov ebp, 1
push ecx
push ebx
mov dword [esp + 0x1d0], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x28]
lea eax, [esp + 0x2c]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x40eb9d
mov esi, dword [esp + 0x1cc]
push 0x48e488
mov ecx, esi
call fcn.0045dd36
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c4], bl
call fcn.0045dcc8
mov eax, esi
jmp 0x40ecc5
push edi
push esi
call fcn.0045da09
add esp, 4
mov edi, eax
lea ecx, [esp + 0x30]
push edi
push esi
push ebx
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
push eax
push str.VarFileInfoTranslation
push edi
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, 0xfffffffc
jbe 0x40ec75
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x28]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + esi*4 + 2]
mov dx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x100]
push 0x4878d8
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
lea eax, [esp + 0xf8]
push ecx
push edx
push eax
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
call fcn.0045dd36
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x1cc], 2
call fcn.0045e0e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c8], 1
call fcn.0045dcc8
mov eax, dword [esp + 0x14]
inc esi
shr eax, 2
cmp esi, eax
jb 0x40ebe6
mov ebp, 1
push 0x48e488
push 0x4878d4
lea ecx, [esp + 0x18]
call fcn.0045bd07
push 0x4878d0
push 0x4878cc
lea ecx, [esp + 0x18]
call fcn.0045bd07
mov esi, dword [esp + 0x1d0]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0045da3d
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x1c8], bl
call fcn.0045dcc8
mov eax, esi
pop edi
mov ecx, dword [esp + 0x1bc]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1bc
ret
Function at 0x40f570
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x469d55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov eax, dword [0x4892e4]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xb4], 1
push ecx
mov dword [esp + 0x10], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
shr edx, 0xa
push edx
push str._ld_KB_
push eax
call fcn.0043ac7e
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 8]
call fcn.0045de51
mov esi, dword [esp + 0xbc]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.0045da3d
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0xb4], 0
call fcn.0045dcc8
mov ecx, dword [esp + 0xac]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0xb4
ret

Function at 0x40f630
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x469d7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x4892e4]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x18]
push ebx
stosw word es:[edi], ax
push ecx
push ebx
push ebx
push 0x48797c
mov dword [esp + 0x60], 1
mov dword [esp + 0x2c], ebx
stosb byte es:[edi], al
call esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x40f6b2
push ebx
push ebx
push ebx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebx
push 0x487978
call esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
jbe 0x40f6d5
push eax
lea eax, [esp + 0x1c]
push str._Serial:_d_
push eax
call fcn.0043ac7e
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.0045de51
mov esi, dword [esp + 0x48]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0045da3d
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], bl
call fcn.0045dcc8
mov ecx, dword [esp + 0x38]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x40f9a0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x469de5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x39c
push edi
push 0x48e488
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call fcn.0045dd36
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x3a8], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x210]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
pop edi
jne 0x40fa59
lea ecx, [esp + 0x108]
push 0x104
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40fa59
mov eax, dword [eax + 0xc]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax]
mov cl, byte [eax + 3]
mov dl, byte [eax + 2]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 1]
mov dl, byte [eax]
push ecx
push edx
lea eax, [esp + 0x18]
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea ecx, [esp + 8]
push esi
push ecx
lea ecx, [esp + 8]
call fcn.0045de51
mov esi, dword [esp + 0x3b0]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.0045da3d
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x3a8], 0
call fcn.0045dcc8
mov ecx, dword [esp + 0x3a0]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x3a8
ret
Function at 0x412210
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push eax
push 1
push 0
push ecx
push ebx
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41223e
xor eax, eax
pop ebx
pop ecx
ret 0x14
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push esi
push edi
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov esi, eax
call edi
push ebx
call edi
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
pop ecx
ret 0x14

Function at 0x412450
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov ecx, dword [0x48e558]
sub esp, 0x44
test ecx, ecx
je 0x412462
call fcn.004204f0
push esi
push edi
mov ecx, 0xb
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [esp + 0xc]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [esp + 0x3a], eax
lea ecx, [esp + 8]
mov dword [esp + 0x3e], eax
push ecx
mov dword [esp + 0x46], eax
push 0xf003f
mov dword [esp + 0x4e], eax
lea edx, [esp + 0x14]
push eax
push edx
push SysReAllocString
mov word [esp + 0x5e], ax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x4124ca
mov eax, dword [0x48e4f4]
mov ecx, dword [esp]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0042b410
add esp, 0x44
ret
Function at 0x417560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push 2
push 0
mov dword [esp + 0x20], ecx
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebp, eax
test ebp, ebp
je 0x417710
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4176d9
push 0xe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x417709
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x417709
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x417709
xor eax, eax
mov ax, word [edi + 4]
shl eax, 5
add eax, 0x210
push eax
call fcn.0043a5c1
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x10], esi
je 0x417709
xor ecx, ecx
lea edx, [esi + 0x108]
mov cx, word [edi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edx
mov dword [esi + 0x20c], ecx
call ebx
lea eax, [esi + 4]
push 0x48e488
push eax
call ebx
mov eax, dword [esi + 0x20c]
mov dword [esp + 0x24], 0
test eax, eax
jbe 0x4176d9
mov ecx, esi
add edi, 0x12
mov dword [esp + 0x20], edi
lea ebx, [ecx + 0x21c]
mov eax, dword [esp + 0x20]
xor edx, edx
push 3
mov dx, word [eax]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4176ee
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4176f5
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [ebx + 4], eax
call fcn.0043a5c1
add esp, 4
mov dword [ebx], eax
mov esi, dword [ebx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebx]
mov ecx, esi
mov esi, eax
mov edx, ecx
lea eax, [ebx - 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.004174f0
test eax, eax
je 0x4176fc
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
inc eax
mov edx, dword [ecx + 0x20c]
add edi, 0xe
add ebx, 0x20
cmp eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
jb 0x41763c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x10]
push edx
jmp 0x417701
mov eax, dword [esp + 0x10]
push eax
jmp 0x417701
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0043a4d8
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x417720
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x417750
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x41775f
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], 1
call edi
test eax, eax
jne 0x417782
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x417791
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], ecx
call edi
test eax, eax
jne 0x4177b4
pop edi
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 2
pop edi
sete al
pop esi
pop ecx
ret 8