joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9971b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00997140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00997140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00997140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00997140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x997230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x9972d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x9972ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00997230
mov esi, eax
add esp, 8
test esi, esi
jne 0x9972ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x99727e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0x9972ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x997bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x997c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x9a987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x997c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x997c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408974
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
call fcn.004089a3
and edi, edi
xor dword [edx], ecx
inc edx
push edi
mov edi, dword [esp]
add esp, 4
add edi, eax
cmp edx, ebx
jne fcn.00408974
add eax, 0xbce59e4b
sub eax, 0xdffcfd50
ret
Function at 0x401210
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
rol edx, 0x4f
ror esi, 0x92
ror edi, 0x39
or edi, 0x5e
neg esi
bswap ebx
inc esi
sbb edi, 0x21
bswap eax
inc edx
rcl ebx, 0xcb
sbb esi, 0xd7
inc edi
mov edi, 0x8a
rcl esi, 0x5e
inc edi
neg edi
bswap esi
add edx, 0x84
bswap eax
ror esi, 0x99
or esi, 0xf6
neg edi
add esi, 0xa6
bswap esi
sub edx, 0xcb
or esi, 0x61
imul edx
inc ebx
sbb ebx, 0x62
and ebx, 0xd8
and ebx, 0xc
inc esi
add edx, 0x99
rol eax, 0xcf
mov ebx, 0xc4
bswap esi
or edi, 0x69
neg edi
ror eax, 0xe9
rcr edx, 0x41
rcl edx, 0x3d
inc edx
neg esi
mov esi, 0x57
rcl ebx, 9
and edx, 0x9f
or eax, 0xb1
imul edi
and eax, 0x52
xor ecx, ecx
xor edi, edi
rcl eax, 0x85
imul edi
rcl eax, 0x85
and eax, 0xb5
inc edx
inc edi
neg ebx
add edx, 0x54
not edi
bswap edi
mov esi, 0x17
rcl esi, 0x14
sbb eax, 0xf3
rcl ebx, 0xd
and esi, 0x3a
imul ebx
not edi
rol esi, 0x69
ror eax, 0xa2
add esi, 0xbd
sub edx, 0x8f
imul ebx
and ebx, 0x35
neg ebx
mov eax, 0xab
rcl ebx, 0x3f
rcr eax, 0x79
sbb ebx, 0x5b
add edi, 0xee
imul eax
add edx, 0xd2
sbb edx, 7
rol ebx, 0xe2
dec edi
imul edi
and ebx, 0x57
mov ebx, 0x9c
ror eax, 0xda
imul eax
imul edx
imul eax
dec edi
or edi, 0xab
and eax, 0xce
not ebx
neg edi
ror ebx, 0x21
bswap eax
inc edi
add esi, 0x19
mov ecx, dword [ebp + 0xc]
bswap esi
rol eax, 0xcd
inc ebx
dec edx
ror edx, 0x76
rcr ebx, 0xe1
bswap esi
sub edx, 0x64
dec esi
not eax
not edx
or esi, 0x98
bswap edx
rol esi, 0x36
rcl eax, 0x70
imul edi
not eax
imul edi
not esi
neg eax
rcr edx, 0xd4
rcr edx, 0x22
add eax, 0xbd
not edi
rcl esi, 0xdb
bswap esi
and edi, 0x8d
not edx
rcr esi, 0x16
ror edi, 0xca
sub eax, 0x83
bswap edx
neg edi
mov edx, 0x59
inc edi
rcr edi, 0x50
add edi, 0xb9
add edx, 0xae
imul esi
dec esi
ror eax, 0xdf
rcl edi, 0xd7
add eax, 0xb2
add esi, 0xbb
ror edx, 0x45
imul esi
or esi, 0x95
neg edi
and edx, 0xe3
bswap eax
mov edi, dword [ebp + 8]
mov eax, esi
mov ebx, esi
xor eax, esi
not byte [edi]
mov eax, ebx
xor ebx, eax
xor esi, ebx
xor ebx, eax
mov eax, eax
mov eax, esi
xor ebx, esi
mov eax, eax
mov eax, ebx
add byte [edi], 0x34
xor ebx, ebx
mov ebx, eax
mov eax, esi
mov eax, eax
xor ebx, esi
mov ebx, esi
mov eax, eax
xor ebx, eax
mov ebx, eax
sub byte [edi], 0x75
mov eax, ebx
xor esi, esi
xor esi, eax
mov eax, esi
mov esi, eax
mov eax, ebx
mov ebx, eax
xor ebx, eax
mov esi, ebx
imul byte [edi]
inc edi
loop 0x4013ee
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407654
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4108f0]
jne 0x40765e
repz ret
jmp fcn.0040bb55
Function at 0x407fc3
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.004058ea
and dword [ebp - 4], 0
cmp dword [0x4115cc], 0
mov ebx, eax
jne 0x408074
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408125
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408125
push eax
call fcn.00405878
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4115cc], eax
call esi
push eax
call fcn.00405878
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4115d0], eax
call esi
push eax
call fcn.00405878
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4115d4], eax
call esi
push eax
call fcn.00405878
pop ecx
mov dword [0x4115dc], eax
test eax, eax
je 0x408074
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405878
pop ecx
mov dword [0x4115d8], eax
mov eax, dword [0x4115d8]
cmp eax, ebx
je 0x4080cc
cmp dword [0x4115dc], ebx
je 0x4080cc
push eax
call fcn.004058f3
push dword [0x4115dc]
mov esi, eax
call fcn.004058f3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4080cc
test edi, edi
je 0x4080cc
call esi
test eax, eax
je 0x4080c3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4080c3
test byte [ebp - 0xc], 1
jne 0x4080cc
or dword [ebp + 0x10], 0x200000
jmp 0x408105
mov eax, dword [0x4115d0]
cmp eax, ebx
je 0x408105
push eax
call fcn.004058f3
pop ecx
test eax, eax
je 0x408105
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408105
mov eax, dword [0x4115d4]
cmp eax, ebx
je 0x408105
push eax
call fcn.004058f3
pop ecx
test eax, eax
je 0x408105
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4115cc]
call fcn.004058f3
pop ecx
test eax, eax
je 0x408125
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408127
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x61435aed
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x1dbb2ff3
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4033bb
Capabilities:
Terminate process

