joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005ec91
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1005ec0d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1005ee00
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1005ee00
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1005edb5
jg 0x1005eced
test eax, eax
je 0x1005edab
push 1
push 0x1000
call fcn.1004d982
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1005ed10
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1005eda2
push 0x8000
push ebx
call fcn.1005eb3e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1005ed39
jg 0x1005ed34
cmp ecx, 0x1000
jb 0x1005ed39
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10051570
add esp, 0x10
cmp eax, 0xffffffff
je 0x1005ed7e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1005ed34
jl 0x1005ed65
test ecx, ecx
jne 0x1005ed26
push dword [ebp - 0xc]
push ebx
call fcn.1005eb3e
push esi
call fcn.1004d9df
add esp, 0xc
xor ebx, ebx
jmp 0x1005ee0e
cmp byte [edi + 0x24], 0
je 0x1005ed95
cmp dword [edi + 0x20], 5
jne 0x1005ed95
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1005eda0
mov ebx, dword [edi + 0x18]
jmp 0x1005eda2
xor ebx, ebx
push esi
call fcn.1004d9df
pop ecx
jmp 0x1005ee0e
test ecx, ecx
jg 0x1005ed77
jl 0x1005edb5
test eax, eax
jae 0x1005ed77
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10054d03
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1005edd5
cmp byte [edi + 0x1c], 0
je 0x1005ed77
jmp 0x1005ee06
push ebx
call fcn.1005bb6c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1005ed77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1005ee0e
cmp byte [edi + 0x1c], 0
je 0x1005ee0b
mov ebx, dword [edi + 0x18]
jmp 0x1005ee0e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10054d03
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10060420
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1006044d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006044d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41e146
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebp
mov ebp, ecx
push 0
push 0
mov dword [esp + 0x14], ebp
call fcn.00405f10
lea eax, [esp + 8]
mov dword [esp + 0x11c], 0
push eax
push 0x1a
push 0
mov dword [ebp], 0x420418
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4010e2
lea ecx, [esp + 4]
mov byte [esp + 0x11c], 1
push ecx
mov dword [esp + 8], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4010a1
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebp + 0x34]
call fcn.00413b00
mov dx, word [ebp + 0x18]
and edx, 0xfffe
xor edx, 1
mov word [ebp + 0x18], dx
mov eax, dword [esp + 4]
test eax, eax
je 0x4010b8
mov edx, dword [esp + 8]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 4]
test eax, eax
mov byte [esp + 0x11c], 0
je 0x4010ca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x4010fe
cmp byte [esp + eax + 0xf], 0x5c
jne 0x4010fe
dec eax
push esi
push edi
lea edx, [esp + eax + 0x18]
mov edi, str.Application_Data
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [ebp + 0x34]
call fcn.00413b00
mov dx, word [ebp + 0x18]
mov ecx, dword [esp + 0x11c]
and edx, 0xfffe
pop edi
xor edx, 1
mov eax, ebp
mov word [ebp + 0x18], dx
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x4018d0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
mov dword [esp + 4], eax
mov esi, ecx
mov dword [esp + 8], eax
mov word [esp + 4], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x401925
push eax
call sub.WSOCK32.dll_htonl
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], eax
push ecx
call sub.WSOCK32.dll_htons
lea edx, [esp + 4]
push 0x10
push edx
mov ecx, esi
mov word [esp + 0xe], ax
call fcn.00402600
pop esi
add esp, 0x10
ret 8
push eax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x4018fd
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x401980
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
mov edi, ecx
push esi
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4019c8
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4019ed
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
push ecx
call sub.WSOCK32.dll_htons
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
mov word [esp + 0x12], ax
call fcn.00402620
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x402570
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call sub.WSOCK32.dll_setsockopt
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 0x10
Function at 0x405f10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41e3aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
push ebp
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.00413530
lea ecx, [esi + 0x1c]
mov dword [esp + 0x194], 0
call fcn.00413530
lea ecx, [esi + 0x34]
mov byte [esp + 0x194], 1
call fcn.00413530
lea ecx, [esi + 0x4c]
mov byte [esp + 0x194], 2
call fcn.00413530
lea ecx, [esi + 0x64]
mov byte [esp + 0x194], 3
call fcn.00413530
mov ecx, esi
mov byte [esp + 0x194], 4
mov dword [esi], 0x4207f8
call fcn.00405eb0
mov ebp, dword [esp + 0x19c]
test ebp, ebp
jbe 0x406101
cmp ebp, 4
ja 0x406101
mov al, byte [0x428ff8]
push edi
mov byte [esp + 0x8c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x8d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 1]
xor edi, edi
cmp eax, 3
ja case.default.0x405fd6
jmp dword [eax*4 + 0x40611c]
lea ecx, [esp + 0x8c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, eax
jmp case.default.0x405fd6
lea edx, [esp + 0x8c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
jmp case.default.0x405fd6
lea eax, [esp + 0x8c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
jmp case.default.0x405fd6
mov edi, dword [esp + 0x1a4]
test edi, edi
jne 0x40603b
mov edi, 0x4259b0
push 0
push 2
lea ecx, [esp + 0x18]
call fcn.00405f10
lea ecx, [esp + 0x8c]
mov byte [esp + 0x198], 5
push ecx
push 0
push edi
mov ecx, eax
call fcn.004063a0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edi, eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x198], 9
call fcn.004138f0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x198], 8
call fcn.004138f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x198], 7
call fcn.004138f0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x198], 6
call fcn.004138f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x198], 4
call fcn.004138f0
lea edx, [esp + 0x8c]
push edx
call fcn.004176e1
add esp, 4
cmp ebp, 3
ja 0x4060e6
lea eax, [esp + 0x8c]
push edi
push eax
call fcn.00405ee0
add esp, 8
lea ecx, [esp + 0x8c]
push ecx
mov ecx, esi
call fcn.00413b00
mov ecx, esi
call fcn.00406180
mov eax, esi
pop edi
jmp 0x406103
mov eax, esi
mov ecx, dword [esp + 0x18c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x190
ret 8
Function at 0x407170
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41e585
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x420820
lea edi, [esi + 0x4c]
mov dword [esp + 0x14], 5
mov ecx, edi
call fcn.00413a00
test eax, eax
jne 0x4071bd
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x4071b6
mov eax, 0x4207f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x164]
mov byte [esp + 0x14], 4
call fcn.004138f0
lea ecx, [esi + 0x64]
mov byte [esp + 0x14], 3
call fcn.004148f0
mov ecx, edi
mov byte [esp + 0x14], 2
call fcn.004138f0
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 1
call fcn.004138f0
lea ecx, [esi + 0x1c]
mov byte [esp + 0x14], 0
call fcn.004138f0
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004138f0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40fae0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41eed5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
mov dword [ebp + 4], esi
mov dword [esp + 0x1c], ebp
mov dword [ebp + 0x18], esi
lea ecx, [ebp + 0x1c]
mov dword [esp + 0x144], esi
call fcn.0040f730
lea ecx, [ebp + 0xe4]
mov byte [esp + 0x144], 1
call fcn.0040e4b0
lea ecx, [ebp + 0xfc]
mov byte [esp + 0x144], 2
call fcn.00413530
lea ebx, [ebp + 0x114]
mov byte [esp + 0x144], 3
mov ecx, ebx
call fcn.00413530
lea ecx, [ebp + 0x12c]
mov byte [esp + 0x144], 4
call fcn.00413530
lea ecx, [ebp + 0x144]
mov byte [esp + 0x144], 5
call fcn.00413530
lea ecx, [ebp + 0x164]
mov byte [esp + 0x144], 6
call fcn.00413530
mov dword [ebp + 0x15c], 0x4207f4
mov word [ebp + 0x160], si
push str.WIL.P3DSetup.DevList
mov byte [esp + 0x148], 7
mov dword [ebp], 0x420c84
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x429044], eax
push str...dev
mov ecx, ebx
mov dword [ebp + 0xf8], 1
call fcn.00413b00
mov edi, 0x4259b4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x144], 8
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
push 0xf003f
push esi
push str.SoftwareWordcraft_International_LtdToshiba_GDIInstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], esi
call edi
cmp eax, esi
jne 0x40fc31
mov edi, dword [esp + 0x10]
jmp 0x40fc58
lea edx, [esp + 0x10]
mov dword [esp + 0x10], esi
push edx
push 0xf003f
push esi
push str.SoftwareWordcraft_International_LtdLenovo_GDIInstall
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp eax, esi
jne 0x40fcd5
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push esi
push str.Path
push edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x38]
lea esi, [ebp + 0x12c]
push eax
mov ecx, esi
call fcn.00413b00
push str..dev
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.00413fc0
add esp, 0xc
push eax
mov ecx, ebx
mov byte [esp + 0x148], 9
call fcn.00413a20
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 8
call fcn.004138f0
test edi, edi
je 0x40fcd5
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x13c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret
Function at 0x410e80
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x138
push ebx
mov ebx, dword [esp + 0x140]
push ebp
push esi
push edi
mov esi, ecx
lea ebp, [ebx + 0x1c]
push 0x4259d0
mov ecx, ebp
call fcn.00414210
test eax, eax
jne 0x410eee
mov ecx, ebx
call fcn.00407cb0
test eax, eax
je 0x410ebf
push 0x425a54
mov ecx, ebp
call fcn.00413b00
jmp 0x410eee
push str.127.0.0.1
mov ecx, ebx
call fcn.00407d40
test eax, eax
jne 0x410eee
mov eax, dword [esi + 0x134]
test eax, eax
jne 0x410ede
mov eax, 0x4207f0
push eax
mov eax, dword [esi + 4]
push eax
mov ecx, ebx
call fcn.004079a0
test eax, eax
jne 0x410f41
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x14c]
test eax, eax
jne 0x410f09
mov eax, 0x4207f0
lea edx, [esi + 0x15c]
push eax
push edx
mov ecx, ebx
call fcn.00407230
mov edi, eax
test edi, edi
je 0x410fbc
jge 0x410f38
push 0x4259d0
mov ecx, ebp
call fcn.00414210
test eax, eax
jne 0x410fbc
test edi, edi
jg 0x410f9f
jmp 0x410e96
lea ecx, [esp + 0x10]
push 2
push ecx
xor ecx, ecx
test eax, eax
setl cl
lea edx, [esp + 0x24]
push 0x12c
add ecx, 0x32
push edx
push ecx
lea ecx, [esi + 0x15c]
mov word [esp + 0x2a], 1
mov dword [esp + 0x2c], eax
call fcn.00405e50
mov eax, dword [esi + 4]
push 0
lea edx, [esp + 0x20]
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esi + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret 4
mov edx, dword [esi + 4]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret 4
mov eax, dword [esi + 4]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret 4
Function at 0x411030
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41f024
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x11c]
xor edi, edi
cmp eax, edi
mov esi, 0x4207f0
je 0x411063
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.00413530
lea ecx, [esp + 0x2c]
mov dword [esp + 0xfc], edi
call fcn.00413530
lea ecx, [esp + 0x44]
mov byte [esp + 0xfc], 1
call fcn.00413530
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc], 2
call fcn.00413530
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 3
call fcn.00413530
push esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x100], 4
mov dword [esp + 0x14], 0x4207f8
call fcn.00406150
mov eax, dword [esp + 0x104]
lea ecx, [esp + 0x5c]
push eax
mov dword [esp + 0x100], 5
call fcn.00413b00
mov ecx, dword [esp + 0x28]
push edi
and ecx, 0xfffe
xor ecx, 1
mov word [esp + 0x2c], cx
lea ecx, [esp + 0x78]
call fcn.00413b00
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
and edx, 0xfffe
xor edx, 1
mov word [esp + 0x28], dx
call fcn.00406210
lea ecx, [esp + 0x10]
call fcn.004063a0
push eax
lea eax, [esp + 0xa8]
push 0x50
push eax
push 0x428ff8
push 0x425dac
push 0x425da8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4111f0
lea ecx, [esp + 0xa4]
push 0x425da4
push ecx
call fcn.0041da80
add esp, 8
test eax, eax
jne 0x4111f0
push 0x17c
call fcn.00417373
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov byte [esp + 0xfc], 6
je 0x411192
mov ecx, eax
call fcn.00407030
mov esi, eax
jmp 0x411194
xor esi, esi
push 0x4259d0
lea ecx, [esi + 0x1c]
mov byte [esp + 0x100], 5
mov edi, esi
call fcn.00413b00
add ebp, 0xfc
lea ecx, [esi + 4]
push ebp
call fcn.00413a20
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x10]
push edx
call fcn.004063c0
push eax
lea ecx, [esi + 0x34]
mov byte [esp + 0x100], 7
call fcn.00413a20
lea ecx, [esp + 0x8c]
mov byte [esp + 0xfc], 5
call fcn.004138f0
lea ecx, [esp + 0x74]
mov dword [esp + 0xfc], 0xb
call fcn.004138f0
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc], 0xa
call fcn.004138f0
lea ecx, [esp + 0x44]
mov byte [esp + 0xfc], 9
call fcn.004138f0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xfc], 8
call fcn.004138f0
lea ecx, [esp + 0x10]
mov dword [esp + 0xfc], 0xffffffff
call fcn.004138f0
mov ecx, dword [esp + 0xf4]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xf4
ret 4
Function at 0x4148f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41f1fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x420c98
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x14], 5
test ecx, ecx
je 0x414952
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x414946
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x41493c
mov eax, 0x4207f0
push eax
push ecx
lea ecx, [esi + 0x28]
call fcn.00416260
mov eax, dword [esi + 0x78]
lea ecx, [esi + 0x28]
push eax
call fcn.004161d0
lea edi, [esi + 0xc8]
mov ecx, edi
call fcn.00413a00
test eax, eax
jne 0x414979
mov eax, dword [esi + 0xd0]
test eax, eax
jne 0x414972
mov eax, 0x4207f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0xe0]
mov byte [esp + 0x14], 4
call fcn.004138f0
mov ecx, edi
mov byte [esp + 0x14], 3
call fcn.004138f0
lea ecx, [esi + 0xa4]
mov byte [esp + 0x14], 2
call fcn.004138f0
lea ecx, [esi + 0x84]
mov byte [esp + 0x14], 1
call fcn.004138f0
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 0
call fcn.00416150
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402fb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x473020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403050
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403030
xor eax, eax
push ebp
push 0x403029
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 0x40306c
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 0x403030
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x473020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x473020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d14
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x476048], 0
je 0x403d75
cmp word [0x47621c], 0xd7b2
jne 0x403d3d
cmp dword [0x476224], 0
jbe 0x403d3d
mov eax, 0x476218
call dword [0x476234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47306c
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 0x403d9c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x473030], 0
jne 0x403d91
push 0
push 0x473064
push 0x47306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405a18
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405a7e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404100
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b7c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a68
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a85
lea eax, [ebp - 0x10]
call fcn.00403e90
ret

Function at 0x40ac18
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ac51
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f80
jmp 0x40ac5a
mov eax, ebx
mov edx, esi
call fcn.00403ee4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ac64
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ac85
mov al, byte [esp]
jmp 0x40ac87
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b30c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b184
mov eax, dword [0x475124]
cmp byte [eax], 0
je 0x40b388
mov eax, dword [0x474e7c]
call fcn.004029e8
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408378
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b3d0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b3be
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x474e0c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x476664]
call fcn.00404f2c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret