joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10020e50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREIBMThinkPadSoftwareInstaller
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10020ec9
lea ecx, [esp + 8]
lea edx, [esp]
push ecx
push 0x1004cd10
push edx
push eax
mov eax, dword [esp + 0x14]
push str.Internet.AttachQueryValue
push eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10020ebe
cmp dword [esp], 1
je 0x10020ebe
push edi
mov ecx, 0x41
xor eax, eax
mov edi, 0x1004cd10
rep stosd dword es:[edi], eax
pop edi
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret
Function at 0x10021650
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x1000
push 0x42
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push 0
lea eax, [esp + 0x18]
push 0
push eax
push edi
call ebx
test eax, eax
jne 0x100216c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10021785
xor esi, esi
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
push edi
call ebx
test eax, eax
jne 0x100216ba
inc esi
cmp esi, 0x7d0
jae 0x10021785
jmp 0x1002169b
cmp esi, 0x7d0
jae 0x10021785
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ebp
lea esi, [edx + eax]
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x100216e8
push 0x42
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov esi, eax
add esi, ecx
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
test edi, edi
jne 0x10021750
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10021750
xor ebx, ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push ecx
push esi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10021743
inc ebx
cmp ebx, 0x7d0
jb 0x1002171e
jmp 0x10021750
cmp ebx, 0x7d0
jae 0x10021750
mov edi, 1
push ebp
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
add edx, eax
test edi, edi
mov dword [esp + 0x10], edx
je 0x10021785
test eax, eax
jne 0x1002166e
test edi, edi
je 0x10021785
mov eax, edx
test eax, eax
je 0x10021785
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x10029d60
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x120]
mov ecx, dword [esp + 0x128]
stosw word es:[edi], ax
mov ebx, dword [esp + 0x124]
mov ebp, dword [esp + 0x118]
stosb byte es:[edi], al
mov eax, dword [esi + 4]
mov edi, dword [esi + 8]
push ecx
push ebx
lea eax, [eax + eax*2]
push esi
add eax, edi
mov edi, dword [esp + 0x128]
push edi
push ebp
call dword [eax*4 + 0x10049a5c]
add esp, 0x14
test eax, eax
je case.default.0x10029de0
mov eax, 0x51eb851f
imul ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
lea eax, [edx + eax - 1]
cmp eax, 3
ja case.default.0x10029de0
jmp dword [eax*4 + 0x10029f30]
cmp ebx, 0x96
jne 0x10029e58
cmp dword [edi], 0
jne 0x10029e58
mov ecx, dword [ebp]
push 0
push 0
push ecx
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x10029e58
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._accept_failed._err_i
jmp 0x10029f1a
mov eax, dword [esi + 4]
test eax, eax
jne 0x10029e37
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x10029e37
cmp ebx, 0xdc
jne 0x10029ecb
jmp 0x10029e42
inc eax
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
mov ebx, dword [esi + 8]
lea edx, [eax + eax*2]
add edx, ebx
mov eax, dword [edx*4 + 0x10049a5c]
test eax, eax
jne 0x10029e88
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 8], eax
mov ecx, eax
mov eax, dword [esi + 4]
lea edx, [ecx + eax*2]
add eax, edx
mov eax, dword [eax*4 + 0x10049a5c]
test eax, eax
je case.default.0x10029de0
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
push edi
push ebp
call eax
add esp, 0x14
test eax, eax
jne 0x10029ecb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
lea edx, [eax + eax*2]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push edi
push ebp
call dword [edx*4 + 0x10049a5c]
add esp, 0x14
test eax, eax
je case.default.0x10029de0
mov al, byte [esp + 0x10]
test al, al
je 0x10029e58
lea ecx, [esp + 0x10]
push ecx
push 0x10049acc
call fcn.10001000
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 4]
push 0
not ecx
dec ecx
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10029e58
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._send_failed._err___i
call fcn.10001000
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
Function at 0x1002a200
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 0xc]
cmp eax, 5
ja case.0x1002a209.2
jmp dword [eax*4 + 0x1002a278]
mov eax, 4
jmp 0x1002a223
mov eax, 2
jmp 0x1002a223
mov eax, 3
push esi
push 0
push 0
push eax
mov eax, dword [esp + 0x14]
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1002a255
push str._Fail_to_create_a_file.
call fcn.10001000
add esp, 4
or eax, esi
pop esi
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0xc]
push 2
push 0
push 0
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
pop esi
ret

Function at 0x1002a290
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push esi
xor eax, eax
mov esi, dword [esp + 0x10]
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
push edx
push 1
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x1002a2eb
call edi
cmp eax, 0x3e5
je 0x1002a2eb
push str._WSARecv:_SOCKET_ERROR
call fcn.10001000
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x18]
push 0x30
push ecx
push esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x1002a311
call edi
push eax
push str._WSAEventSelect_Fail._Err___i
call fcn.10001000
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
add esp, 8
ret
Function at 0x1002a930
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ebp, ebp
mov ecx, dword [eax + 8]
push esi
cmp ecx, 1
push edi
mov dword [esp + 0x10], ebp
jne 0x1002a952
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + 4]
jmp 0x1002a959
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 8]
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
lea ebx, [esi + 0x2c]
push ebp
push ecx
push ebx
push edi
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x1002a99d
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._WSAGetOverlappedResult_err___i_Transfered__i_bytes.
call fcn.10001000
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0x1002aa01
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push ecx
push edx
push str._Transfer_finishied._Tansfered__i_bytes.
call fcn.10001000
add esp, 0xc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x20]
mov eax, 1
cmp dword [ecx + 8], eax
jne 0x1002a9e8
mov edx, dword [esp + 0x1c]
pop edi
mov dword [edx + 4], 0xffffffff
mov dword [esi], 3
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [ecx + 8], 0xffffffff
mov dword [esi], 3
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x24]
push ebp
push edx
push eax
mov eax, dword [esi + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x10]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax]
add ecx, edx
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], eax
je 0x1002aa37
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [esi + 0x18]
push ebp
add edx, eax
lea eax, [esp + 0x18]
mov dword [esi + 0x18], edx
mov ecx, dword [esi + 0x1c]
adc ecx, ebp
push ebx
mov dword [esi + 0x1c], ecx
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esi + 0x24]
push 1
push edx
push edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x1002aa9a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1002aa9a
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push ecx
push edx
push eax
push str._Transfer_aborted._Err___i_Transfered__i_bytes.
call fcn.10001000
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x1002aea0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x5c
push ebx
push esi
push edi
push str._Send_redirect_request_to_the_socks_server
call fcn.10001000
mov edx, dword [esp + 0x76]
mov ebx, dword [esp + 0x78]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x10], 4
mov byte [esp + 0x11], 1
mov word [esp + 0x12], dx
mov dword [esp + 0x14], ebx
and edx, 0xffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
add esi, 9
push esi
push ebx
push edx
push 1
push 4
push str._Request_packet:_Ver_i__Cmd_i__Port_i__Address_u__size_i
call fcn.10001000
push str._Sending_...
call fcn.10001000
mov ecx, dword [esp + 0x8c]
add esp, 0x20
lea eax, [esp + 0xc]
push 0
push esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
pop ebx
add esp, 0x5c
ret

Function at 0x1002af20
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
lea eax, [esp]
push esi
push 0
push 8
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
mov al, byte [esp + 5]
cmp esi, 0xffffffff
je 0x1002af65
cmp al, 0x5a
jne 0x1002af65
push str._Accepted_reply_from_socks_server.
call fcn.10001000
push str._All_transactions_are_redirected
call fcn.10001000
add esp, 8
mov eax, esi
pop esi
add esp, 8
ret
mov edx, dword [esp + 8]
mov ecx, dword [esp + 6]
push edx
and ecx, 0xffff
movsx edx, al
push ecx
push edx
push esi
push str.nRet__i__Result_i__Port_i__Addr_i
call fcn.10001000
add esp, 0x14
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x1002bd30
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x10
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov dword [esi], eax
lea eax, [esp + 0xc]
mov dword [esi + 4], ecx
push eax
push 0
push esi
push 0x1002bd00
push 0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 0
push 0
mov dword [edx], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x1002bdac
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x28]
push 0x2efd
mov dword [ecx], 0x2efd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x20]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edx
push edi
call ebp
test eax, eax
je 0x1002bde4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0xffffffffffffffff
push edi
call ebp
mov eax, dword [esp + 0x2c]
push 0x2efe
mov dword [eax], 0x2efe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1002be3d
mov ebp, dword [esp + 0x2c]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [ecx], eax
mov eax, dword [ebp]
jne 0x1002be36
cmp eax, 0x2ee0
jb 0x1002be11
cmp eax, 0x2f8e
ja 0x1002be11
push eax
jmp 0x1002be1d
mov dword [ebp], 0x2efd
push 0x2efd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp]
push edx
push str._SOAP_Connection_fail_:_Err___d
call fcn.10001000
add esp, 8
jmp 0x1002be3d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop ebp
test ebx, ebx
pop edi
pop esi
setne al
pop ebx
pop ecx
ret
Function at 0x1002dd90
Capabilities:
Get file version info

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
cmp eax, 0x18
push edi
mov dword [esp + 8], 0
jae 0x1002ddaa
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edi, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x18], eax
je 0x1002de05
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1002de05
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1002ddfe
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x1004a8b0
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x1002de0b
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
mov edx, eax
and edx, 0xffff
shr eax, 0x10
push edx
push eax
mov eax, ecx
and eax, 0xffff
shr ecx, 0x10
push eax
push ecx
mov ecx, dword [esp + 0x24]
push str._d._d._d._d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x1002de60
Capabilities:
Get file version info

Disassembly:
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
mov esi, dword [esp + 0x130]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x10], eax
je 0x1002e01d
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1002e01d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalSize]
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1002e01d
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1002e01d
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, 0xfffffffc
jbe 0x1002df59
mov edi, dword [esp + 0x134]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x18]
xor ecx, ecx
xor edx, edx
push edi
mov cx, word [eax + esi*4 + 2]
mov dx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x34]
push str.StringFileInfo_04x_04x_s
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push ecx
push edx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x1002df55
mov eax, dword [esp + 0x10]
inc esi
mov ecx, eax
shr ecx, 2
cmp esi, ecx
jb 0x1002df09
jmp 0x1002df59
mov eax, dword [esp + 0x10]
shr eax, 2
cmp esi, eax
sbb edx, edx
neg edx
mov dword [esp + 0x24], edx
je 0x1002e01d
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
dec esi
je 0x1002dfc6
mov edi, dword [sym.imp.MSVCRT.dll__isctype]
mov eax, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [eax], 1
jle 0x1002dfa4
xor ecx, ecx
push 8
mov cl, byte [esi + edx]
push ecx
call edi
mov edx, dword [esp + 0x1c]
add esp, 8
jmp 0x1002dfb7
mov ecx, dword [sym.imp.MSVCRT.dll__pctype]
xor eax, eax
mov al, byte [esi + edx]
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
je 0x1002dfc6
mov byte [esi + edx], 0
mov edx, dword [esp + 0x14]
dec esi
jne 0x1002df87
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x13c]
not ecx
cmp ecx, eax
jae 0x1002e01d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov ebp, 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x138]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x1002e010
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
xor ebp, ebp
jmp 0x1002e005
Function at 0x1002e7d0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xc
xor eax, eax
push ebx
mov dword [esp + 5], eax
push ebp
push esi
mov dword [esp + 0x11], eax
push edi
mov byte [esp + 0x10], 0
mov byte [esp + 0x19], al
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov esi, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1002e803
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1002e803
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [esp + 0x10]
push 0xa
push ecx
push 0x59
push esi
call ebx
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov dx, word [0x1004abd0]
repne scasb al, byte es:[edi]
or ecx, 0xffffffff
mov word [edi - 1], dx
lea edi, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0xa
sub eax, ecx
lea edi, [esp + 0x10]
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [esp + ecx + 0x14]
push ecx
push 0x5a
push esi
call ebx
xor ebp, ebp
mov edi, 0x1004aa10
mov esi, dword [edi]
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x1002e88c
test cl, cl
je 0x1002e888
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x1002e88c
add eax, 2
add esi, 2
test cl, cl
jne 0x1002e864
xor eax, eax
jmp 0x1002e891
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1002e8e9
add edi, 8
inc ebp
cmp edi, 0x1004aae8
jl 0x1002e85e
lea eax, [esp + 0x10]
push 0x2d
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov byte [eax], 0
xor ebp, ebp
mov edi, 0x1004aa10
mov esi, dword [edi]
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x1002e8fd
test cl, cl
je 0x1002e8e5
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x1002e8fd
add eax, 2
add esi, 2
test cl, cl
jne 0x1002e8c1
xor eax, eax
jmp 0x1002e902
cmp ebp, 0x1b
jae 0x1002e8a1
mov eax, dword [ebp*8 + 0x1004aa14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1002e91f
add edi, 8
inc ebp
cmp edi, 0x1004aae8
jl 0x1002e8bb
pop edi
pop esi
pop ebp
mov eax, 0x1004abd4
pop ebx
add esp, 0xc
ret
cmp ebp, 0x1b
jae 0x1002e912
mov eax, dword [ebp*8 + 0x1004aa14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x100319c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ebx
lea eax, [esp + 8]
push esi
push eax
xor ebx, ebx
push 0x20019
push ebx
push ecx
push edx
mov esi, 1
call fcn.1002dd50
add esp, 0x14
test eax, eax
je 0x100319ef
pop esi
xor eax, eax
pop ebx
ret
push edi
mov edi, dword [esp + 0x1c]
cmp edi, ebx
je 0x10031af5
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ebx
push ecx
push ebx
push ebp
push edx
mov dword [esp + 0x30], ebx
call esi
test eax, eax
jne 0x10031a30
cmp edi, dword [esp + 0x20]
jne 0x10031a30
mov eax, 1
jmp 0x10031a32
xor eax, eax
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
test ecx, ecx
mov ecx, dword [esp + 0x18]
je 0x10031a83
test eax, eax
je 0x10031a4a
cmp edi, ecx
je 0x10031a87
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop ebp
test ecx, ecx
jne 0x10031ab6
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x10031acf
test eax, eax
je 0x10031ae8
mov esi, dword [esp + 0x20]
mov ecx, edi
mov edi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10031a78
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10031ae8
mov esi, 1
jmp 0x10031aea
test eax, eax
je 0x10031a4a
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x10031a4a
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ebx
push ecx
push 0
push ebp
push edx
call esi
test eax, eax
jne 0x10031a4a
mov eax, 1
jmp 0x10031a4c
test eax, eax
je 0x10031ae8
push ecx
push ebx
call fcn.10031370
add esp, 8
test eax, eax
je 0x10031ae8
mov esi, 1
jmp 0x10031aea
test eax, eax
je 0x10031ae8
push ecx
push ebx
call fcn.10031700
add esp, 8
test eax, eax
je 0x10031ae8
mov esi, 1
jmp 0x10031aea
xor esi, esi
test ebx, ebx
je 0x10031af5
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
ret