Disassembly:
add eax, 0
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4218a8], eax
call sub.kernel32.dll_GetProcessHeap
mov dword [0x4218ac], eax
push 0x416518
call fcn.00405090
push 0x41ee10
call fcn.00403338
mov ecx, 0x41ee10
push ecx
mov edx, dword [ecx]
call dword [edx - 0xc]
mov ecx, 0x41ee10
push ecx
mov edx, dword [ecx]
call dword [edx - 0x5c]
mov ecx, 0x41ee10
push ecx
mov edx, dword [ecx]
call dword [edx - 8]
push 0
call fcn.00403412

Function at 0x411190
Capabilities:
Check os version
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push edi
push 0xffffffffffffffec
push dword [ebp + 8]
call sub.user32.dll_GetWindowLongA
test eax, 0x80000
je 0x41123e
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x90], 5
jb 0x41123e
push str.User32.dll
call sub.kernel32.dll_GetModuleHandleA
push str.SetLayeredWindowAttributes
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
push 2
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call edi
push 8
push dword [ebp + 8]
call sub.user32.dll_ShowWindow
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0xc]
jbe 0x41123e
mov eax, dword [ebp + 0x14]
or eax, eax
je 0x41123e
mov ebx, dword [ebp + 0xc]
push 2
push ebx
push 0
push dword [ebp + 8]
call edi
push dword [ebp + 8]
call sub.user32.dll_UpdateWindow
push dword [ebp + 0x18]
call sub.kernel32.dll_Sleep
add ebx, dword [ebp + 0x14]
cmp ebx, dword [ebp + 0x10]
jb 0x41120e
push 2
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
call edi
jmp 0x411248
push 1
push dword [ebp + 8]
call sub.user32.dll_ShowWindow
pop edi
pop ebx
leave
ret 0x14

