joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100022b8
Capabilities:
Get graphical window text
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
mov ebx, 0x10012360
push edi
push ebx
call fcn.10002409
push ebx
call fcn.100070ad
test eax, eax
pop ecx
jbe 0x10002374
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 0x10]
test esi, esi
mov dword [ebp - 4], esi
je 0x10002374
and byte [ebp - 0x408], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x407]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x408]
push 0x3fc
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x408]
push str.Choose_a_digital_certificate
push eax
call fcn.10007760
pop ecx
test eax, eax
pop ecx
jne 0x10002349
lea eax, [ebp - 0x408]
push 0x10010598
push eax
call fcn.10007760
pop ecx
test eax, eax
pop ecx
je 0x10002374
push ebx
push str._CERTSSO_Cert_Dlg_Found.Want_Subject_Name:_S
call fcn.10006aac
pop ecx
pop ecx
push 0xfb6
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov dword [ebp - 8], eax
jne 0x1000237d
push str._CERTSSO_No_List_Found.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 2
pop edi
mov dword [0x10012b64], ebx
push 0x10012b60
push 0xffffffffffffffff
push 0x1053
push eax
mov dword [0x10012b60], edi
call esi
push eax
push ebx
push str._CERTSSO_Cert_Subject_Name:_S___index__d_
mov dword [ebp + 0x10], eax
call fcn.10006aac
add esp, 0xc
cmp dword [ebp + 0x10], 0
jl 0x10002374
push 0x10012b78
mov dword [0x10012b84], edi
push dword [ebp + 0x10]
mov dword [0x10012b88], edi
push 0x102b
push dword [ebp - 8]
call esi
push 1
pop ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, 0x10001
mov dword [ebp + 0x10], eax
push edi
push ebx
push 0x201
push eax
call esi
push edi
push ebx
push 0x202
push dword [ebp + 0x10]
call esi
mov eax, ebx
jmp 0x10002376

Function at 0x100024ee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp + 8]
xor esi, esi
push eax
push esi
push 0x20019
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x10002541
lea eax, [ebp + 0xc]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
mov dword [ebp + 0xc], 0x400
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0x10

Function at 0x10002a6a
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
call fcn.100028e2
lea eax, [esi + 0x50]
xor ebx, ebx
push eax
push 4
push esi
push 0x10002a56
push ebx
push ebx
mov dword [esi], 0x1000e31c
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x4c], eax
mov byte [esi + 0x56], 1
mov byte [esi + 0x55], bl
mov byte [esi + 0x54], bl
mov byte [esi + 0x57], bl
mov eax, esi
pop esi
pop ebx
ret
Function at 0x10004863
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x1001553c], 0
mov dword [ebp - 0x1c], str.getaddrinfo
mov dword [ebp - 0x18], 0x10004a0d
mov dword [ebp - 0x14], str.getnameinfo
mov dword [ebp - 0x10], 0x10004f3e
mov dword [ebp - 0xc], str.freeaddrinfo
mov dword [ebp - 8], fcn.100049d4
je 0x100048af
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x10010f2c]
jmp 0x100049d0
push ebx
push esi
push edi
lea eax, [ebp - 0x230]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100049b8
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.10007160
lea eax, [ebp - 0x128]
push str.ws2_32
push eax
call fcn.10007170
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
lea eax, [ebp - 0x128]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10004927
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x10004923
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x10004976
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.10007160
lea eax, [ebp - 0x128]
push str.wship6
push eax
call fcn.10007170
add esp, 0x10
lea eax, [ebp - 0x128]
push eax
call edi
mov esi, eax
test esi, esi
je 0x100049b8
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x10004972
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x100049b8
and dword [ebp - 4], 0
lea edi, [ebp - 0x18]
push dword [edi - 4]
push esi
call ebx
test eax, eax
mov dword [edi], eax
je 0x10004997
inc dword [ebp - 4]
add edi, 8
cmp dword [ebp - 4], 3
jl 0x1000497d
jmp 0x100049a0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x100049b8
xor eax, eax
mov ecx, dword [ebp + eax - 0x18]
mov dword [eax + 0x10010f2c], ecx
add eax, 8
cmp eax, 0x18
jl 0x100049a6
movzx eax, word [ebp + 8]
pop edi
pop esi
mov eax, dword [eax*8 + 0x10010f2c]
mov dword [0x1001553c], 1
pop ebx
leave
ret 4

Function at 0x10004e58
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
push dword [ebp + 8]
and dword [edi], 0
and byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x10004ed1
cmp word [ebx + 8], 2
jne 0x10004eb3
cmp word [ebx + 0xa], 4
jne 0x10004eb3
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x10004eb3
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10004cf5
test eax, eax
mov dword [edi], eax
je 0x10004eae
lea edi, [eax + 0x1c]
add esi, 4
jmp 0x10004e8a
push 8
pop eax
jmp 0x10004ef7
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call fcn.10008340
and byte [esi + 0x400], 0
add esp, 0xc
xor eax, eax
jmp 0x10004ef7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x10004ef7
dec ecx
je 0x10004ef2
dec ecx
je 0x10004eeb
dec ecx
jmp 0x10004ef7
mov eax, 0x2afb
jmp 0x10004ef7
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x10005f61
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2108
call fcn.100072b0
push esi
mov esi, ecx
call fcn.100060d3
cmp dword [0x10013470], 0
je 0x100060ce
and dword [ebp - 4], 0
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
mov eax, dword [0x10013470]
add eax, 0x68
push eax
call fcn.100072e0
test eax, eax
pop ecx
jne 0x10005fbb
call edi
sub eax, ebx
cmp eax, 0x1388
jae 0x10005fbb
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10005f93
lea eax, [ebp - 0x2108]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.10005aea
lea eax, [ebp - 0x2108]
push eax
lea eax, [ebp - 0x108]
push dword [ebp - 4]
push eax
push dword [ebp + 8]
push str._SSO_DoQuery_AnalyURL__s__addr:_s_port:_d_urlNoPro:_s
call fcn.1000446b
lea eax, [ebp - 0x108]
push str..dll
push eax
call fcn.10007809
add esp, 0x1c
test eax, eax
jne 0x10006017
lea eax, [ebp - 0x108]
push eax
call fcn.10005a20
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2108]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.100050f8
test eax, eax
jne 0x10006076
lea eax, [ebp - 0x2108]
push 0xffffffffffffffff
push eax
lea eax, [esi + 0x1c]
push eax
call fcn.10005c5e
lea eax, [ebp - 0x108]
push 0xffffffffffffffff
push eax
lea eax, [esi + 0x201c]
push eax
call fcn.10005c5e
mov eax, dword [ebp - 4]
mov dword [esi + 0x211c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x2120], eax
xor eax, eax
push 1
cmp word [ebp - 0x108], ax
pop edi
je 0x100060c9
cmp dword [ebp - 4], eax
je 0x100060c9
cmp word [ebp - 0x2108], ax
mov dword [esi + 0x2170], edi
jne 0x100060a8
mov word [ebp - 0x2108], 0x2f
mov word [ebp - 0x2106], ax
push dword [ebp - 8]
lea eax, [ebp - 0x2108]
mov ecx, dword [0x10013470]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
push esi
push esi
call fcn.10001f28
mov dword [esi + 0x18], edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x100060d3
Capabilities:
Resume thread

Disassembly:
cmp dword [0x10013470], 0
jne 0x10006122
call fcn.10006133
test eax, eax
je 0x10006122
push 0x1440
call fcn.10007119
test eax, eax
pop ecx
je 0x100060ff
mov ecx, eax
call fcn.10001825
mov ecx, eax
jmp 0x10006101
xor ecx, ecx
mov dword [0x10013470], ecx
call fcn.1000186b
mov ecx, dword [0x10013470]
test eax, eax
jne 0x10006123
call fcn.10002b07
and dword [0x10013470], 0
ret
call fcn.100019b1
mov ecx, dword [0x10013470]
jmp fcn.10002af3
Function at 0x10006aac
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.100072b0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1000]
push dword [ebp + 8]
push eax
call fcn.10008649
add esp, 0xc
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x10006de8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp + 8]
xor esi, esi
push eax
push esi
push 0x20019
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x10006e3b
lea eax, [ebp + 0xc]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
mov dword [ebp + 0xc], 0x400
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0x10

Function at 0x10009076
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100116c0
cmp edx, dword [eax]
je 0x10009098
add eax, 8
inc ecx
cmp eax, 0x10011750
jl 0x10009089
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x100116c0]
jne 0x100091c6
mov eax, dword [0x10015594]
cmp eax, 1
je 0x100091a0
test eax, eax
jne 0x100090c9
cmp dword [0x10015598], 1
je 0x100091a0
cmp edx, 0xfc
je 0x100091c6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10009100
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10007160
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.100072e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10009143
lea eax, [ebp - 0x1a4]
push eax
call fcn.100072e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000e9c4
push edi
call fcn.10008340
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10007160
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10007170
lea eax, [ebp - 0xa0]
push 0x1000e9a4
push eax
call fcn.10007170
push dword [esi + 0x100116c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.10007170
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1000bcd7
add esp, 0x2c
pop edi
jmp 0x100091c6
lea eax, [ebp + 8]
lea esi, [esi + 0x100116c4]
push 0
push eax
push dword [esi]
call fcn.100072e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4023c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402420
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x407080]
test esi, esi
jle 0x402540
mov eax, dword [0x407084]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x402454
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4024d7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x402440
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x402567
mov eax, dword [0x407084]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x407084]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402547
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4024d0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4024e0
add dword [0x407080], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x407084]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4024d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40245e
mov eax, dword [0x407084]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x402a20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40709c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x407094]
sub esp, 4
test ebx, ebx
je 0x402a75
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x402a6e
test esi, esi
je 0x402a6e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402a50
mov dword [esp], 0x40709c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402da0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402dc5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402dd0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402dc5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x402e18
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x402e0e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x402e1a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402e00
xor eax, eax
pop ebx
pop esi
ret
Function at 0x467584
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x46758c
mov eax, edx
pop esi
pop ebx
ret

Function at 0x486004
Capabilities:
Terminate process

Disassembly:
push esi
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ebx, eax
mov eax, dword [0x4b79ff]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov ebp, eax
mov eax, dword [0x4b79d7]
push eax
push 0
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
push 0x104
push esi
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
xor edx, edx
xor eax, eax
movzx ecx, word [esi + edx*2]
cmp ecx, 0x5c
je 0x48615a
test ecx, ecx
je 0x486053
inc edx
jmp 0x48603f
lea edx, [esi + eax*2 + 2]
mov esi, dword [0x4b79eb]
cmp dword [esi], 0
je 0x4860a8
push edx
mov dword [esp + 4], edx
call dword [sym.imp.kernel32.dll_lstrlenW]
mov edx, dword [esp]
movzx eax, al
cmp al, byte [esi]
je 0x486080
cmp al, byte [esi + 1]
jne 0x486152
movzx ecx, word [edx]
xor eax, eax
test ecx, ecx
je 0x48609a
xor ecx, ecx
movzx edi, word [edx + ecx*2]
inc ecx
add eax, edi
movzx edi, word [edx + ecx*2]
test edi, edi
jne 0x48608b
cmp eax, dword [esi + 4]
je 0x4860a8
cmp eax, dword [esi + 8]
jne 0x486152
mov eax, dword [0x4b79d7]
mov dword [esp], 0
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov edx, eax
xor eax, eax
mov ecx, dword [0x4b79ef]
mov esi, dword [ecx + eax]
mov dword [eax + edx], esi
add eax, 4
cmp eax, 0x20
jl 0x4860c1
push edx
push ebp
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x486152
mov esi, dword [0x4b79df]
lea ebp, [esp]
push ebp
mov eax, dword [0x4b7a03]
push eax
push 0x6000
push esi
call edi
mov eax, dword [0x4b7a0f]
add ebx, eax
xor eax, eax
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + eax*8 + 8]
add ecx, edx
mov dword [esi + eax*8 + 8], ecx
mov ecx, dword [ebx + eax*8 + 0xc]
add ecx, edx
mov dword [esi + eax*8 + 0xc], ecx
inc eax
cmp eax, 0xbff
jb 0x486107
mov eax, dword [0x4b79cb]
push ebp
mov dword [esi + 8], eax
push dword [esp + 4]
push 0x6000
push esi
call edi
mov ecx, dword [esi + 0xc]
add ecx, esi
mov eax, dword [0x4b7a0b]
add ecx, eax
mov edx, dword [0x4b7a0b]
add esi, edx
push esi
call ecx
add esp, 4
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, edx
jmp 0x486050

Function at 0x497a9c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x497aea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00497560
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x497b03
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4aefa0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4aefa8
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4af10b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.00408550
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004228bc
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004229b8
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
call fcn.00422d78
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00422678
lea eax, [ebp - 0x2c]
mov edx, 0x4af128
call fcn.004086e4
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.004229b8
mov eax, dword [ebp - 0x28]
mov ecx, 1
pop edx
call fcn.00408abc
dec eax
je 0x4af047
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x4af0e3
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x4af0e3
lea eax, [ebp - 4]
call fcn.0042307c
cmp dword [ebp - 4], 0
jne 0x4af062
lea eax, [ebp - 4]
mov edx, 0x4af140
call fcn.00407e48
push 0x4af154
push dword [ebp - 4]
push 0x4af194
push 0x4af1a4
push 0x4af1e4
lea eax, [ebp - 8]
mov edx, 5
call fcn.004087c4
push 0
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 8]
call fcn.004084ec
push eax
call sub.advapi32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x4af0ab
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
xor ebx, ebx
jmp 0x4af0e3
mov dword [ebp - 0x18], 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x4af0da
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af112
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00407a80
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407a80
ret

Function at 0x4af57c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4af5d6
inc esi
xor edi, edi
cmp edi, 1
jne 0x4af5a2
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4af5b0
cmp edi, 1
jle 0x4af5b0
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0042729c
test eax, eax
jne 0x4af5d6
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4af5d6
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4af5d6
inc edi
dec esi
jne 0x4af592
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4af5e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4af604
mov eax, dword [ebp - 4]
jmp 0x4af607
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e004]
jne 0x401010
repz ret
jmp fcn.00401774

Function at 0x409b24
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004050f3
and dword [ebp - 4], 0
cmp dword [0x4307e0], 0
mov ebx, eax
jne 0x409bd5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409c86
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409c86
push eax
call fcn.00405081
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4307e0], eax
call esi
push eax
call fcn.00405081
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4307e4], eax
call esi
push eax
call fcn.00405081
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4307e8], eax
call esi
push eax
call fcn.00405081
pop ecx
mov dword [0x4307f0], eax
test eax, eax
je 0x409bd5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405081
pop ecx
mov dword [0x4307ec], eax
mov eax, dword [0x4307ec]
cmp eax, ebx
je 0x409c2d
cmp dword [0x4307f0], ebx
je 0x409c2d
push eax
call fcn.004050fc
push dword [0x4307f0]
mov esi, eax
call fcn.004050fc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409c2d
test edi, edi
je 0x409c2d
call esi
test eax, eax
je 0x409c24
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409c24
test byte [ebp - 0xc], 1
jne 0x409c2d
or dword [ebp + 0x10], 0x200000
jmp 0x409c66
mov eax, dword [0x4307e4]
cmp eax, ebx
je 0x409c66
push eax
call fcn.004050fc
pop ecx
test eax, eax
je 0x409c66
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409c66
mov eax, dword [0x4307e8]
cmp eax, ebx
je 0x409c66
push eax
call fcn.004050fc
pop ecx
test eax, eax
je 0x409c66
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4307e0]
call fcn.004050fc
pop ecx
test eax, eax
je 0x409c86
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409c88
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret