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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43771a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x449450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0040a2cc
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x401ba6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.0040bc66
push 0x447a34
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0040d6db
push edi
push esi
call fcn.0040a562
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b366
mov esp, ebp
pop ebp
ret 4

Function at 0x402090
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4377a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x449450]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.004015c0
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.00401fc0
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x402101
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.0040bc66
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x40212a
push dword [esp + 0xc]
call fcn.0040b375
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4044d0
Capabilities:
Hide graphical window
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43799b
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x449450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallB897520C_BD34_42FA_9644_3F03DE6B7783_is1
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40454f
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], 0x400
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push str.DisplayName
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x404566
mov eax, dword [0x44f118]
test eax, eax
je 0x404585
cmp eax, 2
jg 0x404566
cmp byte [0x44f11c], 0
jne 0x404585
call fcn.00404740
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b366
mov esp, ebp
pop ebp
ret
push 0
push 0x403ba0
push dword [0x44f124]
inc eax
push 0x89
push dword [0x44f120]
mov dword [0x44f118], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
sub esp, 0xc
lea ecx, [ebp - 0x418]
call fcn.00409050
mov esi, eax
mov dword [ebp - 4], 0
cmp dword [esi + 4], 0
jne 0x4045d9
push 1
call fcn.0040a1ca
add esp, 4
push dword [esi + 4]
push dword [esi]
call fcn.0040a249
add esp, 8
test eax, eax
je 0x4045f3
push eax
call fcn.0040a19d
add esp, 4
mov dword [esi + 4], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x414], 0
je 0x40456b
call fcn.0040beac
int3

Function at 0x404620
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4379e0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x449450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x44f11c], 0
jne 0x404716
inc dword [0x44f118]
push str.riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0x4035f0
push dword [0x44f124]
push 0x85
push dword [0x44f120]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x1c], xmm0
movdqu xmmword [ebp - 0x2c], xmm0
call fcn.0040aa45
mov dword [ebp - 0x2c], 0x442a90
mov dword [ebp - 0x1c], 0x405650
mov dword [ebp - 0x18], 0x442264
mov dword [ebp - 0x14], 0x442570
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ab3d
lea ecx, [ebp - 0x2c]
call fcn.0040aab6
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4046fb
push 1
call fcn.0040a1ca
mov eax, dword [ebp - 0x30]
add esp, 4
push eax
push dword [ebp - 0x34]
call fcn.0040a249
add esp, 8
test eax, eax
je 0x40471b
push eax
call fcn.0040a19d
add esp, 4
jmp 0x40471b
call fcn.004048f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b366
mov esp, ebp
pop ebp
ret
Function at 0x404740
Capabilities:
Hide graphical window
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437a26
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x449450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x438]
push eax
push 0x20019
push 0
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstallC87BD92A_FDDE_42C5_84F7_5159BEC08A01_is1
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4047c2
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], 0x400
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push str.DisplayName
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4048ce
cmp byte [ebp - 0x439], 0
jne 0x4048ce
mov eax, dword [0x44f118]
test eax, eax
je 0x4047ee
cmp eax, 2
jg 0x4048ce
cmp byte [0x44f11c], 0
je 0x4048ce
push 0
push 0x403080
push dword [0x44f124]
inc eax
push 0x87
push dword [0x44f120]
mov dword [0x44f118], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
mov dword [ebp - 0x41c], 0
lea ecx, [ebp - 0x434]
movq qword [ebp - 0x424], xmm0
movdqu xmmword [ebp - 0x434], xmm0
call fcn.0040aa45
mov dword [ebp - 0x434], 0x442a90
mov dword [ebp - 0x424], 0x405650
mov dword [ebp - 0x420], 0x442650
mov dword [ebp - 0x41c], 0x442658
lea eax, [ebp - 0x418]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x434]
call fcn.0040ab3d
lea ecx, [ebp - 0x434]
call fcn.0040aab6
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x4048b0
push 1
call fcn.0040a1ca
mov eax, dword [ebp - 0x414]
add esp, 4
push eax
push dword [ebp - 0x418]
call fcn.0040a249
add esp, 8
test eax, eax
je 0x4048d3
push eax
call fcn.0040a19d
add esp, 4
jmp 0x4048d3
call fcn.00404620
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b366
mov esp, ebp
pop ebp
ret
Function at 0x4048f0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437a70
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x58
mov eax, dword [0x449450]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x402960
push dword [0x44f124]
push 0x88
push dword [0x44f120]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov edi, eax
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x40e
push edi
call esi
push 0x40c
push edi
mov dword [0x44f140], eax
call esi
push 0x40d
push edi
mov dword [0x44f144], eax
call esi
xorps xmm0, xmm0
lea ecx, [ebp - 0x60]
mov esi, eax
movdqa xmmword [ebp - 0x60], xmm0
movq qword [ebp - 0x50], xmm0
call fcn.0040aa45
mov dword [ebp - 0x60], 0x442a88
mov dword [ebp - 0x50], 0x404ac0
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x60]
call fcn.0040ab3d
lea ecx, [ebp - 0x60]
call fcn.0040aab6
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4049dd
push 1
call fcn.0040a1ca
mov eax, dword [ebp - 0x18]
add esp, 4
push eax
push dword [ebp - 0x1c]
call fcn.0040a249
add esp, 8
test eax, eax
je 0x4049f6
push eax
call fcn.0040a19d
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x40]
movdqa xmmword [ebp - 0x40], xmm0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 0
call fcn.0040aa45
mov dword [ebp - 0x40], 0x442a90
mov dword [ebp - 0x30], 0x405650
mov dword [ebp - 0x2c], str.Download
mov dword [ebp - 0x28], str._download
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x40]
call fcn.0040ab3d
lea ecx, [ebp - 0x40]
call fcn.0040aab6
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x404a65
push 1
call fcn.0040a1ca
mov eax, dword [ebp - 0x64]
add esp, 4
push eax
push dword [ebp - 0x68]
call fcn.0040a249
add esp, 8
test eax, eax
je 0x404a7e
push eax
call fcn.0040a19d
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x64], 0
je 0x404a97
call fcn.0040beac
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b366
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x406130
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x449450]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4061c5
push esi
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4061b2
push dword [ebp - 0x228]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4061b2
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x406174
pop esi
push edi
call ebx
cmp dword [ebp + 0x1c], 8
pop edi
pop ebx
jb 0x4061db
push dword [ebp + 8]
call fcn.0040b375
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b366
mov esp, ebp
pop ebp
ret
Function at 0x4061f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437d00
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x449450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push eax
push 2
mov byte [ebp - 4], 1
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40633e
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40633e
cmp word [ebp - 0x234], 0
jne 0x406281
xor ecx, ecx
jmp 0x40629f
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406290
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x234]
push eax
push dword [ebp + 0x18]
push ecx
lea ecx, [ebp + 8]
call fcn.00409970
test eax, eax
je 0x406335
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x258]
push eax
push esi
call edi
test eax, eax
je 0x406337
jmp 0x4062d0
cmp word [ebp - 0x234], 0
jne 0x4062de
xor eax, eax
jmp 0x4062f6
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4062e7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407cf0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00409970
test eax, eax
je 0x406335
lea eax, [ebp - 0x258]
push eax
push esi
call edi
test eax, eax
jne 0x4062d0
jmp 0x406337
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 8
jb 0x40634f
push dword [ebp - 0x28]
call fcn.0040b375
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x406374
push dword [ebp + 8]
call fcn.0040b375
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b366
mov esp, ebp
pop ebp
ret
Function at 0x408240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x437eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x449450]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x449450]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x408394
cmp byte [ebx + 0x45], 0
je 0x408394
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4082a0
xor al, al
jmp 0x408396
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x4082e0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x408321
dec eax
je 0x408325
sub eax, 2
je 0x40837b
xor bl, bl
jmp 0x40837d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x40835c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0040c85b
add esp, 0x10
cmp esi, eax
jne 0x40831d
cmp byte [ebx + 0x45], 0
je 0x40837b
test esi, esi
jne 0x4082e0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00407850
jmp 0x4082e0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x408390
push dword [esp + 0x18]
call fcn.0040b375
add esp, 4
mov al, bl
jmp 0x408396
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040b366
mov esp, ebp
pop ebp
ret

Function at 0x411ca3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x423e19
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x449450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040decd
mov dword [ebp - 0x14], eax
cmp dword [0x44efd0], esi
jne 0x423f0c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x423e99
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x423fec
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x423fec
push 0x43fea4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x423fec
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x44efd0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x44efd4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x44efd8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44efe0], eax
test eax, eax
je 0x423f09
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44efdc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x423f31
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x423f24
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x423f46
push 4
pop eax
jmp 0x423fee
cmp dword [ebp - 0x14], esi
je 0x423f46
push dword [0x44efd0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x423f2b
mov eax, dword [0x44efdc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x423fa4
cmp dword [0x44efe0], edi
je 0x423fa4
push eax
call ebx
push dword [0x44efe0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x423fa4
test eax, eax
je 0x423fa4
call ecx
test eax, eax
je 0x423f99
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x423f99
test byte [ebp - 8], 1
jne 0x423fa4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x423fd4
mov eax, dword [0x44efd4]
cmp eax, edi
je 0x423fd1
push eax
call ebx
test eax, eax
je 0x423fd1
call eax
mov esi, eax
test esi, esi
je 0x423fd1
mov eax, dword [0x44efd8]
cmp eax, edi
je 0x423fd1
push eax
call ebx
test eax, eax
je 0x423fd1
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44efd0]
call ebx
test eax, eax
je 0x423fec
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x423fee
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b366
mov esp, ebp
pop ebp
ret
Function at 0x404594
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406978
test esi, esi
jne 0x4045cc
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406ab4
jmp 0x4045ea
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044d8
mov edi, eax
test esi, esi
je 0x4045ea
cmp dword [ebx], 0
je 0x4045ea
dec esi
jmp 0x4045d3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e2c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x549050], 0
je 0x405e8d
cmp word [0x54932c], 0xd7b2
jne 0x405e55
cmp dword [0x549334], 0
jbe 0x405e55
mov eax, 0x549328
call dword [0x549344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405eb8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x543030], 0
jne 0x405ea9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406038
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x543034], 0
je 0x40605e
mov edx, esi
mov eax, ebx
call dword [0x543034]
jmp 0x40606d
mov eax, 8
call fcn.00404220
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x549051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406000
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40877c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4088e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406978
cmp si, word [0x5437dc]
jb 0x408816
cmp si, word [0x5439dc]
ja 0x408816
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408816
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5437dc]
jae 0x4087f0
mov edi, ebx
dec edi
jmp 0x408811
cmp si, word [ebx*8 + 0x5437dc]
jbe 0x408800
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408811
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5437e0]
call fcn.0040868c
jmp 0x408816
cmp edi, dword [ebp - 0xc]
jae 0x4087da
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4088c5
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4088c5
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406b70
push dword [ebp - 0x164]
push 0x408900
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406b70
push dword [ebp - 0x168]
push 0x408910
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406b70
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406f28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4088ea
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406970
ret
Function at 0x408a9c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408ba1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x54bb58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x54bb70]
jne 0x408ae8
mov eax, esi
mov edx, 0x54bb74
mov ecx, 0x55
call fcn.00406b70
push 0x54bb58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408b8b
push 0x54bb58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406978
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b59
cmp byte [0x54bb54], 0
je 0x408b1e
mov edx, esi
mov eax, ebx
call fcn.0040897c
jmp 0x408b59
mov edx, esi
mov eax, ebx
call fcn.0040877c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408b59
cmp dword [esi], 0
je 0x408b42
mov eax, esi
mov edx, 0x408bbc
call fcn.00406d84
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040877c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406d84
push 0x54bb58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x54bb70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406a04
push eax
push 0x54bb74
call sub.kernel32.dll_lstrcpynW
push 0x54bb58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ba8
lea eax, [ebp - 4]
call fcn.00406968
ret