joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a78
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x4475f8
push 0x4093c8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405ac6
push 1
push 0
push esi
call fcn.004059a2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405be5
cmp eax, ebx
jg 0x405be5
mov esi, 0x4479f8
push ebx
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405be5
cmp eax, ebx
jg 0x405be5
push esi
push edi
push 0x4093c0
push 0x4471f8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x451410]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d51
push 4
push 0xc0000000
push esi
call fcn.004059a2
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405be5
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405bde
push edi
push esi
push ebp
call fcn.00405a1a
test eax, eax
je 0x405bde
push 0x4093b4
push esi
call fcn.00405907
test eax, eax
jne 0x405b7c
lea eax, [esi + edi]
push 0x4093b4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405bb1
add eax, 0xa
push 0x4093b0
push eax
call fcn.00405907
mov ebp, eax
test ebp, ebp
je 0x405bad
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405b9e
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405b98
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405bb3
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4471f8
push eax
call fcn.0040595d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405a49
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405bea
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405c0d
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405a78
pop ecx
pop ecx
inc dword [0x451490]
ret 8
Function at 0x405c16
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c87
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c76
cmp dword [ebp + 0x14], 1
je 0x405c78
cmp dword [ebp + 0x14], 2
je 0x405c78
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40605a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40607e
xor eax, eax
test eax, eax
je 0x406090
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406090
xor ecx, ecx
jmp 0x406093
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push 0x4093d8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40613d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x447dfc], 0
push esi
jne 0x406174
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40614e
mov dword [ecx*4 + 0x447df8], eax
inc ecx
cmp ecx, 0x100
jl 0x406149
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4061a5
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x447df8]
xor eax, esi
inc ecx
dec edx
jne 0x406187
pop edi
not eax
pop esi
ret 0xc
Function at 0x401760
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415878
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x41c490]
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 eax, dword [ebp + 8]
xor esi, esi
push 0x114
mov edi, edx
lea edx, [ebp - 0x140]
push esi
push edx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x14c], esi
call fcn.0040c900
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 0x140], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x13c], 6
mov dword [ebp - 0x1c], esi
setae bl
xor ecx, ecx
push esi
mov eax, 0x418f80
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], cx
call fcn.00404800
xor esi, esi
test bl, bl
mov dword [ebp - 4], esi
lea ebx, [esi + 8]
jne 0x401889
cmp dword [edi + 0x14], ebx
jb 0x401814
mov eax, dword [edi]
jmp 0x401816
mov eax, edi
mov ecx, str.LOCALAPPDATA
jmp 0x401820
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401846
cmp dx, si
je 0x401842
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401846
add eax, 4
add ecx, 4
cmp dx, si
jne 0x401820
xor eax, eax
jmp 0x40184b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x401889
push str.USERPROFILE
call fcn.0040698c
mov ecx, eax
add esp, 4
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, si
jne 0x401861
sub ecx, edi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.00404800
push 0x20
mov eax, str.Local_SettingsApplication_Data
mov ecx, esi
call fcn.004046d0
jmp 0x4018be
cmp dword [edi + 0x14], ebx
jb 0x401892
mov eax, dword [edi]
jmp 0x401894
mov eax, edi
push eax
call fcn.0040698c
add esp, 4
cmp eax, esi
je 0x4018e1
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, si
jne 0x4018a6
sub ecx, edi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.00404800
mov edx, dword [ebp - 0x148]
push 0
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.004045e0
mov eax, dword [ebp - 0x144]
mov dword [eax + 0x10], 0
jmp 0x4018ea
mov eax, dword [ebp - 0x144]
mov dword [eax + 0x10], esi
xor ecx, ecx
mov dword [eax + 0x14], 7
lea edi, [ebp - 0x2c]
mov esi, eax
mov word [eax], cx
call fcn.00403bb0
cmp dword [ebp - 0x18], ebx
jb 0x401911
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00407029
add esp, 4
mov eax, esi
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.00405f63
mov esp, ebp
pop ebp
ret
Function at 0x401cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4159e6
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x41c490]
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
xor eax, eax
mov word [ebp - 0x30], ax
push eax
mov eax, 0x418f80
lea esi, [ebp - 0x30]
mov ebx, ecx
mov edi, edx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
call fcn.00404800
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x50], eax
jb 0x401d3e
mov ebx, dword [ebx]
movzx ecx, word [ebp + 8]
push ebx
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edx, dword [ebp - 0x50]
mov esi, eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov ebx, edi
call fcn.00404fc0
add esp, 8
mov edi, 8
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], edi
jb 0x401d90
mov eax, dword [eax]
push eax
lea edx, [ebp - 0xfc]
push edx
call fcn.00402e00
mov byte [ebp - 4], 3
cmp dword [ebp - 0x38], edi
jb 0x401db2
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00407029
add esp, 4
mov edx, dword [ebp - 0x50]
xor ebx, ebx
push ebx
push edx
push esi
lea eax, [ebp - 0xfc]
xor ecx, ecx
push eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], cx
call fcn.004028a0
lea eax, [ebp - 0xf8]
call fcn.00403e80
test eax, eax
jne 0x401e18
mov ecx, dword [ebp - 0xfc]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0xf0]
lea ecx, [ebp + ecx - 0xfc]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x401e07
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x401e18
push ebx
call fcn.00401530
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x9c]
mov dword [ebp - 0x50], edx
mov dword [ebp + ecx - 0xfc], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 4
call fcn.00402f10
mov byte [ebp - 4], bl
mov edx, dword [ebp - 0xfc]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x9c]
mov dword [ebp + eax - 0xfc], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push ecx
mov dword [ebp - 0x9c], vtable.std::ios_base.0
call fcn.0040561d
add esp, 4
cmp dword [ebp - 0x1c], edi
jb 0x401e85
mov edx, dword [ebp - 0x30]
push edx
call fcn.00407029
add esp, 4
mov al, 1
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.00405f63
mov esp, ebp
pop ebp
ret
Function at 0x403fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4156e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41c490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x404141
cmp byte [ebx + 0x49], 0
je 0x404141
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x404135
lea esi, [ebp - 0x2c]
call fcn.00403a80
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x404023
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40405c
dec eax
je 0x404060
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40413c
call fcn.00402840
xor al, al
jmp 0x404143
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x404070
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40409d
cmp edi, 0x10
jae 0x40407f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00407200
add esp, 0x10
cmp esi, eax
jne 0x40412d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x404139
test esi, esi
jne 0x404017
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40415e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40415e
cmp edi, esi
jae 0x404116
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404a50
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x404017
mov ecx, eax
cmp edi, 0x10
jae 0x4040f2
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40410d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x404011
test esi, esi
jne 0x4040e8
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x404125
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x404011
lea ecx, [ebp - 0x2c]
call fcn.00402840
xor al, al
jmp 0x404143
lea ecx, [ebp - 0x2c]
call fcn.00402840
mov al, 1
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.00405f63
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004059d9
int3
Function at 0x4044b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41563b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41c490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00405b2d
push 4
mov dword [ebp - 4], 0
call fcn.004073ac
mov edi, eax
add esp, 4
test edi, edi
je 0x40452c
call fcn.00405928
mov dword [edi], eax
call fcn.004056e7
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00405aee
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404522
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00405b16
jmp 0x40452e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405f63
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c490]
jne 0x405f6d
repz ret
jmp fcn.0040a566

Function at 0x406740
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x406768
call fcn.0040ac2a
and dword [eax], 0
call fcn.0040ac17
mov dword [eax], 0x16
call fcn.0040abc5
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406785
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ac3d
pop ecx
jmp 0x406763
test byte [ebp + 0xc], 0x80
je 0x406790
and eax, 0xfffffffe
jmp 0x406793
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x406776
xor eax, eax
pop ebp
ret
Function at 0x406f92
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x406fb9
call fcn.0040ac2a
mov dword [eax], esi
call fcn.0040ac17
push 0x16
pop esi
mov dword [eax], esi
call fcn.0040abc5
mov eax, esi
jmp 0x40700e
test dword [ebp + 0xc], 0xfffffff9
jne 0x406f9f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406fe6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ac3d
pop ecx
call fcn.0040ac17
mov eax, dword [eax]
jmp 0x40700e
test al, 0x10
jne 0x40700c
test al, 1
je 0x40700c
test byte [ebp + 0xc], 2
je 0x40700c
call fcn.0040ac2a
mov dword [eax], 5
call fcn.0040ac17
mov dword [eax], 0xd
jmp 0x406fdd
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4138c1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c490]
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.0040d42a
and dword [ebp - 0x14], 0
cmp dword [0x41e204], 0
mov dword [ebp - 0x18], eax
jne 0x413974
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x413a1c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x413a1c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41e204], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41e208], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41e20c], eax
call edi
push eax
call esi
mov dword [0x41e214], eax
test eax, eax
je 0x413974
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41e210], eax
mov eax, dword [0x41e210]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4139cd
cmp dword [0x41e214], ecx
je 0x4139cd
push eax
call esi
push dword [0x41e214]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4139cd
test ebx, ebx
je 0x4139cd
call edi
test eax, eax
je 0x4139c4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4139c4
test byte [ebp - 8], 1
jne 0x4139cd
or dword [ebp + 0x10], 0x200000
jmp 0x413a00
mov eax, dword [0x41e208]
cmp eax, dword [ebp - 0x18]
je 0x413a00
push eax
call esi
test eax, eax
je 0x413a00
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x413a00
mov eax, dword [0x41e20c]
cmp eax, dword [ebp - 0x18]
je 0x413a00
push eax
call esi
test eax, eax
je 0x413a00
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41e204]
call esi
test eax, eax
je 0x413a1c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x413a1e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405f63
leave
ret
Function at 0x4032f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404c18
test esi, esi
jne 0x40332e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404d08
jmp 0x40334c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031fc
mov edi, eax
test esi, esi
je 0x40334c
cmp dword [ebx], 0
je 0x40334c
dec esi
jmp 0x403335
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403380
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4ad008], 0x8088405
inc edx
mov dword [ebx + 0x4ad008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403aec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ad024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b84
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b64
xor eax, eax
push ebp
push 0x403b5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403ba0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b64
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4ad024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ad024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4049c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b104c], 0
je 0x404a25
cmp word [0x4b1220], 0xd7b2
jne 0x4049ed
cmp dword [0x4b1228], 0
jbe 0x4049ed
mov eax, 0x4b121c
call dword [0x4b1238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x404a4c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ad030], 0
jne 0x404a41
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404b9c
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 [0x4ad034], 0
je 0x404bc2
mov edx, esi
mov eax, ebx
call dword [0x4ad034]
jmp 0x404bd1
mov eax, 8
call fcn.00402f0c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404b64
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 0x4064ac
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4066dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40652f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4066dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40652f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4066f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4065b8
xor eax, eax
push ebp
push 0x4065b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004062e8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406596
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406718
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406596
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4065b8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4066d2
cmp byte [ebp - 0xd], 0
jne 0x4065ff
cmp byte [ebp - 0x12], 0
je 0x4066d2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406618
dec ebx
cmp byte [ebx], 0x2e
je 0x406627
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406617
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4066d2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406664
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4066d2
cmp byte [ebp - 0xd], 0
je 0x4066d2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4066d2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret