joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ffe0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4ad572
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
mov esi, dword [ecx + 0x5a8]
xor ebx, ebx
xor eax, eax
cmp esi, ebx
push edi
mov dword [esp + 0xc], ebx
jle 0x45001c
lea edx, [ecx + 0x5c]
cmp dword [edx], ebx
je 0x45008a
inc eax
add edx, 0x60
cmp eax, esi
jl 0x450010
lea ecx, [esp + 0x14]
call fcn.0044fc10
mov esi, dword [esp + 0x84]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x80], 0xa
lea ecx, [esi + 4]
call fcn.0041fbf0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x5c], ecx
lea ecx, [esp + 0x14]
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], eax
mov dword [esi], 0x4b2d38
mov dword [esp + 0xc], 1
mov byte [esp + 0x7c], bl
call fcn.0044fc30
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret 4
lea edx, [eax + eax*2]
mov ebx, dword [esp + 0x84]
shl edx, 5
lea edi, [ebx + 4]
lea esi, [edx + ecx]
lea edx, [eax + eax*2 + 3]
shl edx, 5
mov dword [esi + 0x5c], 1
mov dword [esp + 0x10], edi
mov dword [edx + ecx], eax
mov dword [ecx + 0x5a4], eax
lea eax, [esi + 0xc]
lea ecx, [edi + 4]
push eax
call fcn.00495cca
lea ecx, [esi + 0x10]
mov dword [esp + 0x7c], 1
push ecx
lea ecx, [edi + 8]
call fcn.00495cca
lea edx, [esi + 0x14]
lea ecx, [edi + 0xc]
push edx
mov byte [esp + 0x80], 2
call fcn.00495cca
lea eax, [esi + 0x18]
lea ecx, [edi + 0x10]
push eax
mov byte [esp + 0x80], 3
call fcn.00495cca
lea ecx, [esi + 0x1c]
mov byte [esp + 0x7c], 4
push ecx
lea ecx, [edi + 0x14]
call fcn.00495cca
mov edx, dword [esi + 0x20]
mov byte [esp + 0x7c], 5
mov dword [edi + 0x18], edx
mov eax, dword [esi + 0x24]
mov dword [edi + 0x1c], eax
mov ecx, dword [esi + 0x28]
mov dword [edi + 0x20], ecx
mov edx, dword [esi + 0x2c]
mov dword [edi + 0x24], edx
mov eax, dword [esi + 0x30]
mov dword [edi + 0x28], eax
mov ecx, dword [esi + 0x34]
mov dword [edi + 0x2c], ecx
mov edx, dword [esi + 0x38]
lea eax, [esi + 0x3c]
lea ecx, [edi + 0x34]
push eax
mov dword [edi + 0x30], edx
call fcn.00495cca
mov ecx, dword [esi + 0x40]
lea edx, [esi + 0x44]
mov dword [edi + 0x38], ecx
push edx
lea ecx, [edi + 0x3c]
mov byte [esp + 0x80], 6
call fcn.00495cca
lea eax, [esi + 0x48]
lea ecx, [edi + 0x40]
push eax
mov byte [esp + 0x80], 7
call fcn.00495cca
lea ecx, [esi + 0x4c]
mov byte [esp + 0x7c], 8
push ecx
lea ecx, [edi + 0x44]
call fcn.00495cca
mov byte [esp + 0x7c], 9
lea edx, [esi + 0x50]
lea ecx, [edi + 0x48]
push edx
call fcn.00495cca
mov eax, dword [esi + 0x54]
mov dword [edi], 0x4b2644
mov dword [edi + 0x4c], eax
mov ecx, dword [esi + 0x58]
mov dword [ebx + 0x54], ecx
mov edx, dword [esi + 0x5c]
mov dword [ebx + 0x58], edx
mov eax, dword [esi + 0x60]
mov dword [ebx + 0x5c], eax
mov dword [ebx], 0x4b2d38
mov ecx, dword [esp + 0x74]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 4
Function at 0x450880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ad660
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x5c]
push edi
push 0x44c
call fcn.00497d3f
mov eax, dword [0x4d14fc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], eax
mov bl, 1
push str.rcode0.195057174297317_1244991497109
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.004960de
push str.url_2Fhome_2Frpkeyinvisible_mode0email
lea ecx, [esp + 0x10]
call fcn.00496331
lea eax, [esi + 0x68]
lea ecx, [esp + 0xc]
push eax
call fcn.0049636d
push 0x4cd634
lea ecx, [esp + 0x10]
call fcn.00496331
lea ecx, [esi + 0x6c]
push ecx
lea ecx, [esp + 0x10]
call fcn.0049636d
push str.code
lea ecx, [esp + 0x10]
call fcn.00496331
push edi
lea ecx, [esp + 0x10]
call fcn.0049636d
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00495cca
push ecx
mov byte [esp + 0x34], 2
mov ecx, esp
mov dword [esp + 0x24], esp
push str._login_login.php
call fcn.00495fc3
push ecx
mov byte [esp + 0x38], 3
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.www.kaixin001.com
call fcn.00495fc3
lea eax, [esp + 0x20]
lea ecx, [esi + 0x60]
push eax
mov byte [esp + 0x3c], bl
call fcn.00416b20
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 4
call fcn.0049608e
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.00495f55
lea ecx, [esp + 0x14]
push 0x7d0
push ecx
lea ecx, [esp + 0x18]
call fcn.00493d3f
mov byte [esp + 0x2c], 5
push eax
lea ecx, [esp + 0x14]
call fcn.0049608e
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.00495f55
push 0x4cd5fc
lea ecx, [esp + 0x14]
call fcn.00493dd9
or edi, 0xffffffff
cmp eax, edi
je 0x450a08
mov byte [0x4d7628], bl
lea ecx, [esp + 0x10]
mov byte [esi + 0x70], bl
mov byte [esp + 0x2c], 0
call fcn.00495f55
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], edi
call fcn.00495f55
mov al, bl
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
lea ecx, [esp + 0x10]
mov byte [esi + 0x70], 0
mov byte [esp + 0x2c], 0
call fcn.00495f55
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], edi
call fcn.00495f55
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret
Function at 0x46f680
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4aecb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.00404f20
mov eax, dword [0x4b1904]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00404ca0
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004700e0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x46f727
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x46f71e
cmp al, 0xff
je 0x46f71e
dec al
mov byte [ecx], al
jmp 0x46f727
push ecx
call fcn.00495cbf
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x46f758
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x46f74f
cmp al, 0xff
je 0x46f74f
dec al
mov byte [ecx], al
jmp 0x46f758
push ecx
call fcn.00495cbf
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x475590
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x98
mov eax, 0x903
mov word [esp], 0x300
mov word [esp + 8], ax
mov word [esp + 0xa], ax
mov eax, 0x9d7
mov word [esp + 2], 0x361
mov word [esp + 0x20], ax
mov word [esp + 0x22], ax
mov eax, 0xa83
mov word [esp + 4], 0x483
mov word [esp + 0x28], ax
mov word [esp + 0x2a], ax
mov eax, 0xb3e
mov word [esp + 6], 0x486
mov word [esp + 0x38], ax
mov word [esp + 0x3a], ax
mov eax, 0xb40
mov word [esp + 0xc], 0x93e
mov word [esp + 0x3c], ax
mov word [esp + 0x3e], ax
mov eax, 0xb57
mov word [esp + 0xe], 0x940
mov word [esp + 0x44], ax
mov word [esp + 0x46], ax
mov eax, 0xb83
mov word [esp + 0x10], 0x949
mov word [esp + 0x48], ax
mov word [esp + 0x4a], ax
mov eax, 0xbd7
mov word [esp + 0x12], 0x94c
mov word [esp + 0x54], ax
mov word [esp + 0x56], ax
mov eax, 0xcbe
mov word [esp + 0x14], 0x982
mov word [esp + 0x64], ax
mov word [esp + 0x66], ax
mov eax, 0xd57
mov word [esp + 0x16], 0x983
mov word [esp + 0x80], ax
mov word [esp + 0x82], ax
mov eax, 0xf7f
mov word [esp + 0x18], 0x9be
mov word [esp + 0x1a], 0x9c0
mov word [esp + 0x1c], 0x9c7
mov word [esp + 0x1e], 0x9cc
mov word [esp + 0x24], 0xa3e
mov word [esp + 0x26], 0xa40
mov word [esp + 0x2c], 0xabe
mov word [esp + 0x2e], 0xac0
mov word [esp + 0x30], 0xac9
mov word [esp + 0x32], 0xacc
mov word [esp + 0x34], 0xb02
mov word [esp + 0x36], 0xb03
mov word [esp + 0x40], 0xb47
mov word [esp + 0x42], 0xb4c
mov word [esp + 0x4c], 0xbbe
mov word [esp + 0x4e], 0xbbf
mov word [esp + 0x50], 0xbc1
mov word [esp + 0x52], 0xbcc
mov word [esp + 0x58], 0xc01
mov word [esp + 0x5a], 0xc03
mov word [esp + 0x5c], 0xc41
mov word [esp + 0x5e], 0xc44
mov word [esp + 0x60], 0xc82
mov word [esp + 0x62], 0xc83
mov word [esp + 0x68], 0xcc0
mov word [esp + 0x6a], 0xcc4
mov word [esp + 0x6c], 0xcc7
mov word [esp + 0x6e], 0xccb
mov word [esp + 0x70], 0xcd5
mov word [esp + 0x72], 0xcd6
mov word [esp + 0x74], 0xd02
mov word [esp + 0x76], 0xd03
mov word [esp + 0x78], 0xd3e
mov word [esp + 0x7a], 0xd40
mov word [esp + 0x7c], 0xd46
mov word [esp + 0x7e], 0xd4c
mov word [esp + 0x84], ax
mov word [esp + 0x86], ax
mov word [esp + 0x88], 0x20d0
mov word [esp + 0x8a], 0x20e1
mov eax, 0xffff
cmp cx, 0x361
mov word [esp + 0x94], ax
mov word [esp + 0x96], ax
mov word [esp + 0x8c], 0x3099
mov word [esp + 0x8e], 0x309a
mov word [esp + 0x90], 0xfe20
mov word [esp + 0x92], 0xfe23
lea eax, [esp + 2]
jbe 0x4757ed
add eax, 4
cmp word [eax], cx
jb 0x4757e5
sub eax, 2
cmp cx, word [eax]
jb 0x475804
cmp cx, word [eax + 2]
ja 0x475804
mov al, 1
add esp, 0x98
ret
xor al, al
add esp, 0x98
ret
Function at 0x48bc30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4afe30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00404f20
mov edi, 0x4d5fb8
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x3c], ebx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00405090
test al, al
je 0x48bcad
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x4d5fb8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x40]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
mov dword [esp + 0x40], 1
call fcn.00405090
test al, al
je 0x48bd02
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov edi, dword [ecx + 0xb8]
lea esi, [ecx + 0xb4]
mov ecx, esi
mov edx, dword [edi + 4]
push edx
push edi
call fcn.0048dad0
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
lea edx, [esp + 0x14]
mov dword [ecx], eax
add eax, 8
push edx
push eax
call fcn.0048db00
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add esp, 8
inc edx
mov dword [esi + 8], edx
mov esi, dword [eax + 0xbc]
dec esi
cmp ecx, ebx
je 0x48bd79
mov al, byte [ecx - 1]
cmp al, bl
je 0x48bd6f
cmp al, 0xff
je 0x48bd6f
dec al
mov byte [ecx - 1], al
jmp 0x48bd79
dec ecx
push ecx
call fcn.00495cbf
add esp, 4
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x492e40
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.00459050
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x492f0b
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 0x492f0b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x492ebe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x492ec9
or bh, 8
and edi, 0x8000000
je 0x492ee4
mov eax, dword [0x4db6fc]
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 0x492f0b
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 0x4932e0
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 0x49330b
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 0x49332f
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 0x49334a
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 0x49663f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x496661
cmp dword [edi + 0x3c], 0
jne 0x496661
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004a04e7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0049668e
pop edi
pop esi
pop ebx
ret 8

Function at 0x497cf7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x497d2f
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.004963fc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004963d4
jmp 0x497d3b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x497d3f
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x4d7c50
mov ecx, edi
call fcn.004960de
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x497d92
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x497da5
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004963fc
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004963d4
jmp 0x497da5
mov ecx, esi
call fcn.00499fd2
test eax, eax
je 0x497da5
push edi
mov ecx, eax
call fcn.00497cf7
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x49941d
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 0x49945f
call fcn.004a04e7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49945f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x499456
xor eax, eax
jmp 0x499467
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049946d
pop edi
pop esi
pop ebx
ret 4
Function at 0x49ed68
Capabilities:
Create http request

Disassembly:
mov eax, 0x4adca8
call fcn.0045aef8
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x49eda0
call fcn.004a04e7
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x49edc5
push eax
push dword [esi + 4]
call fcn.0049fb6e
jmp 0x49edd1
push esi
push eax
mov ecx, 0x4d9770
call fcn.0049ede2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x49ef5e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4adce3
call fcn.0045aef8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0049b291
mov eax, dword [0x4d14fc]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x4d9770
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.0049ede2
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004960de
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.00451294
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0049608e
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00495f55
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x401080
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push 0xff
push str.Main
call fcn.004019a0
add esp, 8
call fcn.00401f90
test eax, eax
jne 0x4010a2
add esp, 0x10
ret
push esi
push str.Continue
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esp + 0x18], 1
jle 0x4010fb
mov esi, dword [esp + 0x1c]
push 0x4260b0
mov eax, dword [esi + 4]
push eax
call fcn.004126ae
add esp, 8
test eax, eax
jne 0x4010da
call fcn.004011e0
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, dword [esi + 4]
push 0x4260ac
push eax
call fcn.004126ae
add esp, 8
test eax, eax
jne 0x401120
call fcn.00401310
xor eax, eax
pop esi
add esp, 0x10
ret
xor eax, eax
mov dword [esp + 4], str.PelService
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
mov dword [esp + 8], 0x4017a0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
xor eax, eax
pop esi
add esp, 0x10
ret

Function at 0x4011e0
Capabilities:
Create service
Persist via windows service
Print debug messages

Disassembly:
sub esp, 0x208
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xff
push str.InstallStart
stosb byte es:[edi], al
call fcn.004019a0
add esp, 8
lea eax, [esp + 0x10c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x401262
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_fail_with__d
jmp 0x4012c9
push 0xff
push str.InstallStart1
call fcn.004019a0
add esp, 8
lea eax, [esp + 0x10c]
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push 2
push 0x110
push 0xf01ff
push str.Session_Launcher_Service
push str.PelService
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push 0xff
push str.InstallStart2
mov esi, eax
call fcn.004019a0
add esp, 8
test esi, esi
jne 0x4012ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_fail_with__d
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
add esp, 0x208
ret
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x208
ret
Function at 0x401310
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
jne 0x40132c
pop esi
add esp, 0x1c
ret
push 0xf01ff
push str.PelService
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401348
pop esi
add esp, 0x1c
ret
lea eax, [esp + 4]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x401366
pop esi
add esp, 0x1c
ret
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x1c
ret