joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407bfe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x40ffa4]
push edi
jae 0x407dd3
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x40ffc0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x407dd3
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x407ca9
test dl, 2
jne 0x407ca9
test dl, 0x48
je 0x407c73
cmp byte [eax + 5], 0xa
je 0x407c73
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x407ca4
mov dword [0x40fb44], ecx
jmp 0x407dda
cmp eax, 0x6d
jne 0x407cb0
xor eax, eax
jmp 0x407de7
push eax
call fcn.0040a809
pop ecx
jmp 0x407de4
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x407dce
test eax, eax
je 0x407ce3
cmp byte [ebx], 0xa
jne 0x407ce3
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x407cec
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x407dc8
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x407db8
cmp al, 0xd
je 0x407d1e
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x407daa
dec ecx
cmp dword [ebp - 8], ecx
jae 0x407d38
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x407d33
add dword [ebp - 8], 2
jmp 0x407d8c
mov dword [ebp - 8], eax
jmp 0x407da6
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407d60
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407da6
cmp dword [ebp - 0x10], 0
je 0x407da6
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x407d81
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x407d8c
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x407da9
cmp ebx, dword [ebp + 0xc]
jne 0x407d91
cmp byte [ebp - 1], 0xa
jne 0x407d91
mov byte [ebx], 0xa
jmp 0x407da9
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00408132
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x407daa
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x407d02
jmp 0x407dc8
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x407dc8
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x407de7
and dword [0x40fb44], 0
mov dword [0x40fb40], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407e86
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40fb8c], esi
push edi
jne 0x407ea6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40fb88], esi
mov byte [0x40fb84], al
jne 0x407f0c
mov ecx, dword [0x4100c8]
test ecx, ecx
je 0x407eed
mov eax, dword [0x4100c4]
sub eax, 4
cmp eax, ecx
jmp 0x407ee6
mov eax, dword [eax]
test eax, eax
je 0x407ed8
call eax
mov eax, dword [0x4100c4]
sub eax, 4
cmp eax, dword [0x4100c8]
mov dword [0x4100c4], eax
jae 0x407ed0
mov eax, 0x40e024
mov esi, 0x40e02c
cmp eax, esi
mov edi, eax
jae 0x407f0c
mov eax, dword [edi]
test eax, eax
je 0x407f05
call eax
add edi, 4
cmp edi, esi
jb 0x407efd
mov eax, 0x40e030
mov esi, 0x40e038
cmp eax, esi
mov edi, eax
jae 0x407f2b
mov eax, dword [edi]
test eax, eax
je 0x407f24
call eax
add edi, 4
cmp edi, esi
jb 0x407f1c
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x407f45
push dword [ebp + 8]
mov dword [0x40fb8c], 1
call fcn.00407dec
pop ebp
ret