Function at 0x411250
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push edi
push 0xffffffffffffffec
push dword [ebp + 8]
call sub.user32.dll_GetWindowLongA
test eax, 0x80000
je 0x4112e2
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x90], 5
jb 0x4112e2
push str.User32.dll
call sub.kernel32.dll_GetModuleHandleA
push str.SetLayeredWindowAttributes
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0xc]
jae 0x4112e2
mov eax, dword [ebp + 0x14]
or eax, eax
je 0x4112e2
mov ebx, dword [ebp + 0xc]
push 2
push ebx
push 0
push dword [ebp + 8]
call edi
push dword [ebp + 8]
call sub.user32.dll_UpdateWindow
push dword [ebp + 0x18]
call sub.kernel32.dll_Sleep
sub ebx, dword [ebp + 0x14]
cmp ebx, dword [ebp + 0x10]
jg 0x4112b4
push 2
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
call edi
pop edi
pop ebx
leave
ret 0x14
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2e5655aa
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x43834615
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40bf2f
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 0x28
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
cmp edi, ebx
je 0x40bff1
mov eax, 0x1000
push esi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
xor eax, eax
cmp esi, ebx
setne al
pop ecx
mov edi, eax
cmp edi, ebx
je 0x40bfd6
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
cmp edi, ebx
je 0x40bfd6
lea eax, [ebp - 0x10]
push eax
push 0x4037b0
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edi, eax
cmp edi, ebx
je 0x40bfd6
mov dword [esi], 1
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
lea eax, [ebp - 8]
push eax
push ebx
mov dword [esi + 0xc], 2
push dword [ebp - 8]
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edi, eax
cmp esi, ebx
je 0x40bfe2
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - 4], ebx
pop esi
je 0x40bff1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x40d00a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x405cf8
push 0xa
pop ebx
push ebx
call fcn.0040da55
push 0x405cb0
push 0x14
call fcn.0040da55
add esp, 0x10
push 0x400007e2
call fcn.0040d56f
call fcn.0040a5f0
push 0x405ca4
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
cmp eax, esi
mov dword [0x414098], eax
jne 0x40d087
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405c60
push 0x20
call fcn.0040da55
push 0x405c00
push 0x20
call fcn.0040da55
push 0x405bb8
push ebx
call fcn.0040da55
add esp, 0x1c
xor eax, eax
jmp 0x40d241
push edi
push 0x405b78
push ebx
call fcn.0040da55
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
pop ecx
pop ecx
push esi
push esi
push 1
push esi
call edi
cmp eax, esi
mov dword [0x41409c], eax
jne 0x40d0f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x405b30
push 0x14
call fcn.0040da55
add esp, 0xc
push esi
push 0xc00007d0
call fcn.0040d5de
push 0x405af0
push 0x14
call fcn.0040da55
pop ecx
pop ecx
push 0xc00007e3
call fcn.0040d56f
push 0x405bb8
jmp 0x40d20c
push eax
push 0x405ab0
push esi
call fcn.0040da55
add esp, 0xc
call fcn.0040bff7
test eax, eax
jne 0x40d120
push 0x405a68
push 0x14
call fcn.0040da55
pop ecx
pop ecx
push 0xc00003fc
jmp 0x40d1ea
push 0x405a18
push ebx
call fcn.0040da55
pop ecx
pop ecx
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [0x4140a4], eax
jne 0x40d15c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x4059d4
push 0x14
call fcn.0040da55
add esp, 0xc
push esi
push 0xc00007d2
jmp 0x40d1b0
push eax
push 0x405988
push esi
call fcn.0040da55
push 0x405940
push ebx
call fcn.0040da55
add esp, 0x14
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x411fdd
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x4140a0], eax
jne 0x40d1b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x4058f0
push 0x14
call fcn.0040da55
add esp, 0xc
push esi
push 0xc00007d5
call fcn.0040d5de
jmp 0x40d1ef
push eax
push 0x4058a0
push esi
call fcn.0040da55
add esp, 0xc
push dword [ebp + 0x10]
push 0x4141d0
call fcn.0040a6db
test eax, eax
jne 0x40d21d
push 0x405858
push 0x14
call fcn.0040da55
pop ecx
pop ecx
push 0xc00003ff
call fcn.0040d56f
push 0x405808
push 0x14
call fcn.0040da55
pop ecx
pop ecx
push 0xc00007e3
call fcn.0040d56f
push 0x4057b0
push ebx
call fcn.0040da55
pop ecx
pop ecx
call sym.snmpelea.dll_SnmpExtensionClose
xor eax, eax
jmp 0x40d240
mov eax, dword [ebp + 8]
mov ecx, dword [0x4140a4]
mov dword [0x414074], eax
mov eax, dword [ebp + 0xc]
push 0x405760
push ebx
mov dword [eax], ecx
call fcn.0040da55
pop ecx
xor eax, eax
pop ecx
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d247
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x4142f8], 0
je 0x40d356
push 0x405d60
push 0x4142f8
call dword [sym.imp.msvcrt.dll_fopen]
test eax, eax
pop ecx
pop ecx
mov dword [0x415520], eax
je 0x40d356
cmp dword [ebp + 0xc], 0
je 0x40d2cb
push 0x415510
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [0x41551c]
push eax
movzx eax, word [0x41551a]
push eax
movzx eax, word [0x415518]
push eax
movzx eax, word [0x415510]
push eax
movzx eax, word [0x415516]
push eax
movzx eax, word [0x415512]
push eax
push 0x405d40
push dword [0x415520]
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x20
cmp dword [ebp + 8], 0
je 0x40d318
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
mov esi, 0x414510
push 0xfff
push esi
mov byte [0x41550f], 0
call dword [sym.imp.msvcrt.dll__vsnprintf]
mov eax, esi
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40d2f9
push dword [0x415520]
sub eax, ecx
push 1
push eax
push esi
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
pop esi
jmp 0x40d33c
mov eax, dword [ebp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d31e
push dword [0x415520]
sub eax, edx
push 1
push eax
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
push dword [0x415520]
call dword [sym.imp.msvcrt.dll_fflush]
push dword [0x415520]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40d358
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x414050]
push ebx
mov dword [ebp + 0x94], eax
lea eax, [ebp - 0x78]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x405ee8
push 0x80000002
mov dword [ebp - 0x7c], 0x104
mov byte [ebp + 0x90], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40d3bc
push eax
push 0x405e88
push 1
push 1
call fcn.0040d247
add esp, 0x10
mov dword [0x4142f0], ebx
jmp 0x40d470
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x405e74
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40d3fe
push eax
push 0x405e18
push 1
push 1
call fcn.0040d247
add esp, 0x10
push dword [ebp - 0x78]
mov dword [0x4142f0], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d470
push esi
push edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x105
push edi
mov esi, 0x414400
push esi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, ebx
je 0x40d452
cmp eax, edi
ja 0x40d452
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, ebx
mov dword [0x4142f0], eax
jne 0x40d46e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x405dc8
push 1
push 1
call fcn.0040d247
jmp 0x40d46b
push eax
lea eax, [ebp - 0x74]
push eax
push 0x405d68
push 1
push 1
call fcn.0040d247
mov dword [0x4142f0], ebx
add esp, 0x14
pop edi
pop esi
mov ecx, dword [ebp + 0x94]
pop ebx
call fcn.00412af8
add ebp, 0x98
leave
ret
Function at 0x40d56f
Capabilities:
Access the windows event log

Disassembly:
mov ecx, dword [0x414098]
push esi
xor esi, esi
cmp ecx, esi
je 0x40d5c0
push dword [esp + 8]
call fcn.0040d542
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x1c]
mov word [0x415530], ax
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
cmp eax, esi
mov dword [0x41552c], eax
jne 0x40d5da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40602c
push 1
push 1
call fcn.0040d247
add esp, 0x10
jmp 0x40d5d0
push 0x405fec
push 1
push esi
call fcn.0040d247
add esp, 0xc
push esi
push dword [esp + 0xc]
call fcn.0040d484
pop esi
ret 4

Function at 0x40d5de
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x22
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
xor edi, edi
cmp dword [0x414098], edi
mov ecx, eax
mov dword [0x41553c], ecx
je 0x40d66a
cmp ecx, edi
je 0x40d699
push dword [ebp + 8]
call fcn.0040d542
push 0xa
push ecx
push dword [ebp + 0xc]
mov word [0x415538], ax
call dword [sym.imp.msvcrt.dll__ultoa]
add esp, 0xc
push edi
mov esi, 0x41553c
push esi
push edi
push 1
push edi
push dword [ebp + 8]
xor eax, eax
mov ax, word [0x415538]
push edi
push eax
push dword [0x414098]
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
cmp eax, edi
mov dword [0x415534], eax
jne 0x40d6b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40602c
push 1
push 1
call fcn.0040d247
add esp, 0x10
push esi
jmp 0x40d6aa
push 0x405fec
push 1
push edi
call fcn.0040d247
mov eax, dword [0x41553c]
add esp, 0xc
cmp eax, edi
je 0x40d699
push 0xa
push eax
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll__ultoa]
add esp, 0xc
push 0x41553c
jmp 0x40d6aa
push 0x406060
push 1
push edi
call fcn.0040d247
add esp, 0xc
push edi
push dword [ebp + 8]
call fcn.0040d484
push dword [0x41553c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
pop ebp
ret 8