joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460f65
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46107d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46107d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00477a30
mov esi, eax
test esi, esi
je 0x46107d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46107d
mov ecx, esi
call fcn.00460ed0
cmp edi, eax
jge 0x46107d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x461003
mov dword [esp + 0x34], 1
jmp 0x46105e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46107d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00460420
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4783d4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47840c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00476488
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00476460
jmp 0x478418
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x479ac6
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 0x479b08
call fcn.0047f5be
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x479b08
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x479aff
xor eax, eax
jmp 0x479b10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00479b16
pop edi
pop esi
pop ebx
ret 4
Function at 0x47faee
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47fb1c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47fb3a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047fa54
jmp 0x47fb3a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47fb3a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047fa54
test edi, edi
mov eax, edi
jne 0x47fb24
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402274
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x4022be
push str.oops__fatal_error__n
push 0x75
push 0x4088b4
call fcn.004037f0
add esp, 4
push eax
push 0x4088e0
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0x10
xor ecx, ecx
test ecx, ecx
jne 0x40228d
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movsx eax, byte [edx - 1]
cmp eax, 0x5c
je 0x4022e0
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx], 0x5c
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov byte [edx + 1], 0
mov esp, ebp
pop ebp
ret
Function at 0x4024c2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
jmp 0x4024e1
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x402540
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x402524
mov edx, dword [ebp - 8]
mov byte [edx + 0x40a068], 0x5c
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x40a068], 0x5c
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x40253e
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dl, byte [eax]
mov byte [ecx + 0x40a068], dl
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x4024d8
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x40a067]
cmp edx, 0x5c
jne 0x402573
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x40a066]
cmp ecx, 0x5c
je 0x402571
mov edx, dword [ebp - 8]
mov byte [edx + 0x40a068], 0x5c
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x402599
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x40a068], 0x5c
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov byte [eax + 0x40a068], 0x5c
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov byte [edx + 0x40a068], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 2
jl 0x4025d7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
push edx
push 0x40a068
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
call fcn.004013b0
push eax
push str.RUNDLL32_PRINTUI.DLL_PrintUIEntry__ia__m___s___K__h__Windows_NT_x86___v_3__f___s_s_
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x40263f
mov edx, dword [ebp + 0xc]
cmp dword [edx], 1
jne 0x40260b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
push ecx
push 0x40a068
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0xc]
call fcn.004013b0
push eax
push str.RUNDLL32_PRINTUI.DLL_PrintUIEntry__ia__m___s___h__Intel___v__Windows_2000___f___s_s_
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x40263f
push str.oops__fatal_error__exiting
push 0xe1
push 0x408b1c
call fcn.004037f0
add esp, 4
push eax
push 0x408b48
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0x10
xor ecx, ecx
test ecx, ecx
jne 0x40260b
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov esp, ebp
pop ebp
ret
Function at 0x7c5034
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax + eax], al
add al, 0
add byte [eax], al
cld
scasd eax, dword es:[edi]
invalid
clc
jae 0x7c503a
push es
or ebx, edi
pushal
stc
jb 0x7c5043
fisttp word [ebx - 0x176d5b66]
pop es
add byte [eax], al
add byte [edx + 0x14], bl
jno 0x7c4ff7
call 0x7c504f
pop edx
adc al, 0x71
stosd dword es:[edi], eax
xor al, 0xf6
pop esi
jb 0x7c5058
js 0x7c50a8
pop ebx
movsd dword es:[edi], dword [esi]
sbb al, 0x65
add esi, 0xffffffb8
jmp 0x7c5062
invalid
cmp dword [esi], 0
stc
jmp 0x7c506d
je 0x7c50ee
jmp 0x7c507b
mov edi, esi
jb 0x7c5081
or eax, 0x4c6832c
add esi, 4
jmp 0x7c5089
mov eax, dword [esi]
jmp 0x7c5093
add eax, esi
stc
jmp 0x7c509d
mov edx, dword [esi + 4]
jmp 0x7c50a6
sub dword [eax], 0xf6c7c6f1
int1
mov bh, 0xf6
jmp 0x7c50b3
add eax, 4
jmp 0x7c50ba
sub edx, 1
clc
jae 0x7c50c1
lds ecx, [edi]
test ecx, ebx
invalid
jne 0x7c50a0
jae 0x7c50cb
ja 0x7c505b
add esi, 8
jmp 0x7c50d2
sub dword [edi], 1
clc
jae 0x7c50d9
inc esp
jne 0x7c5084
jae 0x7c50e3
xchg ebx, eax
push 0xffffffffffffff8b
fsubp st(3)
add dl, byte [eax]
sub al, 0xe
add byte [eax], al
add bl, ch
add cl, byte [edx - 0x44]
mov ebx, esi
jmp 0x7c50e9
call 0x7c50fc
jmp 0x7c50f2
popal
stc
jmp 0x7c50f7
jmp 0x7c402c

Function at 0x7c504f
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax + eax], al
add al, 0
add byte [eax], al
cld
scasd eax, dword es:[edi]
invalid
clc
jae 0x7c503a
push es
or ebx, edi
pushal
stc
jb 0x7c5043
fisttp word [ebx - 0x176d5b66]
pop es
add byte [eax], al
add byte [edx + 0x14], bl
jno 0x7c4ff7
call 0x7c504f
pop edx
adc al, 0x71
stosd dword es:[edi], eax
xor al, 0xf6
pop esi
jb 0x7c5058
js 0x7c50a8
pop ebx
movsd dword es:[edi], dword [esi]
sbb al, 0x65
add esi, 0xffffffb8
jmp 0x7c5062
invalid
cmp dword [esi], 0
stc
jmp 0x7c506d
je 0x7c50ee
jmp 0x7c507b
mov edi, esi
jb 0x7c5081
or eax, 0x4c6832c
add esi, 4
jmp 0x7c5089
mov eax, dword [esi]
jmp 0x7c5093
add eax, esi
stc
jmp 0x7c509d
mov edx, dword [esi + 4]
jmp 0x7c50a6
sub dword [eax], 0xf6c7c6f1
int1
mov bh, 0xf6
jmp 0x7c50b3
add eax, 4
jmp 0x7c50ba
sub edx, 1
clc
jae 0x7c50c1
lds ecx, [edi]
test ecx, ebx
invalid
jne 0x7c50a0
jae 0x7c50cb
ja 0x7c505b
add esi, 8
jmp 0x7c50d2
sub dword [edi], 1
clc
jae 0x7c50d9
inc esp
jne 0x7c5084
jae 0x7c50e3
xchg ebx, eax
push 0xffffffffffffff8b
fsubp st(3)
add dl, byte [eax]
sub al, 0xe
add byte [eax], al
add bl, ch
add cl, byte [edx - 0x44]
mov ebx, esi
jmp 0x7c50e9
call 0x7c50fc
jmp 0x7c50f2
popal
stc
jmp 0x7c50f7
jmp 0x7c402c
Function at 0x4010d8
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x40dddb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.00401000
mov eax, dword [0x413ca4]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x18], ebp
mov dword [esi], 0x40e228
mov dword [esi + 0xc], 0x10
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], 5
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebp
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x30], ebp
je 0x401129
push 1
call fcn.004055f1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebp
push 1
push 1
push ebp
mov dword [0x413ca4], esi
call edi
push 0x402280
mov dword [esi + 0x34], eax
call fcn.00401230
push eax
mov ecx, ebx
call fcn.00401040
push ebp
push ebp
push 1
push ebp
mov dword [esi], fcn.00401260
call edi
push ebp
push ebp
push 1
push ebp
mov dword [esi + 0x3c], eax
call edi
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x38], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, 0x414c28
jmp 0x4010c0
Function at 0x402090
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 0x18
Function at 0x403360
Capabilities:
Get file version info

Disassembly:
sub esp, 0x160
push ebx
push ebp
mov ebp, dword [esp + 0x170]
xor ebx, ebx
cmp ebp, ebx
jne 0x403380
pop ebp
xor eax, eax
pop ebx
add esp, 0x160
ret
mov al, byte [0x414c20]
push esi
push edi
mov byte [esp + 0x6c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x6d]
mov edx, dword [esp + 0x174]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x6c]
push 0x104
push ecx
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x6c]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
push edi
call fcn.00406d1a
mov edx, dword [esp + 0x14]
add esp, 4
mov esi, eax
lea eax, [esp + 0x6c]
push esi
push edi
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40345c
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x410a64
push esi
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueA
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push 0x30
push eax
push str.60aa7f81cba0a2ecc1c30d
call fcn.00403fb0
mov eax, dword [esp + 0x20]
xor ecx, ecx
add esp, 0xc
mov edx, dword [eax + 0xc]
mov cx, word [eax + 0xc]
shr edx, 0x10
push ecx
push edx
mov edx, dword [eax + 8]
xor ecx, ecx
mov cx, word [eax + 8]
lea eax, [esp + 0x24]
shr edx, 0x10
push ecx
push edx
push eax
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
cmp esi, ebx
je 0x403469
push esi
call fcn.00406c31
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x160
ret

Function at 0x403690
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4036ac
xor eax, eax
ret
push esi
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
inc eax
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
jne 0x4036e2
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret
Function at 0x403860
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40387c
xor eax, eax
ret
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4038b7
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret

Function at 0x4039e0
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x403ae0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1a4
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], 0
push 0x30
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x58]
push eax
push str.62a1a0b2b5c7ddbd0106243949
call fcn.00403fb0
add esp, 0xc
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x54]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push 0x30
push eax
push str.67c7c2e8eb101128005b5f363fa46cb5dad9
call fcn.00403fb0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0xa4]
push eax
mov eax, dword [esp + 0x1b0]
lea edx, [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
pop edi
add esp, 0x1a4
ret

Function at 0x403b80
Capabilities:
Get file system object information

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x160
lea eax, [esp]
push 0x800
push 0x160
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
jne 0x403baf
xor al, al
add esp, 0x160
ret
mov eax, dword [esp + 8]
shr eax, 0x1e
and al, 1
add esp, 0x160
ret
Function at 0x4041f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x200
push ebx
push esi
push edi
xor dl, dl
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], dl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x210]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10c]
push eax
push ecx
call fcn.00404110
mov eax, dword [esp + 0x21c]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00404110
mov ebx, dword [esp + 0x22c]
lea edi, [ebx + ebx]
push edi
call fcn.004055ad
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 0x14
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x10c]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x220]
lea ecx, [esp + 0xc]
push eax
push ebx
push esi
push 0x414c24
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0x218]
push eax
push esi
call fcn.00404180
push esi
call fcn.004055a2
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x200
ret

Function at 0x404900
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
push edi
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x4049b0
mov eax, dword [edi + 0xc]
push esi
mov esi, 1
cmp dword [eax], 0
je 0x404934
add eax, 4
mov ecx, dword [eax]
inc esi
add eax, 4
test ecx, ecx
jne 0x40492a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
dec esi
xor edx, edx
div esi
mov eax, dword [edi + 0xc]
pop esi
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx]
cmp dl, 0xc0
je 0x4049b0
cmp dl, 0x7f
je 0x4049b0
mov ecx, 7
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
stosb byte es:[edi], al
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea edx, [esp + 8]
push 0x410d10
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x30]
dec ecx
cmp eax, ecx
jge 0x4049b0
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
pop edi
add esp, 0x20
ret
xor eax, eax
pop edi
add esp, 0x20
ret
Function at 0x405490
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x1c
cmp eax, 1
push ebx
push ebp
push esi
push edi
je 0x4054b6
cmp eax, 5
je 0x4054b6
cmp eax, 0xffff
jne 0x40551f
mov dword [esp + 0x34], 4
jmp 0x4054be
mov dword [esp + 0x34], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [esp + 0x30]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x405515
mov ebx, dword [esp + 0x38]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
cmp edx, eax
je 0x40551f
push 0x1f4
call ebp
call esi
sub eax, edi
cmp eax, ebx
jae 0x405515
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4054e6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret

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

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
mov edx, dword [esp + 0x114]
push 0
mov eax, dword [esp + 0x114]
push 0
push 0
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, dword [esp + 0x120]
push 1
push 2
push 0x10
push 0xf01ff
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
add esp, 0x104
ret
Function at 0x4e9740
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x95000]
push edi
jmp 0x4e975a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e9761
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9750
mov eax, 1
add ebx, ebx
jne 0x4e9773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e9784
jne 0x4e97a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e97a3
dec eax
add ebx, ebx
jne 0x4e9790
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e9768
add ebx, ebx
jne 0x4e979f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e97f5
xor ecx, ecx
sub eax, 3
jb 0x4e97bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e982a
sar eax, 1
mov ebp, eax
jmp 0x4e97c6
add ebx, ebx
jne 0x4e97c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9794
inc ecx
add ebx, ebx
jne 0x4e97d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9794
add ebx, ebx
jne 0x4e97e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e97d6
jne 0x4e97f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e97d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e9814
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e9806
jmp 0x4e9756
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e9814
add edi, ecx
jmp 0x4e9756
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e9832
cmp byte [edi], 0x11
jne 0x4e9832
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4e9837
lea edi, [esi + 0xe2000]
mov eax, dword [edi]
or eax, eax
je 0x4e98af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfc75c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfc8d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e9864
mov ecx, edi
jns 0x4e9893
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xfc8dc]
or eax, eax
je 0x4e98a9
mov dword [ebx], eax
add ebx, 4
jmp 0x4e9881
call dword [esi + 0xfc8ec]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4e98e0
cmp al, 0xef
ja 0x4e98d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4e98b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4e98c2
mov ebp, dword [esi + 0xfc8e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4e9914
sub esp, 0xffffff80
jmp 0x425f74