Function at 0x408398
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40f440]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40f728]
je 0x4083cd
inc eax
cmp eax, 0x13
jb 0x4083be
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40f728]
jne 0x4084f3
mov eax, dword [0x40fb14]
cmp eax, 1
je 0x4084cb
cmp eax, edx
jne 0x4083fd
cmp dword [0x40f474], 1
je 0x4084cb
cmp ecx, 0xfc
je 0x4084f3
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408433
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00405570
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404af0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408467
mov eax, edi
push eax
call fcn.00404af0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c894
push edi
call fcn.004098a0
add esp, 0x10
push edi
call fcn.00404af0
push dword [esi + 0x40f72c]
mov ebx, eax
call fcn.00404af0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004050f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405570
push edi
push ebx
call fcn.00405580
push 0x40c890
push ebx
call fcn.00405580
push dword [esi + 0x40f72c]
push ebx
call fcn.00405580
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040979e
add esp, 0x2c
jmp 0x4084f3
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40f72c]
push dword [esi]
call fcn.00404af0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00404bac
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40979e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40fcac], ebx
push esi
push edi
jne 0x40981e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x409859
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40cf8c
push edi
call esi
test eax, eax
mov dword [0x40fcac], eax
je 0x409859
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40fcb0], eax
call esi
cmp dword [0x40fb4c], 2
mov dword [0x40fcb4], eax
jne 0x40981e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40fcbc], eax
je 0x40981e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40fcb8], eax
mov eax, dword [0x40fcb8]
test eax, eax
je 0x409863
call eax
test eax, eax
je 0x40984a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40fcbc]
test eax, eax
je 0x40984a
test byte [ebp - 8], 1
jne 0x409863
cmp dword [0x40fb58], 4
jb 0x40985d
or byte [ebp + 0x12], 0x20
jmp 0x409882
xor eax, eax
jmp 0x409892
or byte [ebp + 0x12], 4
jmp 0x409882
mov eax, dword [0x40fcb0]
test eax, eax
je 0x409882
call eax
mov ebx, eax
test ebx, ebx
je 0x409882
mov eax, dword [0x40fcb4]
test eax, eax
je 0x409882
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40fcac]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4099c4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4099f2
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4099f9
cmp ebx, dword [eax + 4]
jae 0x4099f9
xor eax, eax
jmp 0x409be9
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x409a0a
xor eax, eax
inc eax
jmp 0x409be8
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x409a20
cmp ecx, edx
jae 0x409b65
cmp dword [eax + 4], 0
je 0x409a29
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x409a11
cmp dword [ebp + 8], 0
je 0x409a4b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x409b65
cmp eax, esi
jae 0x409b65
mov eax, dword [0x40fcc0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x409a70
cmp dword [esi*4 + 0x40fcc8], edi
je 0x409b69
inc esi
cmp esi, eax
jl 0x409a5e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409be5
cmp dword [ebp - 8], 0x1000000
jne 0x409be5
test byte [ebp - 0xc], 0xcc
je 0x409aee
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x409be5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x409be5
cmp word [eax + 0x18], 0x10b
jne 0x409be5
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x409be5
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x409aee
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x409aee
test byte [ecx + 0x27], 0x80
jne 0x409b65
push 1
push 0x40fd08
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x409a02
mov ecx, dword [0x40fcc0]
test ecx, ecx
mov edx, ecx
jle 0x409b22
lea eax, [ecx*4 + 0x40fcc4]
cmp dword [eax], edi
je 0x409b22
dec edx
sub eax, 4
test edx, edx
jg 0x409b16
test edx, edx
jne 0x409b53
push 0xf
pop ebx
cmp ecx, ebx
jg 0x409b2f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x409b47
lea eax, [edx*4 + 0x40fcc8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x409b35
cmp ecx, 0x10
jge 0x409b53
inc ecx
mov dword [0x40fcc0], ecx
push 0
push 0x40fd08
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x409a02
xor eax, eax
jmp 0x409be8
test esi, esi
jle 0x409a02
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40fd08
call ebx
test eax, eax
jne 0x409a02
cmp dword [esi*4 + 0x40fcc8], edi
je 0x409bbf
mov eax, dword [0x40fcc0]
lea esi, [eax - 1]
test esi, esi
jl 0x409bad
cmp dword [esi*4 + 0x40fcc8], edi
je 0x409ba9
dec esi
jns 0x409b9d
test esi, esi
jge 0x409bbd
cmp eax, 0x10
jge 0x409bb8
inc eax
mov dword [0x40fcc0], eax
lea esi, [eax - 1]
jmp 0x409bbf
je 0x409bd7
xor ecx, ecx
test esi, esi
jl 0x409bd7
lea eax, [ecx*4 + 0x40fcc8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x409bc5
push 0
push 0x40fd08
call ebx
jmp 0x409a02
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b104
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004050f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b19f
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40fb4c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40b19f
cmp eax, 1
je 0x40b1c0
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b19f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40b16c
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40b19b
xor eax, eax
inc eax
jmp 0x40b1df
cmp edi, eax
jae 0x40b1a3
xor eax, eax
jmp 0x40b1df
cmp eax, esi
jae 0x40b1aa
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40fb4c]
jmp 0x40b1c3
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b8a8
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004050f0
mov eax, dword [0x40f440]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x40ffa4]
mov dword [ebp - 4], eax
jae 0x40b9eb
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x40ffc0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40b9eb
push 1
push esi
push ebx
call fcn.00408132
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x40b9f5
push 2
push esi
push ebx
call fcn.00408132
add esp, 0xc
cmp eax, 0xffffffff
je 0x40b9f5
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40b995
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00408c00
push 0x8000
push ebx
call fcn.0040ba04
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40b954
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00407744
add esp, 0xc
cmp eax, 0xffffffff
je 0x40b972
sub edi, eax
test edi, edi
jg 0x40b949
jmp 0x40b988
cmp dword [0x40fb44], 5
jne 0x40b985
mov dword [0x40fb40], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0040ba04
pop ecx
pop ecx
jmp 0x40b9d5
jge 0x40b9d5
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00408132
push ebx
call fcn.0040aaec
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x40b9d5
mov dword [0x40fb40], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40fb44], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00408132
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40b9f8
mov dword [0x40fb40], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00404bac
leave
ret
Function at 0x1000aeb0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x1000aeb9
ret
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push eax
call dword [sym.imp.kernel32.dll_CreateProcessA]
ret

Function at 0x10013c81
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10013c90
pop dword [ebp - 0x50]
mov eax, 0x8d2bb447
sub eax, 0x7d2a77b7
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3b913
push 0
mov eax, 0xca881ca
sub eax, 0xfca6a06e
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0xefc5b1ca
sub ecx, 0xefc566f5
xor esi, esi
add esi, eax
mov edx, 0x3838885a
add edx, 0xd7ca59a6
add edx, dword [ebp - 0x50]
mov ebx, 0x23c8edba
sub ebx, 0xaa809b71
xor dword [ebp - 0x38], ebx
mov edi, dword [edx]
xor dword [ebp - 0x3c], 0x7844255
sub edi, ebx
xor dword [ebp - 0x10], 0x38fe84f8
mov dword [esi], edi
add dword [ebp - 0x38], 0xe11dbbb6
add esi, 4
add edx, 0x462e657b
add edx, 0xb9d19a89
loop 0x10013cf1
add eax, 0xebc96e79
sub eax, 0xebc85052
mov ebx, eax
add eax, 0xf6b2c7f0
add eax, 0x94d3815
mov ecx, 0xc6a40265
sub ecx, 0xb6a40265
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x724c10a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
test byte [section..data], 1
jne 0x724c10c4
mov dword [esp], 0x78
call sym._SetLastError_4
xor eax, eax
sub esp, 4
leave
ret 4
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], str.stub:__p_n
mov dword [esp + 0x10], 0x2b
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.SnmpMgrTrapListen
mov dword [esp + 8], 0x724c5045
mov dword [esp + 4], 0x724c4000
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x724c10af

Function at 0x724c1110
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_SnmpMgrClose___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], str.mgmtapi.dll
mov dword [ebp - 0x40], str.SnmpMgrClose
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x724c1170
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_SnmpMgrCtl___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], str.mgmtapi.dll
mov dword [ebp - 0x40], str.SnmpMgrCtl
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x724c11d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_SnmpMgrGetTrap___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], str.mgmtapi.dll
mov dword [ebp - 0x40], str.SnmpMgrGetTrap
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x724c1230
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_SnmpMgrGetTrapEx___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], str.mgmtapi.dll
mov dword [ebp - 0x40], str.SnmpMgrGetTrapEx
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x724c1290
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_SnmpMgrOidToStr___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], str.mgmtapi.dll
mov dword [ebp - 0x40], str.SnmpMgrOidToStr
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4
Function at 0x724c12f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_SnmpMgrOpen___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], str.mgmtapi.dll
mov dword [ebp - 0x40], str.SnmpMgrOpen
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x724c1350
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_SnmpMgrRequest___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], str.mgmtapi.dll
mov dword [ebp - 0x40], str.SnmpMgrRequest
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x724c13b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_SnmpMgrStrToOid___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], str.mgmtapi.dll
mov dword [ebp - 0x40], str.SnmpMgrStrToOid
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4
Function at 0x724c30a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp + 0xc]
sub esp, 0x10
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], 0x724c533c
call sym._fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_vfprintf]
call sym._abort
lea esi, [esi]
Function at 0x4014f5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x416040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x41750c]
push esi
mov esi, edx
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x218], eax
test esi, esi
je 0x401623
xor eax, eax
cmp word [esi], ax
je 0x401623
push edi
push 4
push 0x413fbc
push esi
call fcn.00405844
test eax, eax
lea edi, [esi + 8]
push 2
cmovne edi, esi
push 0x413fc8
push edi
call fcn.00405844
push 0x20a
mov esi, eax
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004036e0
test esi, esi
lea ecx, [edi + 4]
push 0x104
cmovne ecx, edi
lea eax, [ebp - 0x210]
push ecx
push 0x105
push eax
call fcn.0040594c
lea eax, [ebp - 0x210]
push 0x2e
push eax
call fcn.00403427
add esp, 0x3c
mov esi, eax
pop edi
test esi, esi
je 0x4015d6
xor eax, eax
mov word [esi], ax
inc esi
add esi, 1
je 0x4015d6
push str.HTML
push esi
call fcn.004056bf
pop ecx
pop ecx
test eax, eax
je 0x4015d6
push 0x413fdc
push esi
call fcn.004056bf
pop ecx
pop ecx
test eax, eax
je 0x4015d6
push esi
jmp 0x4015d8
push 0x17
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x401623
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401623
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 0x214]
mov dword [ecx], eax
test eax, eax
je 0x401623
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x218]
mov dword [ecx], eax
test eax, eax
je 0x401623
mov al, 1
jmp 0x401625
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040223d
leave
ret

Function at 0x402b7e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402bbd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402bbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402bbd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402bbd
cmp dword [ecx + 0x74], 0xe
jbe 0x402bbd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret