joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b0b8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x46a794], 0
jne 0x44b139
cmp dword [0x46a7b4], 0
jne 0x44b0e8
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x46a7b4], eax
test eax, eax
jne 0x44b0e8
push str.GetEnvironmentStrings_failed
call fcn.0044a8ac
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x46a7b4]
jmp 0x44b0fc
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004468c8
pop ecx
mov edi, eax
test eax, eax
jne 0x44b0f4
lea edi, [ebp + 1]
push edi
call fcn.00446328
pop ecx
mov ebx, eax
mov dword [0x46a798], ebx
test ebx, ebx
jne 0x44b126
xor eax, eax
jmp 0x44b1fc
push edi
mov edx, dword [0x46a7b4]
push edx
push ebx
call fcn.00446778
add esp, 0xc
jmp 0x44b159
xor esi, esi
mov ebx, dword [0x46a794]
jmp 0x44b153
push eax
call fcn.004468c8
pop ecx
test eax, eax
jne 0x44b14f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x44b143
lea ebx, [esi + 4]
push 4
mov dword [0x46a79c], ebx
inc ebx
push ebx
call fcn.00445e04
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x44b17c
xor eax, eax
jmp 0x44b1fc
cmp dword [0x46a794], 0
jne 0x44b1ad
xor esi, esi
mov ebx, dword [0x46a798]
mov eax, dword [esp]
mov ebp, eax
jmp 0x44b19e
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004468c8
pop ecx
mov edi, eax
test eax, eax
jne 0x44b194
jmp 0x44b1de
xor esi, esi
mov ebx, dword [0x46a794]
mov eax, dword [esp]
mov edi, eax
jmp 0x44b1d8
push eax
call fcn.004468c8
pop ecx
test eax, eax
je 0x44b1cd
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x44b1d1
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x44b1bc
mov eax, dword [0x46a794]
test eax, eax
je 0x44b1ee
push eax
call fcn.00446338
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x46a794], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x451398
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4513c6
mov eax, ebx
call fcn.00451e3c
cmp dword [ebx + 0x3c], 0
je 0x4513bf
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x451437
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x451429
cmp dword [ebx + 8], 0
je 0x4513e8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x4513fa
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x451429
cmp dword [ebx + 8], 0
je 0x4513db
cmp eax, 3
je 0x45140d
dec eax
jne 0x4513db
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4513db
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x4513db
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x451455
cmp dword [ebx + 0x10], 0xcc
je 0x451455
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00451460
pop ebx
ret
Function at 0x407690
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x4076c6
mov dword [esp + 4], sym.get_globals_dtor_void_
mov dword [esp], eax
mov dword [0x43b820], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [0x434080], eax
mov esp, ebp
pop ebp
ret
call fcn.00410ab0
jmp 0x4076b5

Function at 0x40b6c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fread
mov esp, ebp
pop ebp
ret

Function at 0x40b6f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fwrite
mov esp, ebp
pop ebp
ret

Function at 0x40ce80
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ebx
mov ebx, dword [0x43ba60]
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40cec1
mov dword [ebx + 0x28], eax
mov dword [esp + 4], sym._fc_key_dtor
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call fcn.00410ab0
jmp 0x40ceaf
Function at 0x40d210
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x43ba60]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d392
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40d383
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40d35a
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40d350
xor ecx, ecx
mov eax, 5
cmp eax, 5
mov edx, 5
je 0x40d2bb
test eax, eax
mov edx, 3
jne 0x40d2bb
test ecx, ecx
jne 0x40d283
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
jmp 0x40d250
mov dword [esp + 0x10], edi
lea ebx, [ebp - 0x14]
mov dword [esp + 0x14], ebx
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], 1
call ecx
cmp eax, 6
je 0x40d2c5
cmp eax, 8
mov edx, 3
je 0x40d27c
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
mov edx, eax
jne 0x40d2bb
mov eax, dword [0x43ba60]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d342
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x40d336
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x40d319
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov ecx, dword [edx + 4]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x40d308
call fcn.00410ab0
jmp 0x40d308
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40d2fe
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40d2f7
mov ecx, dword [eax + 0x18]
xor eax, eax
jmp 0x40d265
mov ebx, dword [eax + 0x28]
call fcn.00410ab0
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
sub esp, 4
mov eax, ebx
jmp 0x40d242
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40d234
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40d229
Function at 0x40d4b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x43ba60]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d5b0
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40d5a0
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40d573
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x40d510
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x43ba60]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d567
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x40d55b
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x40d53e
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov ecx, dword [edx + 4]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x40d52d
call fcn.00410ab0
jmp 0x40d52d
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40d523
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40d51c
mov ebx, dword [eax + 0x28]
call fcn.00410ab0
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
sub esp, 4
mov eax, ebx
jmp 0x40d4e2
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40d4d4
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40d4c9
Function at 0x40d5c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x43ba60]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d6e0
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40d6d0
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40d6a4
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x40d690
mov dword [esp], edi
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40d6ef
mov eax, dword [0x43ba60]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d680
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x40d670
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x40d650
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov ecx, dword [edx + 4]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x40d638
call fcn.00410ab0
jmp 0x40d638
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40d62e
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40d627
mov dword [esp], edi
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
call sym.__Unwind_ForcedUnwind_Phase2
jmp 0x40d612
mov ebx, dword [eax + 0x28]
call fcn.00410ab0
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
sub esp, 4
mov eax, ebx
jmp 0x40d5f2
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40d5e4
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40d5d9
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40d700
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov ebx, dword [edi + 0xc]
test ebx, ebx
je 0x40d817
mov eax, dword [0x43ba60]
test eax, eax
je 0x40d808
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40d7f9
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40d7d0
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40d82c
mov eax, dword [0x43ba60]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d7c0
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x40d7ad
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x40d790
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov ecx, dword [edx + 4]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x40d77e
call fcn.00410ab0
jmp 0x40d77e
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40d774
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40d76d
mov ebx, dword [eax + 0x28]
call fcn.00410ab0
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
sub esp, 4
mov eax, ebx
jmp 0x40d743
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40d735
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40d72a
mov dword [esp], edi
call sym.__Unwind_SjLj_RaiseException
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym._abort
jmp sym.__Unwind_DeleteException

Function at 0x40dc70
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov edx, eax
je 0x40dca0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.___mingwthr_key_dtor
mov esp, ebp
pop ebp
ret
call fcn.00410ab0
jmp 0x40dc96

Function at 0x410c90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x42e6c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x18]
sub esp, 0x78
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x3c], sym.___gxx_personality_sj0
mov dword [ebp - 0x38], 0x433314
mov dword [ebp - 0x30], 0x42e85a
mov dword [ebp - 0x2c], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
mov edx, dword [0x434124]
test edx, edx
je 0x42e832
cmp dword [ebp + 8], 0x80
ja 0x42e718
mov eax, dword [0x434124]
test eax, eax
jle 0x42e748
mov dword [ebp - 0x50], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call sym.operator_new_unsigned_int_
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x58]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 7
mov dword [ebp - 0x5c], eax
shr eax, 3
lea eax, [eax*4 - 4]
mov dword [ebp - 0x60], eax
mov eax, dword [0x434130]
test eax, eax
je 0x42e81a
mov eax, dword [0x4340f0]
test eax, eax
jne 0x42e802
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x43ba10]
test edx, edx
je 0x42e7e7
mov eax, dword [edx]
mov dword [ebp - 0x58], edx
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 0x43ba10], eax
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x42e7d9
mov eax, dword [0x434130]
test eax, eax
je 0x42e7c4
mov eax, dword [0x4340f0]
test eax, eax
je 0x42e72d
mov dword [esp], 0x43413c
mov dword [ebp - 0x50], 0xffffffff
call sym.___gthr_win32_mutex_unlock
jmp 0x42e72d
mov dword [esp], 0x434130
mov dword [ebp - 0x50], 0xffffffff
call method.std::_STL_mutex_lock._M_initialize__
jmp 0x42e7a3
mov dword [ebp - 0x50], 1
call method.std.__throw_bad_alloc__
jmp 0x42e79a
and dword [ebp - 0x5c], 0xfffffff8
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call method.std::__default_alloc_template_true__0_._S_refill_unsigned_int_
mov dword [ebp - 0x58], eax
jmp 0x42e793
mov dword [esp], 0x43413c
mov dword [ebp - 0x50], 0xffffffff
call sym.___gthr_win32_mutex_lock
jmp 0x42e778
mov dword [esp], 0x434130
mov dword [ebp - 0x50], 0xffffffff
call method.std::_STL_mutex_lock._M_initialize__
jmp 0x42e76b
mov dword [esp], 0x4073f0
call sym._getenv
test eax, eax
je 0x42e853
mov eax, 1
lock add dword [0x434124], eax
jmp 0x42e706
mov eax, 0xffffffff
jmp 0x42e847
Function at 0x401980
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4049c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xac], 0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401a13
mov ebx, dword [esp + 0xb4]
mov ecx, 0x25
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x20], 1
jne 0x401a08
push 0
push ecx
lea edx, [esp + 0xbc]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.004015f0
jmp 0x401a13
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [esp + 0xb4]
mov dword [esp + 0xac], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xa4
ret 4
Function at 0x402690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x404bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0x20], 0
push eax
call sub.MFC42.DLL_CTime::GetTickCount
lea ecx, [esp + 8]
push str._y_m_d
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::Format
lea ecx, [esp + 4]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 8]
lea eax, [esp + 4]
push edx
push str.As_s.Log
push eax
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 8]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x28], 2
call fcn.00402770
lea ecx, [esp + 4]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4036f0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x4056e4
push 1
push 0
push 0x4056f4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40371e
xor eax, eax
add esp, 0x210
ret 8
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
push 0x352
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esp]
lea ecx, [esp + 4]
push ecx
push 0x405704
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jge 0x403761
xor eax, eax
add esp, 0x210
ret 8
mov eax, dword [esp + 0x218]
lea edx, [esp + 8]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push 2
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, 1
add esp, 0x210
ret 8

Function at 0x403920
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push edi
push 1
push 0
push 0
call esi
push 1
push 0
push 0
call esi
mov edi, eax
test edi, edi
je 0x40398e
push ebx
push 0xf01ff
push str.DbService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40398a
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x10], 4
jne 0x403980
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
pop ebx
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x4039a0
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push str.SoftwareAsiaStar
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4039d6
mov eax, dword [esp]
test eax, eax
je 0x4039d6
push str.Saturn
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
pop ecx
ret
Function at 0x4039e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404e40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x40742c
push 0x83
mov esi, dword [eax + 0x6c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
add ebx, 0xd0
lea ecx, [ebp - 0x14]
push ebx
mov esi, eax
call sub.MFC42.DLL_CString::CString_1
mov bl, 1
push str.CardKeyComKcPrepLib.dll
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00404466
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [ebp - 0x14]
push 0
push 0x1001
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x403ab0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.004044ae
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
push ecx
push esi
lea ecx, [ebp - 0x28]
call dword [edx + 0x40]
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CFile::Close
jmp 0x403a88

Function at 0x4041a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x108
lea eax, [esp]
lea edx, [esp + 8]
push eax
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x114]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x18], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4041f4
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x114]
call sub.MFC42.DLL_CString::operator
mov eax, 1
add esp, 0x108
ret 8
xor eax, eax
add esp, 0x108
ret 8

Function at 0x404240
Capabilities:
Set registry value

Disassembly:
mov edx, ecx
mov eax, dword [edx + 8]
test eax, eax
je 0x40424e
xor eax, eax
ret 8
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 8