joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4324ce
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4499cc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [esi + 0x70], ebx
call fcn.0040c6e0
lea edi, [esi + 0x74]
mov ecx, edi
mov dword [esp + 0x1c], ebx
call fcn.00422cc0
mov dword [edi], vtable.CPMonThread.0
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
lea ecx, [esi + 0xc0]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov byte [esp + 0x1c], 4
mov dword [ecx + 0x14], eax
call fcn.00401040
cmp eax, ebx
jge 0x405b16
push eax
call fcn.00401000
push 4
mov byte [esp + 0x20], 5
lea edi, [esi + 0xd8]
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x405b33
mov dword [eax], edi
jmp 0x405b35
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], 0xffffffff
mov dword [esi + 0x6c], 1
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x40f280
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x433098
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4499cc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x449ae8]
mov edx, dword [eax + 0xc]
mov ecx, 0x449ae8
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
push eax
push str.SOFTWARESamsungKiesDeviceDB
lea ecx, [esp + 0x18]
push str._s_li
push ecx
mov dword [esp + 0x2c], 0
call fcn.004043c0
mov edi, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
push 0x20006
push 0
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40f34a
mov edx, dword [esp + 0x2c]
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f310
mov ecx, dword [esp + 0x28]
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
mov edx, dword [esp + 0x14]
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x40f384
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f36e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0xc
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f3b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0xc
Function at 0x414160
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433720
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4499cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 4], ecx
mov edx, dword [esi + 8]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 4]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x10]
push str.DoReloadDB___n
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x60], eax
mov dword [eax + 0x10], edx
mov dword [ebp - 4], 0
call ebx
cmp dword [esi], 6
je 0x4141f4
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
push 0x44182c
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], vtable._com_error.0
mov dword [ebp - 0x6c], 0x80004001
call sub.MSVCR90.dll__CxxThrowException
mov dword [ebp - 0x54], 0
push str.DoReloadDB_1__n
mov byte [ebp - 4], 1
call ebx
mov edi, dword [edi + 0x88]
test edi, edi
jne 0x41421a
push 0x80004003
call fcn.00430f20
mov ecx, dword [esi]
push ecx
call fcn.0040ce70
add esp, 4
push eax
lea edx, [ebp - 0x50]
push edx
mov ecx, edi
call fcn.0040db90
mov eax, dword [eax]
test eax, eax
je 0x414246
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov esi, eax
push eax
mov dword [ebp - 0x54], esi
call edx
jmp 0x414249
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x414258
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str.DoReloadDB_2__n
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
push str.DevInf
call fcn.00401120
mov byte [ebp - 4], 2
test esi, esi
jne 0x414281
push 0x80004003
call fcn.00430f20
lea eax, [ebp - 0x5c]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040fd80
push str.DoReloadDB_3__n
mov byte [ebp - 4], 3
call ebx
push str.DevInf
lea ecx, [ebp - 0x50]
call fcn.00401120
mov edi, dword [ebp - 0x58]
lea ecx, [ebp - 0x5c]
push ecx
add edi, 0x90
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0042b320
lea ecx, [ebp - 0x50]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.00402710
test esi, esi
jge 0x4142d9
push esi
call fcn.00430f20
mov ecx, edi
call fcn.0042b9f0
lea ecx, [ebp - 0x5c]
call fcn.00402710
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
mov byte [ebp - 4], 0
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004313ee
mov esp, ebp
pop ebp
ret 8
Function at 0x419a40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x433f63
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4499cc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor eax, eax
xor ebx, ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov byte [esi + 0x48], bl
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 0x1c], ebx
call fcn.00422cc0
mov dword [esi], vtable.CDeviceThread.1.0
mov dword [edi], vtable.CDeviceThread.0
mov dword [esi + 0x50], ebx
lea ecx, [esi + 0x54]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov byte [esp + 0x1c], 2
mov dword [ecx + 0x14], eax
call fcn.00401040
cmp eax, ebx
jge 0x419acd
push eax
call fcn.00401000
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
lea ecx, [esi + 0x90]
mov byte [esp + 0x1c], 6
call fcn.00419990
lea eax, [esi + 0x138]
push eax
mov dword [esi + 0x128], ebx
mov dword [esi + 0x130], ebx
mov dword [esi + 0x134], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [esi + 0x154], ebx
push 4
mov byte [esp + 0x20], 9
lea edi, [esi + 0x15c]
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x419b2e
mov dword [eax], edi
jmp 0x419b30
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x40bea0
push 0x40c050
push 0x19
push 0x38
lea eax, [esi + 0x17c]
push eax
mov byte [esp + 0x30], 0xa
call fcn.00431404
push str.CDeviceThread::Construct
mov byte [esp + 0x20], 0xb
call fcn.004045c0
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 4
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x80], ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x150], eax
call edi
push ebx
push ebx
push ebx
mov dword [esi + 0x154], eax
mov byte [esi + 0x158], bl
mov dword [esi + 0x84], ebx
mov dword [esi + 0x6f4], 0xffffffff
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x14c], ebx
mov byte [esi + 0x148], bl
push ebx
mov byte [esi + 0x14a], 1
call edi
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x421570
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x42158c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x4214e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4215b4
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x421e60
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
push edi
lea eax, [esp + 0x14]
push eax
xor esi, esi
lea ecx, [esp + 0xc]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareSamsungKies2.0
push SysReAllocStringLen
mov dword [0x449a90], 0
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x421edc
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x449a90
lea ecx, [esp + 0x18]
push ecx
push 0
push str.LogLevel
mov edi, 4
push eax
mov esi, eax
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421ed2
cmp dword [esp + 0x10], edi
je 0x421edc
mov dword [0x449a90], 3
cmp byte [0x449a44], 0
je 0x421eea
or edi, 0xffffffff
jmp 0x421f23
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0xc]
push edx
push eax
mov ecx, 0x449a50
call fcn.00421ce0
cmp al, 1
jne 0x421f1d
mov eax, dword [esp + 0x28]
push eax
mov ecx, 0x449a50
call fcn.00421b90
jmp 0x421f21
mov eax, dword [esp + 0xc]
mov edi, eax
test esi, esi
je 0x421f2e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret 0x10
Function at 0x422d90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4451d0
push 0x4312f4
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4499cc]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
xor ebx, ebx
mov byte [ebp - 0x19], bl
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], ebx
mov ecx, esi
call fcn.00422b90
test al, al
jne 0x422e0e
lea edi, [esi + 8]
mov ecx, edi
call fcn.004038e0
push ebx
push ebx
push esi
push 0x422c40
push ebx
push ebx
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [edi], eax
cmp eax, ebx
je 0x422e0e
cmp eax, 0xffffffff
je 0x422e0e
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.00422e32
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x425820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x434b80
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4499cc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [0x449ae8]
mov edx, dword [eax + 0xc]
mov ecx, 0x449ae8
call edx
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [esp + 0x30]
push 8
push 0
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x38], 1
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
jge 0x425895
push eax
call fcn.00401000
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x4258a1
xor eax, eax
jmp 0x4258b5
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4258a6
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.004042b0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 4
Function at 0x42d4e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x43556c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4499cc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor eax, eax
mov dword [esp + 0x1c], 3
mov dword [esi + 0x30], 0
cmp dword [esi + 4], eax
je 0x42d540
cmp dword [esi + 8], eax
jbe 0x42d53e
mov edx, dword [esi]
mov ecx, edx
lea esp, [esp]
cmp dword [ecx], 0
jne 0x42d55e
inc eax
add ecx, 4
cmp eax, dword [esi + 8]
jb 0x42d530
xor eax, eax
mov dword [esi + 0x94], eax
test eax, eax
je 0x42d5b8
lea ebx, [ebx]
mov ebx, dword [esi + 0x94]
test ebx, ebx
jne 0x42d563
xor ecx, ecx
jmp 0x42d58b
mov eax, dword [edx + eax*4]
jmp 0x42d540
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x42d58b
mov edi, dword [esi + 8]
mov eax, dword [ebx + 0xc]
xor edx, edx
div edi
inc edx
cmp edx, edi
jae 0x42d58b
mov eax, dword [esi]
cmp dword [eax + edx*4], 0
lea eax, [eax + edx*4]
je 0x42d586
mov ecx, dword [eax]
inc edx
test ecx, ecx
je 0x42d575
mov dword [esi + 0x94], ecx
mov edi, dword [ebx + 4]
test edi, edi
je 0x42d5a8
mov ecx, edi
call fcn.0042c3d0
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esi + 0x94], 0
jne 0x42d550
mov ecx, esi
call fcn.0040e270
lea ecx, [esi + 0xa0]
call fcn.0042c420
lea ecx, [esi + 0x64]
call fcn.0040e8b0
lea ecx, [esi + 0x34]
call fcn.0040e8b0
mov ecx, esi
call fcn.0040e8b0
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x42f690
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x434c68
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4499cc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [0x449a9c], 0
jne 0x42f7b3
mov eax, dword [0x449ae8]
mov edx, dword [eax + 0xc]
mov ecx, 0x449ae8
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
mov dword [esp + 0x18], 0
jge 0x42f704
push 0x400
lea ecx, [esp + 0x10]
call fcn.00403a30
mov esi, dword [esp + 0xc]
push 0x400
push esi
push 0x21
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call dword [sym.imp.MSVCR90.dll_wcsnlen]
add esp, 8
test eax, eax
jl 0x42f7ca
cmp eax, dword [esi - 8]
jg 0x42f7ca
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jle 0x42f78f
lea edx, [esp + 0xc]
push 0x437af8
push edx
mov dword [0x449a9c], 1
call fcn.0040d2d0
add esp, 8
test al, al
je 0x42f76f
mov dword [0x449a98], 1
lea eax, [esp + 0xc]
push 0x43e088
push eax
call fcn.0040d2d0
add esp, 8
test al, al
je 0x42f78f
mov dword [0x449a98], 2
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f7b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x449a98]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x4313ee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4499cc]
jne 0x4313f8
repz ret
jmp fcn.004319e6
Function at 0x41fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00416e52
and dword [ebp - 0x14], 0
cmp dword [0x46d558], 0
mov dword [ebp - 0x18], eax
jne 0x41fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46d560], eax
call edi
push eax
call esi
mov dword [0x46d568], eax
test eax, eax
je 0x41fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46d564], eax
mov eax, dword [0x46d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fc78
cmp dword [0x46d568], ecx
je 0x41fc78
push eax
call esi
push dword [0x46d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fc78
test ebx, ebx
je 0x41fc78
call edi
test eax, eax
je 0x41fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fc6f
test byte [ebp - 8], 1
jne 0x41fc78
or dword [ebp + 0x10], 0x200000
jmp 0x41fcab
mov eax, dword [0x46d55c]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fcab
mov eax, dword [0x46d560]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46d558]
call esi
test eax, eax
je 0x41fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113cb
leave
ret

Function at 0x40d308
Capabilities:
Encode data using xor

Disassembly:
mov dh, 0x9e
sahf
xchg edi, eax
pop ds
or al, 0x43
mov bh, 0x67
xor edx, esi
jae 0x40d309
sahf
mov dword [ebp + 0x3a], edx
arpl word [edi - 0x6e392676], sp
fnstcw word [edx + 0x78]
sbb byte [esi + 0x5e], al
push es
jg 0x40d309
or eax, 0x3b44741e
adc eax, 0x2cc8c4c8
jl 0x40d34c
invalid
cmp byte [ebp - 0x23], ah
adc eax, 0xbc35f2a9
pop ds
hlt
Function at 0x40722c
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40723e
call fcn.0041ae70
mov eax, dword [0x420ad3]
shl eax, 2
mov dword [0x420ad7], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
mov dword [0x420adb], edx
call fcn.004129dc
pop edx
call fcn.00410850
call fcn.004129e0
push 0x420a7c
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x420adb], eax
push 0
jmp 0x41c398
push ebx
push edi
push esi
sub esp, 0x5c
mov esi, dword [esp + 0x6c]
mov eax, dword [esi + 0x10]
and eax, 1
mov dword [0x423620], eax
call fcn.00418290
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00418898
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call fcn.00413bcc
mov eax, dword [esi + 0x44]
mov dword [esp], eax
call fcn.00413bdc
mov dword [0x42b878], 1
mov dword [0x42b87c], esi
lea eax, [esp + 0x10]
mov dword [0x42b844], eax
call fcn.0041cca4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x42b848], eax
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x42b850], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0041b328
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
mov edi, dword [esi + 0x40]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0041b378
mov dword [esp + 4], 0
mov dword [esp], 0x42b878
call fcn.0041c1e0
test byte [esi + 0x10], 1
je 0x41c483
mov eax, dword [0x42b850]
nop word cs:[eax + eax]
inc eax
mov cl, byte [eax - 1]
cmp cl, 9
je 0x41c468
cmp cl, 0x22
je 0x41c4a7
cmp cl, 0x20
je 0x41c468
dec eax
mov edx, 0x20
jmp 0x41c4bc
mov eax, dword [0x42b85c]
mov ecx, dword [0x42b860]
mov edx, dword [0x42b864]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [esi + 0x18]
jmp 0x41c53f
mov cl, byte [eax]
mov edx, 0x22
jmp 0x41c4bc
mov cl, byte [eax + 1]
inc eax
xor ch, ch
test cl, cl
je 0x41c4d0
cmp cl, 9
je 0x41c4ce
movsx edi, cl
cmp edi, edx
jne 0x41c4b8
mov ch, cl
lea edi, [eax + 1]
cmp ch, 0x22
cmovne edi, eax
jmp 0x41c4e9
inc edi
mov al, byte [edi]
cmp al, 9
je 0x41c4e8
cmp al, 0x20
je 0x41c4e8
mov ebx, dword [esi + 0x18]
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
mov esi, eax
lea eax, [esp + 0x18]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetStartupInfoA
sub esp, 4
mov eax, 0xa
test byte [esp + 0x44], 1
je 0x41c527
movzx eax, word [esp + 0x48]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 4], 0
call ebx
sub esp, 0x10
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0041b144
add esp, 0x5c
pop esi
pop edi
pop ebx
ret
Function at 0x40a010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, esp
mov dword [eax], 0xfffffff5
call sub.KERNEL32.DLL_GetStdHandle
sub esp, 4
mov dword [ebp - 4], eax
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_GetFileType
sub esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
sub eax, 3
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
je 0x40a0d6
jmp 0x40a04b
mov eax, dword [ebp - 0x14]
sub eax, 2
mov dword [ebp - 0x1c], eax
je 0x40a0a2
jmp 0x40a058
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x20], eax
jne 0x40a0ff
jmp 0x40a069
mov dword [0x423dbc], 3
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
mov edx, esp
mov dword [edx + 0xc], ecx
mov dword [edx], eax
mov dword [edx + 0x10], 0
mov dword [edx + 8], 3
mov dword [edx + 4], 0x420f94
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [ebp - 0x24], eax
jmp 0x40a109
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call sub.KERNEL32.DLL_GetConsoleMode
sub esp, 8
cmp eax, 0
je 0x40a0ca
mov dword [0x423dbc], 1
jmp 0x40a0d4
mov dword [0x423dbc], 2
jmp 0x40a109
call sub.KERNEL32.DLL_GetConsoleOutputCP
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xfde9
jne 0x40a0f3
mov dword [0x423dbc], 3
jmp 0x40a0fd
mov dword [0x423dbc], 2
jmp 0x40a109
mov dword [0x423dbc], 2
add esp, 0x38
pop ebp
ret