joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fc00
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x481020
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x1c]
call fcn.004162d0
xor ebx, ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], ebx
call fcn.004162d0
mov ecx, esi
mov byte [esp + 0x6c], 1
call fcn.0040c250
test eax, eax
jne 0x40fc60
mov ecx, esi
call fcn.0040c2b0
test eax, eax
je 0x40fd54
push ebx
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.004219a0
add esp, 0xc
mov ecx, eax
mov byte [esp + 0x6c], 2
call fcn.00416550
push eax
lea ecx, [esp + 0x38]
call fcn.00416860
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6c], 1
call fcn.00416420
push str.cabinet.dll
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00416f80
mov ecx, eax
mov byte [esp + 0x6c], 3
call fcn.00416550
push eax
lea ecx, [esp + 0x20]
call fcn.00416860
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6c], 1
call fcn.00416420
push ebx
sub esp, 0x18
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00416dd0
call fcn.00428050
add esp, 0x1c
cmp eax, 1
je 0x40fd54
push 0x48aba4
push 0x68
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00416560
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40fd54
push ebx
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], bl
call fcn.00416420
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00416420
mov eax, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
Function at 0x40fd90
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x481060
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x1c]
call fcn.004162d0
xor ebx, ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], ebx
call fcn.004162d0
mov ecx, esi
mov byte [esp + 0x6c], 1
call fcn.0040c2b0
test eax, eax
je 0x40fed9
push ebx
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.004219a0
add esp, 0xc
mov ecx, eax
mov byte [esp + 0x6c], 2
call fcn.00416550
push eax
lea ecx, [esp + 0x38]
call fcn.00416860
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6c], 1
call fcn.00416420
push 0x48abbc
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00416f80
mov ecx, eax
mov byte [esp + 0x6c], 3
call fcn.00416550
push eax
lea ecx, [esp + 0x20]
call fcn.00416860
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6c], 1
call fcn.00416420
push ebx
sub esp, 0x18
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00416dd0
call fcn.00428050
add esp, 0x1c
cmp eax, 1
je 0x40fed9
push 0x48abb8
push 0x69
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00416560
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40fed9
push ebx
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], bl
call fcn.00416420
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00416420
mov eax, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
Function at 0x410150
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov esi, dword [esp + 0x21c]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x115]
push ebx
push eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x11c], bl
call fcn.0044c830
push 0x103
lea ecx, [esp + 0x1d]
push ebx
push ecx
mov byte [esp + 0x24], bl
call fcn.0044c830
add esp, 0x18
push 0x103
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call fcn.00420d00
test eax, eax
je 0x4101f8
mov byte [esp + 0x112], bl
call fcn.00420cb0
test eax, eax
je 0x4101e4
lea eax, [esp + 0x110]
push eax
push str._sProgramDataTemp_
lea ecx, [esp + 0x14]
push ecx
jmp 0x41020a
lea edx, [esp + 0x110]
push edx
push str._sDocuments_and_SettingsTemp_
lea eax, [esp + 0x14]
push eax
jmp 0x41020a
lea ecx, [esp + 0x110]
push ecx
push str._sTemp_
lea edx, [esp + 0x14]
push edx
call fcn.0040dd40
add esp, 0xc
push ebx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41023a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NInstall::getTempPath____
push 3
call fcn.00415d30
add esp, 0xc
jmp 0x410249
push 0x48abf8
push 3
call fcn.00415d30
add esp, 8
lea ecx, [esp + 0xc]
push ecx
push 0x48abcc
push 3
call fcn.00415d30
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00416390
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0044b607
add esp, 0x210
ret 4
Function at 0x410290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4810bb
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov ebp, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebp
call fcn.00417480
xor ebx, ebx
push ebx
push ebx
push ebx
push str.SOFTWAREDr.SoftNetClient5
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28c], ebx
call fcn.004174f0
xor eax, eax
lea edi, [ebp + 8]
mov ecx, edi
mov byte [esp + 0x3c], bl
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov word [esp + 0x49], ax
mov byte [esp + 0x4b], al
call fcn.00416550
mov esi, eax
push 0xf
push esi
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.0044cae0
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x410337
sub eax, edx
cmp eax, 0xf
jae 0x41034b
mov byte [esp + eax + 0x3c], bl
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x4f], bl
call fcn.00448b60
lea edx, [esp + 0x40]
push edx
call fcn.004489d0
add esp, 8
test eax, eax
je 0x4103ac
mov eax, dword [ebp + 0x98]
push eax
lea ecx, [esp + 0x50]
push 0x49778c
push ecx
call fcn.0040dd60
add esp, 0xc
mov ecx, edi
call fcn.00416560
push eax
push str.ServerIP
lea ecx, [esp + 0x20]
call fcn.004176f0
lea edx, [esp + 0x4c]
push edx
push str.ServerPort
lea ecx, [esp + 0x20]
call fcn.004176f0
xor edi, edi
add ebp, 0x20
push 0x1ff
lea eax, [esp + 0x71]
push ebx
push eax
mov byte [esp + 0x78], bl
call fcn.0044c830
add edi, 1
push edi
push str.ServerIP_ALT_TEMP_USING_LOCAL_SAVED
lea ecx, [esp + 0x80]
push str._s__d
push ecx
call fcn.00404d50
xor eax, eax
add esp, 0x1c
mov ecx, ebp
mov byte [esp + 0x4c], bl
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov word [esp + 0x59], ax
mov byte [esp + 0x5b], al
call fcn.00416550
push 0xf
mov esi, eax
push esi
lea edx, [esp + 0x54]
push 0x10
push edx
call fcn.0044cae0
mov eax, esi
add esp, 0x10
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x410420
sub eax, ecx
cmp eax, 0xf
jae 0x410434
mov byte [esp + eax + 0x4c], bl
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x5f], bl
call fcn.00448b60
lea ecx, [esp + 0x50]
push ecx
call fcn.004489d0
add esp, 8
test eax, eax
je 0x410466
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x20]
call fcn.004176f0
add ebp, 0x18
cmp edi, 5
jb 0x4103b1
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x100]
cmp eax, 0xffffffff
je 0x410490
push eax
push str.xx_TEMP_AGENT_EVENT_VIEW_MODE
lea ecx, [esp + 0x20]
call fcn.00417a10
lea ecx, [esp + 0x18]
call fcn.00417590
lea ecx, [esp + 0x18]
mov dword [esp + 0x278], 0xffffffff
call fcn.004189c0
mov eax, 1
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0044b607
add esp, 0x268
ret
Function at 0x4130c0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push 0x412ff0
push 0
push 0
call fcn.0044d80c
add esp, 0x18
test eax, eax
jne 0x4130df
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ecx
ret

Function at 0x413290
Capabilities:
Continue service
Query service status
Start service

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x4132a2
pop esi
add esp, 0x20
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x10], 0
call ebx
test eax, eax
je 0x413336
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4132d0
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x4132e9
mov edx, dword [esi + 8]
push 0
push 0
push edx
call ebp
test eax, eax
je 0x413334
jmp 0x41330a
cmp eax, 7
jne 0x413305
mov ecx, dword [esi + 8]
lea eax, [esp + 0x14]
push eax
push 3
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x413334
jmp 0x41330a
cmp eax, 4
je 0x41332c
push 0x1f4
call edi
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push eax
call ebx
test eax, eax
jne 0x4132d0
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x20
ret
mov dword [esp + 0x10], 1
pop edi
pop ebp
mov eax, dword [esp + 8]
pop ebx
pop esi
add esp, 0x20
ret

Function at 0x413340
Capabilities:
Delete service
Query service status

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x4133c3
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 8]
push ecx
push eax
call ebx
test eax, eax
je 0x4133c2
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, edi
mov eax, 1
cmp dword [esp + 0x14], eax
je 0x4133af
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
push eax
call ebp
test eax, eax
je 0x4133c0
push 0x1f4
call edi
mov edx, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
call ebx
test eax, eax
jne 0x413370
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x1c
ret 4
cmp dword [esp + 0x30], 0
je 0x4133c0
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x1c
ret 4
Function at 0x413770
Capabilities:
Create service
Persist via windows service

Disassembly:
push esi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [esi + 4], eax
jne 0x41378d
pop esi
ret 8
push edi
mov edi, dword [esp + 0xc]
push 0xf01ff
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov dword [esi + 8], eax
jne 0x413825
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x4137c4
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esi + 4], 0
mov edx, dword [esp + 0x10]
mov eax, edx
push ebp
lea ebp, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4137d0
sub eax, ebp
cmp eax, 1
pop ebp
jb 0x41381e
push 0
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push 0
push edx
push 1
push 2
push 0x110
push 0xf01ff
push edi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [esi + 8], eax
jne 0x41385d
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esi + 4], 0
pop edi
xor eax, eax
pop esi
ret 8
mov edi, dword [esp + 0x10]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413830
sub eax, edx
je 0x41385d
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov dword [esp + 0x14], 0
call fcn.004134c0
push edi
mov ecx, esi
call fcn.00413930
test eax, eax
je 0x41381e
pop edi
mov eax, 1
pop esi
ret 8

Function at 0x413930
Capabilities:
Modify service
Query service configuration

Disassembly:
mov eax, 0x1008
call fcn.0044c800
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x1004], eax
push esi
push edi
mov edi, dword [esp + 0x1014]
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x14], 0
call fcn.0044c830
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x1000
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x4139aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.004133d0
push edi
push str.N5Client_Agent
mov ecx, esi
call fcn.00413870
xor eax, eax
jmp 0x413a0c
cmp dword [esp + 0x14], 1
jne 0x4139d4
cmp dword [esp + 0xc], 0x110
jne 0x4139d4
cmp dword [esp + 0x10], 2
jne 0x4139d4
mov ecx, dword [esp + 0x18]
push edi
push ecx
call fcn.0044d9c2
add esp, 8
test eax, eax
je 0x413a07
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 8]
push edx
push 0
push 0
push 0
push 0
push 0
push edi
push 1
push 2
push 0x110
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov esi, eax
test esi, esi
jne 0x413a03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
jmp 0x413a0c
mov eax, 1
mov ecx, dword [esp + 0x100c]
pop edi
pop esi
xor ecx, esp
call fcn.0044b607
add esp, 0x1008
ret 4
Function at 0x414050
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
push edi
push 0xff
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.CABINET.dll
lea ecx, [esp + 0xc]
push 0x100
push ecx
mov byte [esp + eax + 0x14], 0
call fcn.0044d289
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
lea edx, [esp + 8]
push edx
call edi
test eax, eax
mov dword [esi + 4], eax
jne 0x414107
push 0xff
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.CABINET.dll
lea ecx, [esp + 0xc]
push 0x100
push ecx
mov byte [esp + eax + 0x14], 0
call fcn.0044d289
add esp, 0xc
lea edx, [esp + 8]
push edx
call edi
test eax, eax
mov dword [esi + 4], eax
jne 0x414107
push 0x48b4f8
call edi
test eax, eax
mov dword [esi + 4], eax
jne 0x414107
pop edi
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0044b607
add esp, 0x104
ret
mov ecx, dword [esp + 0x108]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0044b607
add esp, 0x104
ret

Function at 0x414600
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4816a0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call fcn.004162d0
push 0
lea eax, [esp + 0x24]
push 1
push eax
mov dword [esp + 0x4c], 0
call fcn.004219a0
add esp, 0xc
mov ecx, eax
mov byte [esp + 0x40], 1
call fcn.00416550
push eax
lea ecx, [esp + 0xc]
call fcn.00416860
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 0
call fcn.00416420
push str.wbemwmic.exe
lea ecx, [esp + 0xc]
call fcn.00417190
lea ecx, [esp + 8]
call fcn.00416560
push eax
push str.NWmicW::init____1__path:_.256S_r_n
push 3
call fcn.004158c0
add esp, 0xc
push 1
sub esp, 0x18
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00416dd0
call fcn.00428050
add esp, 0x1c
cmp eax, 1
je 0x4146e4
push str.NWmicW::init____2__ret_FALSE_r_n
push 3
call fcn.004158c0
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0xffffffff
call fcn.00416420
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
add esp, 0x40
ret
push str.NWmicW::init____3__ret_TRUE_r_n
push 3
call fcn.004158c0
add esp, 8
push 0
push str.C:ProgramData
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0xffffffff
call fcn.00416420
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
add esp, 0x40
ret
Function at 0x414730
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4816cb
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x44c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x460]
mov esi, dword [esp + 0x45c]
push 0x489164
mov ecx, ebx
call fcn.004199f0
push esi
push str.NWmicW::readFile____1__file_name:_s_r_n
push 3
call fcn.004158c0
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4147d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NWmicW::readFile____2__open_file_fail_err:_d_r_n
push 3
call fcn.004158c0
add esp, 0xc
xor eax, eax
jmp 0x41489f
lea eax, [esp + 0x24]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x414807
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NWmicW::readFile____3__get_attribute_fail_err:_d_r_n
push 3
call fcn.004158c0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41489f
push 0x400
lea ecx, [esp + 0x4c]
push 0
push ecx
call fcn.0044c830
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push 0x3fe
lea eax, [esp + 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x414896
cmp dword [esp + 0x464], 0
je 0x414851
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebx
call fcn.004199f0
jmp 0x414896
push 0x1000
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004266c0
add esp, 0xc
mov ecx, eax
mov dword [esp + 0x454], 0
call fcn.00419660
push eax
mov ecx, ebx
call fcn.004199f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x454], 0xffffffff
call fcn.004194e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x44c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.0044b607
add esp, 0x448
ret
Function at 0x414930
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1058
call fcn.0044c800
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x1054], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x1068]
push 0xfff
xor ebx, ebx
lea eax, [esp + 0x65]
push ebx
push eax
call fcn.0044c830
push 0x44
lea ecx, [esp + 0x2c]
push ebx
push ecx
call fcn.0044c830
push str.COMSPEC
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x64], 1
mov word [esp + 0x68], bx
mov byte [esp + 0x7c], bl
call fcn.0044f089
add esp, 0x1c
mov esi, eax
cmp esi, ebx
push 0xfff
je 0x4149cb
push esi
lea edx, [esp + 0x68]
push 0x1000
push edx
call fcn.0044cae0
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4149c0
jmp 0x4149f9
push str.CMD.EXE
lea eax, [esp + 0x68]
push 0x1000
push eax
call fcn.0044cae0
mov eax, str.CMD.EXE
add esp, 0x10
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4149f0
sub eax, edx
cmp eax, 0xfff
jae 0x414a06
mov byte [esp + eax + 0x60], bl
push str.__c
lea ecx, [esp + 0x64]
push 0x1000
push ecx
mov byte [esp + 0x106b], bl
call fcn.0044d289
push edi
lea edx, [esp + 0x70]
push 0x1000
push edx
call fcn.0044d289
add esp, 0x18
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x4a49d0
call fcn.00416560
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
lea edx, [esp + 0x80]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x414a7a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1054]
xor ecx, esp
call fcn.0044b607
add esp, 0x1058
ret
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov ecx, dword [esp + 0x1060]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044b607
add esp, 0x1058
ret

Function at 0x4155e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4818c1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], 0
call fcn.00415510
push 0x1000
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call fcn.00419660
mov esi, dword [esp + 0x30]
push eax
push esi
call fcn.004267a0
add esp, 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x24], 0
call fcn.004194e0
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret 4
Function at 0x4175c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x481b51
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x1c], esi
mov eax, dword [ebx + 4]
cmp eax, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
je 0x4176c6
mov edi, dword [esp + 0x4c]
cmp edi, esi
je 0x4176c6
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x20]
push edx
push esi
push edi
push eax
mov dword [esp + 0x30], 1
call ebp
cmp eax, 0xea
je 0x41764c
cmp eax, esi
je 0x41764c
mov esi, dword [esp + 0x48]
push 0x49789d
mov ecx, esi
call fcn.00416300
jmp 0x4176d6
mov eax, dword [esp + 0x14]
add eax, 1
push eax
call fcn.0044aa3d
mov ecx, dword [esp + 0x18]
add ecx, 1
push ecx
mov esi, eax
push 0
push esi
call fcn.0044c830
mov ecx, dword [ebx + 4]
add esp, 0x10
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [esp + 0x20]
push eax
push 0
push edi
push ecx
call ebp
test eax, eax
jne 0x417637
push esi
lea ecx, [esp + 0x24]
call fcn.00416300
mov edi, 1
push esi
mov dword [esp + 0x44], edi
call fcn.0044ca76
mov esi, dword [esp + 0x4c]
add esp, 4
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00416dd0
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x40], 0
call fcn.00416420
jmp 0x4176d6
mov esi, dword [esp + 0x48]
push 0x49789d
mov ecx, esi
call fcn.00416300
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8

Function at 0x4176f0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 1]
jmp 0x417700
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x417700
mov ecx, dword [ecx + 4]
sub eax, edi
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
add eax, 1
pop esi
ret 8