joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100078f0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x800
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x80c]
lea edx, [esp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x810]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
mov esi, eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
pop edi
pop esi
add esp, 0x800
ret

Function at 0x10007950
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x10016f4c
mov eax, edx
mov esi, 8
test al, 1
je 0x1000796c
shr eax, 1
xor eax, 0xedb88320
jmp 0x1000796e
shr eax, 1
dec esi
jne 0x1000795f
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x1001734c
jl 0x10007958
pop esi
ret

Function at 0x10007990
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x1001734c]
test eax, eax
jne 0x100079a8
call fcn.10007950
mov dword [0x1001734c], 1
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
test esi, esi
jbe 0x100079d8
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10016f4c]
xor eax, edx
inc ecx
dec esi
jne 0x100079b9
pop ebx
not eax
pop esi
ret

Function at 0x100079e0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x10007a67
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x10]
add esp, 4
mov ebx, eax
push ebx
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0x10016828
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10007a5e
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov ecx, 0xd
push ebx
rep movsd dword es:[edi], dword [esi]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x10007f90
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
xor eax, eax
push esi
mov esi, ecx
lea ecx, [esi + 4]
mov dword [esi], 0x100112d0
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x30], 1
mov dword [esi + 0x3c], eax
mov dword [esi + 0x28], eax
mov edx, dword [0x100173c4]
mov ecx, dword [0x100173c0]
inc edx
cmp ecx, eax
mov dword [0x100173c4], edx
jne 0x10008023
push edi
mov ecx, 0x63
lea edi, [esp + 0xa]
mov word [esp + 8], ax
rep stosd dword es:[edi], eax
lea edx, [esp + 8]
push edx
push 0x202
stosw word es:[edi], ax
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
pop edi
inc eax
mov dword [0x100173c0], eax
mov eax, esi
pop esi
add esp, 0x190
ret
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x100080c0
Capabilities:
Get system information on windows

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.IsWow64Process
push str.kernel32
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetNativeSystemInfo
push str.kernel32
mov esi, eax
call edi
push eax
call ebx
test esi, esi
mov edi, eax
mov dword [esp + 0xc], 0
je 0x1000812a
test edi, edi
je 0x1000812a
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1000812a
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x10008140
Capabilities:
Resolve dns

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebx
je 0x100081ee
cmp byte [esi], 0
je 0x100081ee
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x100081d1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0xc]
push 0
push edx
push 0
push 0
push 1
push esi
call sub.DNSAPI.dll_DnsQuery_A
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x100081aa
inc ebx
cmp ebx, 0xa
ja 0x100081aa
push 1
call edi
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1000817d
test ecx, ecx
mov eax, ecx
pop edi
je 0x100081d1
cmp word [eax + 8], 1
je 0x100081c0
mov eax, dword [eax]
test eax, eax
jne 0x100081b1
jmp 0x100081c9
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0x18]
mov dword [edx], eax
push 1
push ecx
call sub.DNSAPI.dll_DnsRecordListFree
mov eax, dword [esp + 0x18]
cmp dword [eax], 0xffffffff
jne 0x100081e2
mov dword [esp + 0xc], 0x4bc
mov eax, dword [esp + 0xc]
pop esi
pop ebx
add esp, 8
ret 8
pop esi
mov eax, 0x57
pop ebx
add esp, 8
ret 8
Function at 0x10008780
Capabilities:
Connect socket

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
xor eax, eax
xor ecx, ecx
mov word [esp + 9], ax
mov dword [esp + 0xe], ecx
mov byte [esp + 0xb], al
mov word [esp + 0xc], ax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x12], ecx
mov byte [esp + 8], 0
mov dword [esp + 0x16], ecx
test eax, eax
mov word [esp + 0x1a], cx
jne 0x100087c3
pop ebp
mov eax, 0x45a
pop ebx
add esp, 0x14
ret 0xc
mov ebx, dword [esp + 0x28]
mov dword [ebx], 0xffffffff
mov edx, dword [ebp + 0x3c]
cmp edx, dword [ebp + 0x1c]
jne 0x100087e2
pop ebp
mov eax, 0x4d6
pop ebx
add esp, 0x14
ret 0xc
mov eax, dword [esp + 0x20]
push esi
test eax, eax
push edi
je 0x10008880
cmp byte [eax], 0
je 0x10008880
cmp word [esp + 0x2c], 0
je 0x10008880
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, ebp
call fcn.10008140
mov edi, eax
test edi, edi
jne 0x100088cd
push 1
push eax
push eax
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100088be
push 1
mov ecx, ebp
call fcn.10008670
cmp eax, 0xffffffff
mov dword [ebx], eax
je 0x100088b7
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push eax
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], edx
call dword [sym.imp.WS2_32.dll_htons]
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x24]
push 0x10
push ecx
push esi
mov word [esp + 0x32], ax
call dword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x10008891
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1000889c
mov edi, 0x57
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
mov edx, dword [ebx]
push esi
push edx
mov ecx, ebp
call fcn.10008c40
mov edi, eax
test edi, edi
je 0x100088ca
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebx]
push 0
push eax
mov ecx, ebp
call fcn.10008710
jmp 0x100088c6
mov edi, 0x4d6
jmp 0x100088a2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
test edi, edi
jne 0x100088cd
inc dword [ebp + 0x3c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x10008f40
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
test eax, eax
push edi
mov esi, ecx
mov dword [esp + 0x10], 0
jne 0x1000902b
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1000902b
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov eax, dword [ebx + 0x18]
cmp ecx, eax
jae 0x10008f85
sub eax, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x1c]
add eax, ecx
mov dword [ebx + 0x1c], eax
jmp 0x10008fe0
cmp ecx, 0xfffffffe
je 0x10008fe0
mov eax, dword [esi + 0x18]
lea edi, [ebp + ebp*4]
shl edi, 4
lea ecx, [edi + eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x18]
mov eax, dword [ebx + 0x24]
mov dword [edi + edx + 0x1c], eax
mov ecx, dword [ebx + 0x1c]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esi + 0x18]
add esp, 8
lea eax, [edi + edx]
mov edx, dword [eax + 0x1c]
test edx, edx
lea ecx, [eax + 0x1c]
jne 0x10008fce
mov dword [eax + 0x20], ecx
mov eax, dword [esi + 0x18]
add edi, eax
mov ebx, dword [edi + 0x1c]
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x10009021
mov eax, dword [esi + 0x18]
lea edx, [ebp + ebp*4]
push 0
push ebx
lea ecx, [esp + 0x18]
push 0
shl edx, 4
push ecx
add ebx, 0x18
mov ecx, dword [edx + eax]
push 1
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x10009021
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
mov dword [esp + 0x24], eax
je 0x10009021
push eax
jmp 0x10009030
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x10
mov ebp, dword [esp + 0x18]
push eax
push ebp
mov ecx, esi
call fcn.100088e0
mov edx, dword [esi + 0x18]
lea ebx, [ebp + ebp*4]
shl ebx, 4
lea eax, [ebx + edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x18]
mov edi, dword [ebx + ecx + 0x1c]
lea eax, [ebx + ecx + 0x1c]
test edi, edi
je 0x10009089
mov edx, dword [edi + 0x24]
mov dword [eax], edx
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10009071
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 0x18]
add esp, 4
mov edi, dword [ebx + eax + 0x1c]
lea eax, [ebx + eax + 0x1c]
test edi, edi
jne 0x1000905c
mov ecx, dword [esi + 0x18]
lea edx, [ebx + ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x14]
push 0
push 0xfffffffffffffffd
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x100090c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ecx
xor ecx, ecx
push edi
cmp eax, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
jne 0x100091b9
cmp dword [esp + 0x20], ecx
je 0x100091b9
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi + 0x18]
lea edi, [ebp + ebp*4]
shl edi, 4
add eax, edi
cmp dword [eax], 0xffffffff
je 0x100091d6
add eax, 0x24
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x24]
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov edx, ebx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
push ecx
push eax
mov dword [edx + 0x10], ecx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
add eax, 0x18
push 1
push eax
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + edi]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x1000917f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
mov dword [esp + 0x28], eax
je 0x1000917f
mov edx, dword [esi + 0x18]
lea eax, [edx + edi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
push ecx
jmp 0x100091ce
mov edx, dword [ebx + 0x14]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
mov ecx, esi
call fcn.10009240
mov ebx, eax
test ebx, ebx
je 0x1000919f
push ebx
push ebp
mov ecx, esi
call fcn.100088e0
mov ecx, dword [esi + 0x18]
lea edx, [ecx + edi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret 0x10
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esi + 0x18]
lea edi, [ebp + ebp*4]
shl edi, 4
cmp dword [ecx + edi], 0xffffffff
je 0x100091d6
push eax
push ebp
mov ecx, esi
call fcn.100088e0
mov edx, dword [esi + 0x18]
lea eax, [edx + edi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x24]
mov edx, dword [ecx + 0x14]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebx + 0x24]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [ebx + 0x14]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esi + 0x18]
add esp, 0x10
lea eax, [edx + edi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x14]
push 0
push 0xfffffffffffffffd
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x10
Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.00401b4b
lea eax, [ebp - 0x404]
push eax
call fcn.00401b4b
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x16a59f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.FKP1
lea edi, [esi - 0x1272000]
push edi
or ebp, 0xffffffff
jmp 0x16a5a12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a5a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a08
mov eax, 1
add ebx, ebx
jne 0x16a5a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a5a3c
jne 0x16a5a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a5b
dec eax
add ebx, ebx
jne 0x16a5a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a5a20
add ebx, ebx
jne 0x16a5a57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x16a5aad
xor ecx, ecx
sub eax, 3
jb 0x16a5a73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a5ae2
sar eax, 1
mov ebp, eax
jmp 0x16a5a7e
add ebx, ebx
jne 0x16a5a7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
inc ecx
add ebx, ebx
jne 0x16a5a8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
add ebx, ebx
jne 0x16a5a99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a5a8e
jne 0x16a5aaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a5a8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x16a5acc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a5abe
jmp 0x16a5a0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a5acc
add edi, ecx
jmp 0x16a5a0e
pop esi
mov edi, esi
mov ecx, 0x34f3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a5aea
cmp byte [edi], 0x16
jne 0x16a5aea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x16a5aef
lea edi, [esi + 0x12a2000]
mov eax, dword [edi]
or eax, eax
je 0x16a5b5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a67a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a6890]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a5b1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a6894]
or eax, eax
je 0x16a5b58
mov dword [ebx], eax
add ebx, 4
jmp 0x16a5b39
call dword [esi + 0x12a68a4]
mov ebp, dword [esi + 0x12a6898]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x16a5b92
sub esp, 0xffffff80
jmp 0x46c1ac
Function at 0x401e30
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x419eb5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push esi
push edi
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edx, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
and edx, 0xffff
push eax
push 0x59
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, dword [0x4215e8]
mov dword [esp + 8], ecx
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
mov edi, 1
push 0x421374
push eax
mov dword [esp + 0x128], edi
call fcn.00411184
add esp, 0xc
lea ecx, [esp + 8]
call fcn.00412592
mov esi, dword [esp + 0x124]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00411e51
mov dword [esp + 0xc], edi
lea ecx, [esp + 8]
mov byte [esp + 0x11c], 0
call fcn.004120dc
mov ecx, dword [esp + 0x114]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret

Function at 0x401f10
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x419ee5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [esp + 0x20]
xor eax, eax
and esi, 0xffff
push ecx
mov dword [esp + 0x19], eax
push 0x59
push esi
mov byte [esp + 0x20], bl
mov byte [esp + 0x25], al
call edi
lea edx, [esp + 0x10]
push 6
push edx
push 0x5a
push esi
call edi
mov eax, dword [0x4215e8]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x14]
mov edi, 1
push str._s_s
push eax
mov dword [esp + 0x138], edi
call fcn.00411184
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.00412592
mov esi, dword [esp + 0x130]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00411e51
mov dword [esp + 0x18], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x128], bl
call fcn.004120dc
mov ecx, dword [esp + 0x120]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret

Function at 0x4024f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x419fb5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
mov dword [esp + 0xc], 0
call fcn.00402590
add esp, 4
mov edx, dword [esp + 4]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x4213a4
push edx
mov dword [esp + 0x128], 1
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0041214a
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x118], 0
call fcn.004120dc
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x402590
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push esi
push eax
push 0x104
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x110]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0041214a
mov eax, esi
pop esi
add esp, 0x108
ret

Function at 0x4026e0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41a02f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x4215e8]
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x28]
lea edx, [esp + 8]
push ecx
push 0x4213bc
push edx
mov dword [esp + 0x28], 1
call fcn.00411184
mov eax, dword [0x4215e8]
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
push ecx
call fcn.00403a60
add esp, 0x10
mov eax, dword [eax]
mov ecx, dword [esp + 8]
push eax
mov esi, ecx
mov edi, ecx
push 0x100
push 0x100
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 3
call fcn.004124c0
push eax
push esi
push edi
push str.UpgradeExe
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call fcn.004120dc
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.0041250f
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00411e51
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 1
call fcn.004120dc
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call fcn.004120dc
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x402890
Capabilities:
Access peb ldr_data
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41a090
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
lea eax, [esp + 8]
push edi
mov edi, ecx
push eax
call fcn.004024f0
add esp, 4
lea ecx, [esp + 0xc]
push str..rar
lea edx, [esp + 0x1c]
xor ebx, ebx
push ecx
push edx
mov dword [esp + 0x38], ebx
call fcn.00412325
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.004121c9
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.004120dc
lea eax, [esp + 0x18]
push eax
call fcn.00401f10
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
push ecx
push eax
mov ecx, edi
call fcn.00402d60
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x2c], bl
call fcn.004120dc
cmp esi, ebx
jne 0x4029b4
lea edx, [esp + 0x18]
push edx
call fcn.00401e30
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 3
push ecx
push eax
mov ecx, edi
call fcn.00402d60
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x2c], bl
call fcn.004120dc
cmp esi, ebx
jne 0x4029b4
push 0x424d3c
lea ecx, [esp + 0x1c]
call fcn.0041214a
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x34], 4
call fcn.00402d60
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x2c], bl
call fcn.004120dc
cmp esi, ebx
jne 0x4029b4
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004120dc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
lea ecx, [esp + 0x18]
push ecx
call fcn.004025d0
add esp, 4
push str.update_
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x38], 5
call fcn.00412325
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 7
call fcn.004120dc
mov eax, dword [esp + 0x14]
push eax
call fcn.004023b0
lea ecx, [esp + 0x24]
push ecx
call fcn.004025d0
add esp, 8
push str.ResourceUnPack.exe
lea edx, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x38], 8
call fcn.00412325
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 0xa
call fcn.004120dc
mov eax, dword [0x4215e8]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push ecx
push edx
lea eax, [esp + 0x18]
push str.x__o__y___s____s_
push eax
mov byte [esp + 0x3c], 0xb
call fcn.00411184
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
add esp, 0x10
push ebx
push ebx
push ecx
push edx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0xa
call fcn.004120dc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 7
call fcn.004120dc
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.004120dc
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004120dc
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret