joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415ae0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d441
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x24c
lea eax, [esp + 0x24]
push 0
push eax
mov dword [esp + 0x28], 0
call fcn.0042ace0
lea ecx, [esp + 0x20]
push esi
push ecx
mov ebx, str..
call fcn.00403740
add esp, 0x14
mov dword [esp + 0x280], 0
mov eax, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0040c460
cmp edi, 0xffffffff
je 0x415cae
mov ecx, 0x448b50
lea eax, [esp + 0x48]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x415bb6
test dx, dx
je 0x415bb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x415bb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x415b90
xor eax, eax
jmp 0x415bbb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x415c93
mov ecx, 0x448b54
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x415bf6
test dx, dx
je 0x415bf2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x415bf6
add eax, 4
add ecx, 4
test dx, dx
jne 0x415bd0
xor eax, eax
jmp 0x415bfb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x415c93
lea eax, [esp + 0x18]
push esi
push eax
mov ebx, 0x448b5c
call fcn.00403740
mov dword [esp + 0x288], 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ebx, [esp + 0x58]
call fcn.00403740
add esp, 0x10
mov byte [esp + 0x280], 3
lea ecx, [esp + 0x18]
call fcn.0040c460
test byte [esp + 0x1c], 0x10
je 0x415c64
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00415ae0
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [esp + 0x10]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040c460
lea ecx, [esp + 0x1c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x415b87
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x415cbd
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0041d851
mov esp, ebp
pop ebp
ret
Function at 0x415ef0
Capabilities:
Capture screenshot

Disassembly:
push ecx
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x84]
xor edx, edx
div ecx
mov ecx, eax
mov dword [esp], eax
test edx, edx
je 0x415f10
inc ecx
mov dword [esp], ecx
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov esi, dword [edi + 0x88]
xor edx, edx
div esi
mov ebp, eax
test edx, edx
je 0x415f2c
inc ebp
xor ebx, ebx
test ecx, ecx
jle 0x415f7d
xor esi, esi
test ebp, ebp
jle 0x415f78
jmp 0x415f40
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0x84]
push 0xcc0020
push 0
push 0
push edx
push eax
imul eax, esi
push ecx
imul ecx, ebx
push eax
mov eax, dword [esp + 0x30]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
inc esi
cmp esi, ebp
jl 0x415f40
mov ecx, dword [esp + 0xc]
inc ebx
cmp ebx, ecx
jl 0x415f32
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18

Function at 0x418820
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43cb98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x40]
xor ecx, ecx
mov word [esp + 0x14], cx
mov ecx, eax
mov ebx, edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x418875
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x14]
call fcn.0041f760
mov dword [esp + 0x38], 0
push 1
mov eax, 0x448b5c
mov ecx, esi
call fcn.004195d0
mov ecx, eax
mov eax, ebx
lea esi, [eax + 2]
jmp 0x4188b0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4188b0
sub eax, esi
sar eax, 1
push eax
mov eax, ebx
call fcn.004195d0
cmp dword [esp + 0x28], 8
mov ecx, dword [esp + 0x14]
jae 0x4188d6
lea ecx, [esp + 0x14]
test edi, edi
je 0x4188f5
mov eax, edi
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4188e0
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x4188f7
xor eax, eax
push 1
push eax
xor eax, eax
call fcn.00406b30
add esp, 8
test eax, eax
sete bl
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x418925
mov edx, dword [esp + 0x14]
push edx
call fcn.0041206d
add esp, 4
xor eax, eax
mov word [esp + 0x14], ax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041d851
add esp, 0x2c
ret
Function at 0x41a550
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43e5a0
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x230], eax
mov edi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x230], 1
push 0x206
push eax
lea edx, [esp + 0x26]
xor ecx, ecx
push edx
mov word [esp + 0x28], cx
call fcn.0042ace0
add esp, 0xc
push 0x104
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
lea ecx, [esp + 0x20]
call fcn.00414080
lea ecx, [esp + 0xc]
push edi
push ecx
mov ebx, 0x448b5c
mov dword [esp + 0x18], 1
call fcn.00403740
mov byte [esp + 0x238], 2
lea edx, [esp + 0x240]
push edx
lea ecx, [esp + 0x20]
push ecx
mov ebx, eax
call fcn.0040b4f0
add esp, 0x10
mov byte [esp + 0x230], 3
call fcn.00407140
mov byte [esp + 0x230], 2
lea ecx, [esp + 0x14]
call fcn.0040c460
mov byte [esp + 0x230], 1
lea ecx, [esp + 0xc]
call fcn.0040c460
mov byte [esp + 0x230], 0
lea ecx, [esp + 0x238]
call fcn.0040c460
mov eax, edi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0041d851
add esp, 0x228
ret

Function at 0x41aff0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43c9f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], 1
jle 0x41b036
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00404a90
mov eax, dword [esp + 0x20]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41b079
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0040c460
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x41c090
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43d97c
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x14], eax
xor ecx, ecx
push eax
mov ebx, 0x400
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
mov word [esp + 0x24], cx
call fcn.00408390
mov dword [esp + 0x44], 1
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x41c10c
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x30]
push eax
dec edx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [esp + 0x34], esi
mov esi, dword [esp + 0x20]
jae 0x41c127
lea esi, [esp + 0x20]
lea eax, [esp + 0x10]
push eax
call fcn.00418010
mov byte [esp + 0x44], 2
push eax
push edi
mov ebx, ebp
call fcn.004099f0
add esp, 8
mov eax, 1
mov dword [esp + 0x14], eax
mov byte [esp + 0x44], al
lea ecx, [esp + 0x10]
push ecx
call fcn.004065a0
xor ebx, ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x34], 8
jb 0x41c173
mov edx, dword [esp + 0x20]
push edx
call fcn.0041206d
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0041d851
add esp, 0x38
ret
Function at 0x41c400
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43e419
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x58]
mov edi, ecx
push eax
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
call fcn.00414080
mov dword [esp + 0x50], esi
mov dword [esp + 0x3c], esi
xor eax, eax
push esi
mov ebx, 0x400
lea esi, [esp + 0x2c]
mov dword [esp + 0x28], 1
mov dword [esp + 0x44], 7
mov word [esp + 0x30], ax
call fcn.00408390
mov dword [esp + 0x50], 1
mov ecx, dword [esp + 0x3c]
xor ebx, ebx
lea edx, [ecx + ecx - 2]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x50], 2
cmp edi, ebx
je 0x41c4d8
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41c4b6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push 1
push ebx
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41c5b7
mov ecx, dword [esp + 0x14]
jmp 0x41c4dd
mov ecx, SysReAllocString
mov eax, dword [esp + 0x2c]
mov esi, 8
cmp dword [esp + 0x40], esi
jae 0x41c4f0
lea eax, [esp + 0x2c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push 0x44a338
push ecx
call ebp
cmp eax, 0xea
jne 0x41c572
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
shr ebx, 1
inc ebx
cmp ebx, ecx
ja 0x41c533
or eax, 0xffffffff
lea esi, [esp + 0x28]
call fcn.00422f60
mov esi, 8
jmp 0x41c540
mov eax, ebx
sub eax, ecx
lea ebx, [esp + 0x28]
call fcn.00414970
mov ecx, dword [esp + 0x14]
test edi, edi
jne 0x41c54d
mov ecx, SysReAllocString
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x41c55b
lea eax, [esp + 0x2c]
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x44a338
push ecx
call ebp
xor ebx, ebx
cmp eax, ebx
jne 0x41c5a9
cmp dword [esp + 0x1c], 1
jne 0x41c5a9
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x41c5a9
shr eax, 1
lea ecx, [esp + 0x28]
call fcn.00422550
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x41c59e
lea edx, [esp + 0x2c]
mov edi, dword [esp + 0x20]
call fcn.0041a490
jmp 0x41c5bc
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
call fcn.00411220
jmp 0x41c5bc
mov esi, 8
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41c5d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x50], bl
cmp dword [esp + 0x40], esi
jb 0x41c5e7
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0041206d
add esp, 4
xor edx, edx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0041d851
add esp, 0x40
ret
Function at 0x41d851
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x455d50]
jne 0x41d85b
repz ret
jmp fcn.0042ea5f

Function at 0x41d910
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x43bf39
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], ebp
call fcn.00419550
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], 1
mov eax, esi
cmp dword [ebx + 4], ebp
je 0x41da0e
call fcn.0041c750
test al, al
je 0x41da0c
mov eax, dword [esi]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
push edi
push ecx
push edx
call fcn.0042aef0
mov eax, dword [esi]
mov edx, dword [ebx + 4]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], edi
mov eax, dword [eax]
push eax
push ebp
push 1
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
push edx
call ebp
test eax, eax
je 0x41d9af
mov edi, dword [esp + 0x28]
mov eax, esi
call fcn.0041c750
jmp 0x41da0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x41d9ee
mov edi, dword [esp + 0x28]
mov eax, esi
call fcn.0041c750
test al, al
je 0x41d9ee
mov eax, dword [esi]
mov eax, dword [eax]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x28]
push ecx
push eax
push 0
push 1
push 0
push edx
call ebp
test eax, eax
jne 0x41da0c
mov eax, esi
call fcn.00404780
jmp 0x41da0c
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x41da0c
mov eax, dword [edi]
push 0
push eax
call fcn.00429ddd
add esp, 8
mov dword [edi], eax
mov dword [edi + 4], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 8

Function at 0x41e020
Capabilities:
Create service
Modify service

Disassembly:
push ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x41e07a
mov ecx, dword [esp + 8]
push 0
push 0
push 0x449bfc
push 0
push str.UIGroup
push ecx
push 1
push 3
push 0x10
push 0xf01ff
push str.asrrealtimesrv
push str.asrrealtimesrv
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
lea edx, [esp]
push edx
push 7
push eax
mov dword [esp + 0xc], 0x493e0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
pop ecx
ret
Function at 0x4235c0
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x43c528
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov dword [esp + 0x4c], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 0xf003f
push 0
push 0
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x423705
mov eax, dword [esp + 0x54]
push 0x2c
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x423705
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea ecx, [esp + 0x14]
push ecx
push 0x24
lea edx, [esp + 0x28]
push edx
push 0
push esi
call edi
test eax, eax
je 0x4236f2
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x423705
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 3
jne 0x42369e
mov eax, dword [esp + 0x38]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push 0x24
lea edx, [esp + 0x28]
push edx
push 0
push esi
call edi
test eax, eax
je 0x4236ee
cmp dword [esp + 0x24], 1
je 0x4236ee
call ebp
sub eax, dword [esp + 0x18]
cmp eax, 0x2bf20
ja 0x4236ee
cmp dword [esp + 0x24], 3
je 0x423667
lea eax, [esp + 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4236ee
cmp dword [esp + 0x24], 1
je 0x4236ee
push 0x3e8
call ebx
lea ecx, [esp + 0x14]
push ecx
push 0x24
lea edx, [esp + 0x28]
push edx
push 0
push esi
call edi
test eax, eax
je 0x4236ee
cmp dword [esp + 0x24], 1
je 0x4236ee
call ebp
sub eax, dword [esp + 0x18]
cmp eax, 0x2bf20
ja 0x4236ee
cmp dword [esp + 0x24], 1
jne 0x4236b7
mov ebx, dword [esp + 0x1c]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x54]
call fcn.0040c460
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x4239b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43c069
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x34]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], 0
call fcn.00419550
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov eax, esi
je 0x423a58
call fcn.0041c750
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], edi
mov eax, dword [eax]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423a4d
cmp dword [esp + 0x38], edi
je 0x423a56
xor edi, edi
mov eax, esi
call fcn.0041c750
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret

Function at 0x4242b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4242f7
call fcn.0041f9d1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4242f7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x424313
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00413b7d
mov esi, eax
test edi, edi
je 0x424311
test ebx, ebx
je 0x424311
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x426db8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x426e47
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0042aef0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x426e07
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x426e29
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x426f05
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x426e6f
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x426e7a
xor eax, eax
jmp 0x426ec6
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x426e97
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00427708
jmp 0x426ea7
cmp ecx, 2
jne 0x426eb0
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0042903a
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.0042aef0
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x426ef1
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x426f05
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x426dc5
pop edi
pop ebx
leave
ret
Function at 0x429414
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x455d50]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x4294ac
push 0x445d84
push 4
push eax
call fcn.0042a544
push eax
call fcn.004054f0
add esp, 0x10
push ebx
push edi
call fcn.0042ba66
mov edi, dword [eax]
call fcn.0042ba66
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0042ba03
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0042ba66
cmp dword [eax], ebx
je 0x4294c3
call fcn.0042ba66
push dword [eax]
call fcn.0041e080
pop ecx
jmp 0x4294ca
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x429457
jmp 0x429551
call fcn.0042ba66
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x42954d
cmp dword [ebp - 0x234], esi
jae 0x42954d
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.0042ace0
add esp, 0xc
push 0x445994
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x42953c
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42953c
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x42953c
push ebx
push ebx
push esi
jmp 0x429545
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x42954f
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041d851
leave
ret