joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d78c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00407936
xor ebx, ebx
cmp dword [0x417e64], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40d861
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40d7cc
xor eax, eax
jmp 0x40d925
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40d7c5
push eax
call fcn.004078d3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x417e64], eax
call esi
push eax
call fcn.004078d3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x417e68], eax
call esi
push eax
call fcn.004078d3
mov dword [0x417e6c], eax
lea eax, [ebp - 8]
push eax
call fcn.0040a1b7
test eax, eax
pop ecx
pop ecx
je 0x40d82f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004066d7
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40d861
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004078d3
cmp eax, ebx
pop ecx
mov dword [0x417e74], eax
je 0x40d861
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004078d3
pop ecx
mov dword [0x417e70], eax
mov eax, dword [0x417e70]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40d8da
cmp dword [0x417e74], esi
je 0x40d8da
push eax
call fcn.0040793f
pop ecx
call eax
cmp eax, ebx
je 0x40d8a7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x417e74]
call fcn.0040793f
pop ecx
call eax
test eax, eax
je 0x40d8a7
test byte [ebp - 0x18], 1
jne 0x40d8da
lea eax, [ebp - 0xc]
push eax
call fcn.0040a1ee
test eax, eax
pop ecx
je 0x40d8c2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004066d7
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40d8d1
or dword [ebp + 0x10], 0x200000
jmp 0x40d90b
or dword [ebp + 0x10], 0x40000
jmp 0x40d90b
mov eax, dword [0x417e68]
cmp eax, esi
je 0x40d90b
push eax
call fcn.0040793f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40d90b
mov eax, dword [0x417e6c]
cmp eax, esi
je 0x40d90b
push dword [ebp - 4]
push eax
call fcn.0040793f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x417e64]
call fcn.0040793f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov ax, word [0x44f38c]
lea edx, [ebp - 0x210]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov word [ebp - 6], ax
push 0x208
push edx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x2e
lea ecx, [ebp - 0x210]
push ecx
call fcn.00405d81
add esp, 8
mov byte [eax], 0
push 0x44f46d
lea eax, [ebp - 0x210]
push eax
call fcn.00405c74
add esp, 8
push esi
lea edx, [ebp - 0x210]
push edx
call fcn.00405c74
add esp, 8
push 0x44f475
lea ecx, [ebp - 0x210]
push ecx
call fcn.00405c74
add esp, 8
lea eax, [ebp - 0x210]
push 0
push 0
push 2
push 0
push 3
push 0x40000000
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40168d
push 0
lea eax, [ebp - 4]
push eax
push 0x44f483
call sub.KERNEL32.DLL_lstrlenA
push eax
push 0x44f47a
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call sub.KERNEL32.DLL_lstrlenA
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
lea ecx, [ebp - 4]
push 0
push ecx
lea eax, [ebp - 6]
push 2
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_lstrlenA
push eax
mov eax, dword [ebp + 8]
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile
lea edx, [ebp - 4]
push 0
push edx
lea ecx, [ebp - 6]
Function at 0x403510
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x40352a
xor eax, eax
jmp 0x4036aa
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x40353e
xor eax, eax
jmp 0x4036aa
cmp word [ebx + 0x14], 0xe0
jne 0x40354e
cmp word [ebx + 0x18], 0x10b
je 0x403555
xor eax, eax
jmp 0x4036aa
mov dword [0x4534c0], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00403494
add esp, 8
test eax, eax
jne 0x403580
xor eax, eax
jmp 0x4036aa
mov edx, dword [0x4534c0]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004034dc
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x4035b2
push 0x10
push 0
push 0x44f96c
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x4036aa
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x40367c
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x40366e
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x403669
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x403660
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x403655
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x403655
test cl, cl
je 0x40364a
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403655
add eax, 2
add edx, 2
test cl, cl
jne 0x40362e
jne 0x403655
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x4036aa
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x403614
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x4035ec
jmp 0x4036a8
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x4036a0
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x40369c
cmp dword [eax], 0
je 0x40369c
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x4036aa
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403683
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4037bc
Capabilities:
Query service status

Disassembly:
push ebx
add esp, 0xffffffe4
push 0xf003f
push 0x44fb34
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
test eax, eax
jne 0x4037d9
xor eax, eax
jmp 0x403816
push 0xf01ff
push 0x44fb43
push eax
call sub.ADVAPI32.DLL_OpenServiceA
mov ebx, eax
push esp
push ebx
call sub.ADVAPI32.DLL_QueryServiceStatus
test eax, eax
jne 0x403800
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
xor eax, eax
jmp 0x403816
cmp dword [esp + 4], 4
jne 0x403814
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, 1
jmp 0x403816
xor eax, eax
add esp, 0x1c
pop ebx
ret

Function at 0x403878
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x403891
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403898
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call sub.KERNEL32.DLL_GetCurrentProcessId
push eax
push 1
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
push 0
push eax
call sub.KERNEL32.DLL_TerminateProcess
pop ebp
ret
Function at 0x40a3d8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x453f48], 0
jne 0x40a459
cmp dword [0x453f68], 0
jne 0x40a408
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x453f68], eax
test eax, eax
jne 0x40a408
push 0x451b2c
call fcn.00409bac
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x453f68]
jmp 0x40a41c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00405cb0
pop ecx
mov edi, eax
test eax, eax
jne 0x40a414
lea edi, [ebp + 1]
push edi
call fcn.00404b7c
pop ecx
mov ebx, eax
mov dword [0x453f4c], ebx
test ebx, ebx
jne 0x40a446
xor eax, eax
jmp 0x40a51c
push edi
mov edx, dword [0x453f68]
push edx
push ebx
call fcn.00405b60
add esp, 0xc
jmp 0x40a479
xor esi, esi
mov ebx, dword [0x453f48]
jmp 0x40a473
push eax
call fcn.00405cb0
pop ecx
test eax, eax
jne 0x40a46f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40a463
lea ebx, [esi + 4]
push 4
mov dword [0x453f50], ebx
inc ebx
push ebx
call fcn.004046e0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40a49c
xor eax, eax
jmp 0x40a51c
cmp dword [0x453f48], 0
jne 0x40a4cd
xor esi, esi
mov ebx, dword [0x453f4c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40a4be
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00405cb0
pop ecx
mov edi, eax
test eax, eax
jne 0x40a4b4
jmp 0x40a4fe
xor esi, esi
mov ebx, dword [0x453f48]
mov eax, dword [esp]
mov edi, eax
jmp 0x40a4f8
push eax
call fcn.00405cb0
pop ecx
test eax, eax
je 0x40a4ed
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40a4f1
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40a4dc
mov eax, dword [0x453f48]
test eax, eax
je 0x40a50e
push eax
call fcn.00404b8c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x453f48], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x45264c
sub eax, eax
test esi, esi
je 0x40cd7c
sub eax, 1
test ecx, ecx
je 0x40cd7a
test esi, 3
je 0x40ccda
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40ccbf
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x40cd61
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40cce8
mov ecx, edx
test ecx, ecx
je 0x40cd7a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40cd67
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x40d060
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0040d0e3
jae 0x40d06e
xor ecx, ecx
call fcn.0040d0e3
jae 0x40d09d
xor eax, eax
call fcn.0040d0e3
jae 0x40d0ad
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040d0e3
adc al, al
jae 0x40d08f
jne 0x40d0d9
stosb byte es:[edi], al
jmp 0x40d071
call fcn.0040d0ef
sub ecx, ebx
jne 0x40d0b6
call fcn.0040d0ed
jmp 0x40d0d5
lodsb al, byte [esi]
shr eax, 1
je 0x40d0ff
adc ecx, ecx
jmp 0x40d0d2
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0040d0ed
cmp eax, 0x7d00
jae 0x40d0d2
cmp ah, 5
jae 0x40d0d3
cmp eax, 0x7f
ja 0x40d0d4
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40d071
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x40d42c
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x40d49b
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x40d463
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40dd9c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
xor eax, eax
push ebx
push esi
push edi
xor esi, esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
lea edx, [ebp - 0xc]
push eax
push 0
push 0
push 0
push edx
lea ecx, [ebp - 0x114]
push ecx
push esi
push edi
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov ebx, eax
test ebx, ebx
jne 0x40de3b
mov dword [ebp - 0xc], 0xc8
push 0x452f24
call fcn.00405cb0
pop ecx
push eax
lea eax, [ebp - 0x110]
push eax
push 0x452f0e
call fcn.00405e28
add esp, 0xc
test eax, eax
jne 0x40de3b
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0xc]
jne 0x40de38
mov ecx, dword [ebp + 0x10]
mov esi, 0x452f3a
mov edi, ecx
lea edx, [ebp - 0x110]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00405c74
add esp, 8
mov eax, 1
jmp 0x40de46
inc dword [ebp - 0x10]
inc esi
test ebx, ebx
je 0x40ddbb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416a00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x416a21
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x416670
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x416a48
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417b30
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.00416430
test eax, eax
jne 0x417b48
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x20006
xor esi, esi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0040cc40
cmp eax, esi
je 0x417b91
push eax
call fcn.0040c940
mov edi, eax
mov eax, dword [ebp - 0x10]
add esp, 4
cmp eax, esi
je 0x417b89
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x10]
push 0x20006
push str.11AC3232_E7D7_49CD_ABFE_501700100B3A
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.0040cc40
cmp eax, esi
je 0x417be2
push eax
call fcn.0040c940
mov edi, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp eax, esi
je 0x417bce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x417bd9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [0x43f2ec]
lea eax, [ebp - 0x20]
push eax
push esi
push 0x65
push ecx
mov dword [ebp - 0x20], 0x4334d0
mov dword [ebp - 0x1c], str.11AC3232_E7D7_49CD_ABFE_501700100B3A
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00410080
mov dword [ebp - 4], eax
cmp edi, esi
je 0x417c26
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x417c31
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4013c0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4013d2
mov eax, dword [0x49208b]
shl eax, 2
mov dword [0x49208f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004844e4
pop edx
call fcn.00484448
call fcn.00484524
push 0
call fcn.00485a18
pop ecx
push 0x492034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x492093], eax
push 0
jmp fcn.0048bb94

Function at 0x401644
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7d8
mov eax, 0x492208
call fcn.00484d78
push 3
push 0
lea edx, [ebp - 0x828]
push edx
call fcn.00484994
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x428]
push ecx
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 2
lea eax, [ebp - 0x428]
push eax
lea edx, [ebp - 0x828]
push edx
call fcn.00484c44
add esp, 0xc
push str._temp
lea ecx, [ebp - 0x828]
push ecx
call fcn.00484a38
add esp, 8
mov word [ebp - 0x18], 8
lea edx, [ebp - 0x828]
lea eax, [ebp - 4]
call fcn.0048fe3c
inc dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00434cb0
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0048ffcc
lea ecx, [ebp - 0x828]
push ecx
push dword [ebp + 8]
call fcn.00484a74
add esp, 8
mov eax, dword [ebp - 0x28]
mov dword fs:[0], eax
mov esp, ebp
pop ebp
ret

Function at 0x401744
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
mov eax, 0x49222c
call fcn.00484d78
mov dword [ebp - 8], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.0048fe74
inc dword [ebp - 8]
mov word [ebp - 0x14], 8
mov dl, 1
mov eax, dword [0x459078]
call fcn.00460994
mov dword [ebp - 0x28], eax
push 0x710
push 0x160
lea edx, [ebp - 0x188]
push edx
push 0x80
lea eax, [ebp + 8]
call fcn.004017d8
push eax
call sub.SHELL32.DLL_SHGetFileInfoA
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x28]
call fcn.0048fda8
mov eax, dword [ebp - 0x28]
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.0048ffcc
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret

Function at 0x430680
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a18c4
cmp dword [edi], 0
jne 0x4306fc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4a18c0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49c938
mov ecx, 2
call fcn.004433d4
mov edx, 0x430658
lea eax, [esi + 5]
call fcn.00430678
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00430678
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4306d1
mov dword [0x4a18c0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x431be4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004451e0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x431c3c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a1248]
mov dl, 1
mov eax, dword [0x431760]
call fcn.00436d18
call fcn.00444990
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00431868
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x432550
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x422fc4]
call fcn.00445768
xor eax, eax
push ebp
push 0x432694
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49c980], 0
jne 0x4325a3
mov ecx, dword [0x4a1278]
mov dl, 1
mov eax, dword [0x4335d4]
call fcn.00436cdc
call fcn.00444990
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00443af8
mov eax, ebx
call fcn.004455d8
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4326a4
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00446ae8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004455e8
test eax, eax
jle 0x43263b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x432634
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00444fb0
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00444f98
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004344c8
test eax, eax
jne 0x432634
mov ebx, 0x15
jmp 0x432640
mov ebx, 0x10
jmp 0x432640
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x49c980]
call fcn.004324a8
mov eax, dword [ebp - 8]
call fcn.004324a8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00446b00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43269b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00444d54
lea eax, [ebp - 0x10]
mov edx, dword [0x422fc4]
call fcn.00445838
ret