joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406371
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x238
mov eax, 0x40e86a
call fcn.0040d30f
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x4166e8]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4064e2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4064e2
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4064e2
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4064e2
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x40645b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x4064d4
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4064d4
mov ecx, 0x1234
cmp cx, ax
jne 0x4064d4
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x4064ae
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4063c9
mov eax, edi
call fcn.0040d2ca
ret 4

Function at 0x40ab42
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40ab51
pop dword [ebp - 0x10]
mov eax, 0x40ab51
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3abc9
push 0
mov eax, 0xfd1c29d9
sub eax, 0xfcdb3949
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x5155
mov edi, eax
mov ebx, 0x41aa00
add ebx, dword [ebp - 0x10]
mov edx, 0x11e7ae0d
sub dword [ebp - 4], 0x85cbaafa
mov esi, dword [ebx]
add esi, edx
sub dword [ebp - 4], edi
mov dword [edi], esi
xor dword [ebp - 0xc], edx
add edi, 4
add ebx, 4
loop 0x40ab99
add eax, 0x6c7fb1c7
sub eax, 0x6c7e79a0
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40633c
pop dword [ebp - 0x10]
mov eax, 0x878f38c
sub eax, 0x8389050
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x4c5e99bf
sub dword [ebp - 0x20], 0xfe0c5474
mov dword [ebp - 0x1c], 0x3c0d7207
add dword [ebp - 0x1c], 0xf625da3e
mov dword [ebp - 0x18], 0x53cdc721
add dword [ebp - 0x18], 0xf87e7d0d
mov dword [ebp - 0x14], 0x3361f610
add dword [ebp - 0x14], 0xcc9e09f0
lea eax, [ebp - 0x20]
push eax
mov eax, 0x6a5c2b05
add eax, 0x95e4455b
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x615c5bbe
add dword [ebp - 0x20], 0x13160d98
mov dword [ebp - 0x1c], 0xb9d8362c
sub dword [ebp - 0x1c], 0x786bd4b7
mov dword [ebp - 0x18], 0xaf450bbb
add dword [ebp - 0x18], 0xb42a60b1
mov dword [ebp - 0x14], 0xee268f
add dword [ebp - 0x14], 0xff11d971
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3b3e1
push 0
call eax
mov ecx, 0x329d2d55
sub ecx, 0x329cd2d6
mov ebx, eax
mov edx, 0xd1ab6db5
sub edx, 0xd16a6db5
add edx, dword [ebp - 0x10]
mov edi, 0x7c1da1d8
sub dword [ebp - 8], 0x1de28cf1
mov esi, dword [edx]
add dword [ebp - 8], ebx
xor esi, edi
sub dword [ebp - 0xc], ecx
mov dword [ebx], esi
add ebx, 0x43d972
add ebx, 0xffbc2692
add edx, 4
loop 0x406453
add eax, 0x15ccf
mov ebx, eax
add eax, 0x8b0dad3f
sub eax, 0x8b0dad3a
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x406937
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x40b138
call fcn.00406c3c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x40dbfc
push 0
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4066d6
cmp eax, esi
jne 0x4066c9
xor esi, esi
inc esi
mov ebx, esi
jmp 0x4066d9
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4066b0
xor esi, esi
inc esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x4066ec
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40671b
mov eax, dword [0x40dbf8]
test eax, eax
jne 0x406715
mov dword [0x40dbf8], esi
push 0x4072cc
push 0x4072c4
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40671b
jmp 0x406843
mov dword [0x40c2cc], esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x40673f
push 0x4072c0
push 0x4072b8
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x40dbf8], 2
test ebx, ebx
jne 0x40674b
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x40dc08], 0
je 0x40676f
push 0x40dc08
call fcn.00406bc2
pop ecx
test eax, eax
je 0x40676f
push 0
push 2
push 0
call dword [0x40dc08]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4067cb
test al, al
je 0x406789
cmp dword [ebp - 0x1c], 0
jne 0x4067cb
mov al, byte [esi]
test al, al
je 0x406799
cmp al, 0x20
ja 0x406799
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406789
test byte [ebp - 0x3c], 1
je 0x4067a5
movzx eax, word [ebp - 0x38]
jmp 0x4067a8
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x40c2c8], eax
cmp dword [0x40c2bc], 0
jne 0x40681f
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x4067da
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x4067ed
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x406776
cmp dword [0x40c2cc], 0
jne 0x40682e
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40c2c8]
jmp 0x40684f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00406c81
ret
call fcn.0040632d
jmp 0x406676

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..idata
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1f167f16
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4310d2
nop
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x71c84ee2
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x403650
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
test eax, eax
jne 0x403664
mov eax, 0x10
add esp, 8
ret
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x403675
lea eax, [esi + 0x10]
pop esi
add esp, 8
ret
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x403687
lea eax, [edi + 0x10]
pop edi
pop esi
add esp, 8
ret
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 3]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 5]
mov dword [esp + 8], ecx
movzx ecx, byte [eax + 4]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 6]
movzx eax, byte [eax + 7]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
mov dword [esp + 0xc], ecx
lea ecx, [esp + 8]
push ecx
mov eax, edi
call fcn.00403230
lea edx, [esp + 0xc]
lea eax, [edi + 0x80]
push edx
call fcn.00403230
lea ecx, [esp + 0x10]
lea eax, [edi + 0x100]
push ecx
call fcn.00403230
mov eax, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
mov byte [esi], dl
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 1], cl
mov edx, eax
mov byte [esi + 3], al
mov eax, dword [esp + 0x18]
shr edx, 8
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 2], dl
mov byte [esi + 4], cl
add esp, 0xc
mov edx, eax
mov ecx, eax
shr edx, 0x10
shr ecx, 8
mov byte [esi + 7], al
pop edi
mov byte [esi + 5], dl
mov byte [esi + 6], cl
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x403740
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x403756
mov eax, 0x10
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40374c
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x403770
lea eax, [edi + 0x10]
pop edi
pop esi
add esp, 8
ret
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 3]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 5]
mov dword [esp + 8], ecx
movzx ecx, byte [eax + 4]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 6]
movzx eax, byte [eax + 7]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
mov dword [esp + 0xc], ecx
lea ecx, [esp + 8]
lea eax, [edi + 0x180]
push ecx
call fcn.00403230
lea edx, [esp + 0xc]
lea eax, [edi + 0x200]
push edx
call fcn.00403230
lea ecx, [esp + 0x10]
lea eax, [edi + 0x280]
push ecx
call fcn.00403230
mov eax, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
mov byte [esi], dl
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 1], cl
mov edx, eax
mov byte [esi + 3], al
mov eax, dword [esp + 0x18]
shr edx, 8
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 2], dl
mov byte [esi + 4], cl
add esp, 0xc
mov edx, eax
mov ecx, eax
shr edx, 0x10
shr ecx, 8
mov byte [esi + 7], al
pop edi
mov byte [esi + 5], dl
mov byte [esi + 6], cl
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x407570
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esi + 0x24]
push ebp
mov ebp, dword [esp + 8]
xor ecx, ecx
test ebp, ebp
jle 0x407592
mov edi, edi
mov al, byte [edx + esi]
xor byte [ecx + edi], al
lea eax, [edx + 1]
cdq
idiv dword [esi + 0x20]
inc ecx
cmp ecx, ebp
jl 0x407580
mov dword [esi + 0x24], edx
pop ebp
ret
Function at 0x407ee0
Capabilities:
Hash data using sha256

Disassembly:
xor ecx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x20], ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret

Function at 0x408370
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, edx
test edi, edi
jbe 0x408390
push esi
mov esi, dword [esp + 0xc]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
xor dl, byte [eax]
inc eax
sub edi, 1
mov byte [esi + eax - 1], dl
jne 0x408380
pop esi
pop edi
ret

Function at 0x4083a0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, edx
test edi, edi
jbe 0x4083be
push esi
mov esi, dword [esp + 0xc]
sub esi, eax
mov edi, edi
mov dl, byte [esi + eax]
xor dl, cl
mov byte [eax], dl
inc eax
sub edi, 1
jne 0x4083b0
pop esi
pop edi
ret

Function at 0x409450
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40f756
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [esp], 0
mov ecx, dword [0x4250f4]
mov eax, dword [str.0123456789ABCDEF]
mov edx, dword [0x4250f8]
push ebx
mov dword [esp + 0xc], ecx
mov cl, byte [0x425100]
push esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [0x4250fc]
mov byte [esp + 0x1c], cl
push 0x4245b7
mov ecx, esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov bl, byte [esp + 0x34]
movzx edx, bl
shr edx, 4
movzx eax, byte [esp + edx + 0xc]
push eax
mov ecx, esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 1
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_]
movsx ecx, bl
and ecx, 0xf
movzx edx, byte [esp + ecx + 0xc]
push edx
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_]
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x409850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40f7e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
mov eax, dword [esp + 0x444]
mov dword [esp], 0
cmp dword [eax + 0x18], 0x10
jb 0x409884
mov eax, dword [eax + 4]
jmp 0x409887
add eax, 4
push esi
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x334]
push edx
lea ecx, [esp + 0x130]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.MSVCR90.dll__splitpath]
add esp, 0x14
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov esi, dword [esp + 0x444]
lea ecx, [esp + 0x128]
push ecx
push eax
push esi
mov dword [esp + 0x448], 1
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x43c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x434]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x43c
ret
Function at 0x40a370
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x278
push ebx
push ebp
push esi
push edi
mov esi, eax
push 0x2e
push esi
call dword [sym.imp.MSVCR90.dll_strrchr]
add esp, 8
test eax, eax
je 0x40a390
sub eax, esi
jmp 0x40a39e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a395
sub eax, edx
lea edx, [esp + 0x78]
mov edi, eax
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a3a8
mov eax, dword [str..log]
mov cl, byte [0x425504]
mov dword [esp + edi + 0x78], eax
mov eax, 0x56efe8
mov byte [esp + edi + 0x7c], cl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a3d0
sub eax, edx
jne 0x40a405
mov edx, 0x56efe8
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a3e4
mov edx, dword [str..ini]
mov al, byte [0x42550c]
mov dword [edi + 0x56efe8], edx
mov byte [edi + 0x56efec], al
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x56efe8
push 0x28
push str.Level
push 0x425518
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x56efe8
push 0x105
lea ecx, [esp + 0x188]
push ecx
lea edx, [esp + 0x84]
push edx
push str.FileName
push 0x42552c
mov edi, eax
call ebx
push 0x56efe8
push 1
push str.MaxFiles
push 0x425540
call esi
push 0x56efe8
push 0x100000
push str.MaxFileSize
push 0x425554
mov ebp, eax
call esi
push 0x56efe8
push 0x64
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push str.__i___d__t
push str.Prefix
push str.Logging
call ebx
lea ecx, [esp + 0x180]
push ecx
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
lea edx, [esp + 0x14]
push edx
push esi
push ebp
push edi
lea eax, [esp + 0x190]
push eax
call dword [sym.imp.cx_Logging.pyd_StartLogging]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x278
ret
Function at 0x40ca40
Capabilities:
Delete service

Disassembly:
sub esp, 0x18
push ebx
lea ebx, [esp + 4]
call fcn.0040c560
pop ebx
test eax, eax
jge 0x40ca59
or eax, 0xffffffff
add esp, 0x18
ret
mov eax, dword [esp + 0x1c]
push eax
push 0x4258a0
call dword [sym.imp.python32.dll_Py_BuildValue]
add esp, 8
test eax, eax
jne 0x40ca7f
push str.cannot_create_service_name_tuple
call dword [sym.imp.cx_Logging.pyd_LogPythonException]
add esp, 0x18
ret
mov ecx, dword [esp + 8]
push esi
push eax
push ecx
call dword [sym.imp.python32.dll_PyUnicodeUCS2_Format]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40caa5
push str.cannot_create_service_name
call dword [sym.imp.cx_Logging.pyd_LogPythonException]
pop esi
add esp, 0x18
ret
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40cad3
push str.cannot_open_service_manager
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.cx_Logging.pyd_LogWin32Error]
pop edi
pop esi
add esp, 0x18
ret
mov edx, dword [esi + 0xc]
push 0xf01ff
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40cb01
push str.cannot_open_service
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.cx_Logging.pyd_LogWin32Error]
pop edi
pop esi
add esp, 0x18
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40cb24
push str.cannot_delete_service
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.cx_Logging.pyd_LogWin32Error]
pop edi
pop esi
add esp, 0x18
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, dword [esp + 8]
push 0
push eax
call dword [sym.imp.python32.dll_PyObject_CallFunction]
add esp, 8
test eax, eax
jne 0x40cb55
push str.cannot_call_of_init_func
call dword [sym.imp.cx_Logging.pyd_LogPythonException]
pop edi
pop esi
add esp, 0x18
ret
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ed0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x51414516
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x52410d70
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x793e1830
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x1aae6971
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x4085a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x4085b7
pop dword [ebp - 0x3c]
mov eax, 0x6b916ad9
sub eax, 0x6b50e522
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x381cc
push 0
mov eax, 0xa25e14eb
sub eax, 0xa21d3413
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x431c
mov edx, eax
mov esi, 0x3be88e57
add esi, 0xc458ad6d
add esi, dword [ebp - 0x3c]
mov ebx, 0x551b8d30
sub ebx, 0x5db92fa3
mov edi, dword [esi]
xor dword [ebp - 0x2c], 0x67a15de
sub edi, ebx
mov dword [edx], edi
add dword [ebp - 0x2c], 0x8ca450ac
add edx, 0x1b8f17e9
add edx, 0xe470e81b
add esi, 4
loop 0x408610
add eax, 0xfc1c3d5e
sub eax, 0xfc1b3e1b
mov ebx, eax
add eax, 0x32cc5d44
sub eax, 0x32cc5d3f
mov ecx, 0xf8782ceb
add ecx, 0x7c7d315
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret