joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b0e5
Capabilities:
Check if file exists
Set current directory

Disassembly:
mov eax, 0x4cbbd8
call fcn.00496c6c
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43b123
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0041cef5
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x10]
call fcn.004b1dd6
lea eax, [ebp - 0x14]
push eax
call fcn.0041f0f9
pop ecx
mov eax, dword [eax]
and dword [ebp - 4], 0
push 1
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.0041c407
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004b1dd6
push dword [ebp + 8]
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.004b1f6d
push dword [ebp + 0x10]
mov eax, esi
neg eax
push dword [ebp - 0x24]
lea ecx, [esi + 0x10]
sbb eax, eax
and eax, ecx
mov ecx, esi
push eax
call fcn.0043aec2
test eax, eax
je 0x43b17a
mov esi, eax
jmp 0x43b1af
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push ebx
push dword [ebp - 0x24]
call dword [eax + 0x24]
test eax, eax
je 0x43b194
or esi, 0xffffffff
jmp 0x43b1af
mov edi, dword [edi]
mov eax, dword [esi]
push edi
push ebx
mov ecx, esi
call dword [eax + 0x28]
or esi, 0xffffffff
cmp eax, esi
je 0x43b1af
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0041c474
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x43d1b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cbee8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x44]
push esi
mov ebx, ecx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43d232
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x43d257
push ebp
push eax
lea ecx, [esp + 0x18]
call fcn.00442550
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x3c], 0
call fcn.0043d360
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x34], 0xffffffff
call fcn.004425a0
mov al, bl
jmp 0x43d259
mov edi, str.Unable_to_load_resource_
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor al, al
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
Function at 0x446440
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov dword [esp + 0x1c], ebp
call fcn.0043c590
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
jns 0x446472
mov dword [esp + 0x2c], 0
jmp 0x44648d
mov ecx, ebp
call fcn.0043c590
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
mov dword [esp + 0x2c], eax
mov ecx, ebp
call fcn.0043c590
xor edi, edi
mov ebx, eax
mov di, word [esi]
xor ecx, ecx
mov cx, word [esi + 4]
xor edx, edx
xor eax, eax
mov dx, di
mov ax, word [esi + 2]
sub ebx, eax
lea esi, [ecx + edx]
mov ecx, ebp
mov dword [esp + 0x20], ebx
call fcn.0043c5a0
cmp eax, esi
jae 0x4464cd
mov ecx, ebp
call fcn.0043c5a0
mov dword [esp + 0x10], eax
jmp 0x4464d1
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
call fcn.0043c3c0
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp ebp, ebx
jge 0x44653d
mov eax, dword [esp + 0x10]
mov esi, edi
cmp edi, eax
jge 0x446538
mov eax, dword [esp + 0x2c]
mov ebx, ebp
sub ebx, eax
mov ecx, dword [esp + 0x28]
mov eax, esi
sub eax, edi
push ebx
push eax
call fcn.0043f280
mov edx, dword [esp + 0x18]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xff
cmp ecx, edx
je 0x44652b
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push esi
call fcn.0043f6f0
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x4464f8
mov ebx, dword [esp + 0x20]
inc ebp
cmp ebp, ebx
jl 0x4464e6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x44cb50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x44cb80
push esi
call fcn.0044d050
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x44cb79
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x44cc03
mov eax, dword [esi + 0x1a0]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x44cbef
mov eax, dword [esi + 8]
test eax, eax
je 0x44cba4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1a0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44cbeb
cmp eax, 2
je 0x44cbef
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44cb97
cmp eax, 3
je 0x44cbca
cmp eax, 1
jne 0x44cb97
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44cb97
mov edx, dword [esi + 0x120]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44cb97
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0044cc30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44cc23
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0044cc30
add esp, 4
pop esi
ret
Function at 0x474ac0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x474ada
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x474ada
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4766b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
push 1
call fcn.004780a0
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x4766e3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, 0xf4240
mov dword [edx + 0x258], eax
mov ecx, dword [ebp - 4]
push 0x40
mov dword [ecx + 0x25c], eax
push fcn.00499fe4
mov edx, dword [ebp - 4]
push edx
call fcn.00474a60
push esi
push eax
call fcn.0049a060
add esp, 0x14
test eax, eax
je 0x47671f
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004782c0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00474b20
mov edi, dword [ebp + 8]
add esp, 0x20
cmp edi, esi
mov ebx, 0x20000
je 0x476789
push 0
call fcn.00475250
mov dl, byte [esi + edi]
mov cl, byte [eax + esi]
add esp, 4
cmp dl, cl
je 0x476777
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x70]
or ecx, ebx
mov dword [eax + 0x70], ecx
push 0
call fcn.00475250
mov al, byte [eax + esi]
add esp, 4
inc esi
test al, al
jne 0x476758
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x70]
test ebx, eax
je 0x476801
test edi, edi
je 0x4767fa
mov bl, byte [edi]
push 0
call fcn.00475250
mov cl, byte [eax]
add esp, 4
cmp bl, cl
jne 0x4767cd
cmp bl, 0x31
jne 0x4767c2
push 0
call fcn.00475250
mov dl, byte [edi + 2]
mov cl, byte [eax + 2]
add esp, 4
cmp dl, cl
jne 0x4767cd
cmp byte [edi], 0x30
jne 0x476801
cmp byte [edi + 2], 0x39
jge 0x476801
test edi, edi
je 0x4767fa
push 0
call fcn.00475250
push eax
push edi
push str.Application_built_with_libpng__.20s_but_running_with__.20s
lea eax, [ebp - 0x58]
push 0x50
push eax
call fcn.0049a472
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00474880
add esp, 0x20
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
mov eax, dword [ebp - 8]
test eax, eax
jne 0x47684f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xb4]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00478290
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xb0]
test eax, eax
jne 0x476848
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
test eax, eax
je 0x47688c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb0]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00478240
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
push ecx
mov dword [eax + 0xb0], 0
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00478140
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00478020
mov edx, dword [ebp - 4]
push edx
call fcn.00476db0
add esp, 0x14
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x498059
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x498079
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0049aa5e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x49809c
test byte [esp + 8], 2
je 0x49809c
call fcn.0049aad1
mov dword [eax], 0xd
call fcn.0049aada
mov dword [eax], 5
jmp 0x498075
xor eax, eax
ret
Function at 0x4ae720
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00496e70
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4ae7eb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4ae7eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4ae79e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4ae7a9
or bh, 8
and edi, 0x8000000
je 0x4ae7c4
mov eax, dword [0x50c83c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4ae7eb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aebc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4aebeb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4aec0f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4aec2a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4b3290
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b32c8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b2294
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b226b
jmp 0x4b32d4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4b4bda
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b4c1c
call fcn.004c4a37
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4b4c1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b4c13
xor eax, eax
jmp 0x4b4c24
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b4c2a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bc165
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4cda6c
call fcn.00496c6c
push ecx
push ecx
push esi
push 0x10
call fcn.004b23aa
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4bc1b2
mov ecx, esi
call fcn.004b7391
mov eax, dword [0x5042f8]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.004b1f6d
jmp 0x4bc1b4
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x4eaa10
push eax
mov dword [ebp - 0x10], esi
call fcn.004982cc
pop esi
Function at 0x40106f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and byte [ebp - 6], 0
cmp dword [ebp + 8], 0
mov byte [ebp - 0x10], 0x30
mov byte [ebp - 0xf], 0x31
mov byte [ebp - 0xe], 0x32
mov byte [ebp - 0xd], 0x33
mov byte [ebp - 0xc], 0x34
mov byte [ebp - 0xb], 0x35
mov byte [ebp - 0xa], 0x36
mov byte [ebp - 9], 0x37
mov byte [ebp - 8], 0x38
mov byte [ebp - 7], 0x39
je 0x4010e4
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
xor edx, edx
push dword [ebp + 0xc]
push 0xa
pop ecx
div ecx
push eax
call fcn.0040106f
mov eax, dword [ebp + 8]
push 0xa
xor edx, edx
pop ecx
div ecx
push dword [ebp + 0x10]
and byte [ebp - 1], 0
mov al, byte [ebp + edx - 0x10]
mov byte [ebp - 2], al
lea eax, [ebp - 2]
push eax
push dword [ebp + 0xc]
call fcn.00401047
add esp, 0x18
leave
ret

Function at 0x4024f6
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402532
cmp byte [ebp - 0x190], 2
jne 0x40252c
mov al, byte [ebp - 0x18f]
cmp al, 2
jne 0x40252c
xor eax, eax
leave
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xc0000001
leave
ret

Function at 0x402794
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea edi, [ecx + 0x34]
xor ebx, ebx
cmp byte [edi + 0x18], bl
je 0x4027b1
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0045201b
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
movsx ecx, word [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
dec ecx
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x10c], 1
je 0x402801
dec ecx
je 0x4027f2
dec ecx
jne 0x402818
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push ebx
jmp 0x4027fe
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10c]
push ebx
push ecx
push ebx
jmp 0x40280e
lea ecx, [ebp - 8]
push ecx
push ebx
lea ecx, [ebp - 0x10c]
push ebx
push ecx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
cmp byte [edi + 0x18], bl
je 0x402824
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40294e
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
lea eax, [ebp + 0x10]
push edi
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.00452183
lea eax, [ebp - 0x104]
xor esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x1a8], esi
je 0x4029b5
add eax, 0x84
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
cmp edi, esi
je 0x4029c2
lea eax, [ebp - 4]
push esi
push eax
push esi
push 1
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x4029c2
lea eax, [ebp - 0x104]
push eax
call fcn.0045210b
pop ecx
pop edi
pop esi
leave
ret
Function at 0x403184
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push esi
lea eax, [ebp - 0x204]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x204]
push 0x5c
push eax
call fcn.00452580
and byte [eax], 0
lea eax, [ebp - 0x204]
push 0x47431c
push eax
call fcn.004524a0
mov esi, 0x100
lea eax, [ebp - 0x100]
push esi
push 0
push eax
call fcn.00451f50
add esp, 0x1c
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x100]
push esi
push eax
push 0
push str.log4cpp.rootCategory
push str.log4cpp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x100]
or esi, 0xffffffff
push eax
push str.DEBUG
call fcn.00452400
pop ecx
test eax, eax
pop ecx
jne 0x40321b
push 3
pop esi
jmp 0x40326a
lea eax, [ebp - 0x100]
push eax
push str.INFO
call fcn.00452400
pop ecx
test eax, eax
pop ecx
jne 0x403236
push 2
jmp 0x403218
lea eax, [ebp - 0x100]
push eax
push str.WARN
call fcn.00452400
pop ecx
test eax, eax
pop ecx
jne 0x403251
push 1
jmp 0x403218
lea eax, [ebp - 0x100]
push eax
push str.ERROR
call fcn.00452400
pop ecx
test eax, eax
pop ecx
jne 0x40326a
xor esi, esi
mov eax, esi
pop esi
leave
ret
Function at 0x403453
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, 0x46262c
call fcn.00451b80
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x18], ecx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jl 0x403575
mov ecx, dword [ebp - 0x18]
call fcn.00403725
push ebx
push ebx
push 1
push 0x64
push dword [ebp - 0x18]
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
mov dword [ebp - 0x14], ebx
mov esi, 0x20006
lea ecx, [ebp - 0x14]
push esi
push str.AppID
push bind
mov dword [ebp - 4], ebx
call fcn.00403415
mov edi, eax
cmp edi, ebx
je 0x4034c9
cmp dword [ebp - 0x14], ebx
je 0x403573
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403573
mov dword [ebp - 0x10], ebx
push esi
push str.AE917C8A_E912_41C6_9EFE_8FEBABBC6B83
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00403415
mov edi, eax
cmp edi, ebx
jne 0x403556
push str.LocalService
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp + 0xc], ebx
je 0x403541
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x4743b8
push edi
call esi
inc eax
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push str.LocalService
push dword [ebp - 0x10]
call edi
mov ebx, str._Service
push ebx
call esi
inc eax
push eax
push ebx
push 1
push 0
push str.ServiceParameters
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 0x18]
call fcn.00403678
xor ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ATL.DLL_AtlModuleRegisterServer]
mov edi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x403569
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x403573
push dword [ebp - 0x14]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x403678
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040290b
test eax, eax
jne 0x40371d
xor esi, esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
jne 0x4036b7
add edi, 0x84
push esi
push edi
push str.Couldnt_open_service_manager
jmp 0x403706
lea eax, [ebp - 0x104]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push esi
push str.RPCSS
push esi
lea eax, [ebp - 0x104]
push esi
push eax
push 1
push 2
add edi, 0x84
push 0x10
push 0xf01ff
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, esi
jne 0x403711
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push edi
push str.Couldnt_create_service
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x403720
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push ebx
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret