joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4799ac
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x14]
call fcn.0040970d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
push 0x4c6b30
mov dword [ebp - 0x18], eax
inc dword [eax]
call fcn.0040337a
lea eax, [ebp - 0x278]
mov bl, 1
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x479b0b
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
call fcn.0047380d
cmp eax, 1
je 0x479b06
cmp eax, 0xb
jne 0x479a31
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x479a11
lea eax, [ebp - 0x24c]
push 0x49cc38
push eax
call fcn.00425342
pop ecx
pop ecx
test eax, eax
je 0x479aec
lea eax, [ebp - 0x24c]
push 0x4c6b38
push eax
call fcn.00425342
pop ecx
pop ecx
test eax, eax
je 0x479aec
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a6e5
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040337a
test byte [ebp - 0x278], 0x10
je 0x479ac9
cmp byte [ebp + 0x18], 0
je 0x479a98
add dword [esi], 1
adc dword [esi + 4], 0
cmp byte [ebp + 0x1c], 0
je 0x479aec
push 0x49cb68
lea ecx, [ebp - 0x14]
call fcn.0040337a
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 4]
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.004799ac
mov bl, al
test bl, bl
je 0x479b08
jmp 0x479aec
mov edx, dword [ebp + 0xc]
xor eax, eax
or eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x25c]
add dword [edx], eax
adc dword [edx + 4], ecx
cmp byte [ebp + 0x18], 0
je 0x479aec
add dword [edi], 1
adc dword [edi + 4], 0
lea eax, [ebp - 0x278]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x479a11
jmp 0x479b08
xor bl, bl
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x24]
call fcn.004092c6
lea ecx, [ebp - 0x14]
call fcn.004092c6
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0x18
Function at 0x47c329
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [edi + 0x74], 4
mov eax, dword [esi + 0x54]
mov dword [ebp - 4], eax
jne 0x47c34b
or eax, 0x800000
mov dword [ebp - 4], eax
movzx eax, word [edi + 0x78]
xor ebx, ebx
push ebx
push ebx
push dword [edi + 0x70]
push dword [edi + 0x30]
push dword [edi + 0x20]
push eax
push dword [edi + 0x10]
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi], eax
test eax, eax
jne 0x47c397
mov dword [esi + 0x18], 0xb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c390
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
xor al, al
jmp 0x47c4b6
push ebx
push dword [ebp - 4]
push ebx
push ebx
push ebx
push dword [edi + 0x60]
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
jne 0x47c3bb
mov dword [esi + 0x18], 0xc
jmp 0x47c48f
cmp byte [ebp + 0xc], bl
je 0x47c3cb
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.0047ceaf
test dword [ebp - 4], 0x1000
je 0x47c402
lea eax, [ebp + 8]
mov dword [ebp + 8], 4
push eax
lea eax, [ebp + 0xc]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp + 0xc], 0x100
lea eax, [ebp + 0xc]
push 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x47c488
push edi
call fcn.0047c2ea
cmp eax, 0xc8
jne 0x47c488
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x20
push eax
lea eax, [ebp - 0x24]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x24]
push eax
call fcn.0042640b
pop ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
cmp byte [ebp + 0x10], bl
je 0x47c470
mov ecx, esi
push edi
cmp byte [esi + 0x30], bl
je 0x47c467
call fcn.0047cdc8
jmp 0x47c46c
call fcn.0047ccf2
mov bl, al
jmp 0x47c4a9
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c484
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov bl, 1
jmp 0x47c4a9
mov dword [esi + 0x18], 0xd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c4a9
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
test edi, edi
je 0x47c4b4
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x47cbcc
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
inc ebx
push edi
mov edi, ecx
cmp eax, ebx
jne 0x47cbe9
movzx ecx, word [edi + 0x8c]
jmp 0x47cbed
movzx ecx, word [edi + 0x58]
movzx edx, cx
mov ecx, dword [edi + 0xc0]
cmp dx, bx
jne 0x47cc03
xor esi, esi
push esi
push esi
push esi
push ebx
jmp 0x47cc2a
cmp dx, 2
jne 0x47cc24
dec eax
neg eax
sbb eax, eax
and eax, 0xffffffcc
xor esi, esi
push esi
push str._local_
push dword [eax + edi + 0xb0]
push 3
jmp 0x47cc2a
xor esi, esi
push esi
push esi
push esi
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 4], eax
test eax, eax
jne 0x47cc3c
xor al, al
jmp 0x47cc5c
cmp byte [edi + 0xdc], 0
je 0x47cc5a
push 8
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
push ecx
push 0x32
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x47ccf2
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, ecx
push edi
push 0x4c6a94
push dword [esi + 0x34]
call fcn.0042e6fb
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x47cd1e
mov dword [esi + 0x18], 0x1f
jmp 0x47cd98
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x47cd91
cmp dword [ebp - 4], 0
je 0x47cd69
push edi
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x404]
push eax
call fcn.0042dcc3
mov eax, dword [ebp - 4]
add esp, 0x10
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x47cd24
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x47cd7a
mov dword [esi + 0x18], 0x21
jmp 0x47cd98
and dword [esi + 0x18], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47cdb4
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
jmp 0x47cdb4
mov dword [esi + 0x18], 0x20
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47cdb2
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
xor bl, bl
test edi, edi
je 0x47cdbf
push edi
call fcn.0042e788
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x47cdc8
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
inc eax
mov esi, ecx
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x47cdfb
mov eax, 0x400
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
je 0x47ce53
test eax, eax
jne 0x47ce08
mov edi, ebx
jmp 0x47ce14
push eax
call fcn.0041ff1b
mov edi, eax
mov eax, dword [ebp - 8]
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x47ce80
cmp dword [ebp - 4], ebx
je 0x47ce4a
push dword [ebp - 4]
lea ecx, [esi + 0x44]
push edi
call fcn.0047d12c
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
adc dword [esi + 0xc], ebx
test eax, eax
je 0x47ce53
mov eax, dword [ebp - 8]
jmp 0x47ce00
push ebx
push edi
call fcn.0041fedd
pop ecx
pop ecx
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x47ce92
mov dword [esi + 0x18], 0x21
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47ce7c
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
xor al, al
jmp 0x47cea8
push ebx
push edi
call fcn.0041fedd
pop ecx
pop ecx
mov dword [esi + 0x18], 0x20
jmp 0x47ce62
mov dword [esi + 0x18], ebx
mov ecx, dword [esi + 0xd4]
test ecx, ecx
je 0x47cea6
push ecx
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x48ca2d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0xff
push eax
xor esi, esi
lea eax, [ebp - 4]
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x218]
mov edi, ecx
push eax
push esi
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x48cb35
mov eax, ebx
or eax, 0x20019
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
push ecx
push eax
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48cb47
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.0048ca2d
push dword [ebp - 8]
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x48cb47
push str.advapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x48cae4
push str.RegDeleteKeyExW
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x48cae4
mov ebx, dword [ebp - 0xc]
lea ecx, [ebp - 0x218]
push 0
push ebx
push ecx
push edi
call eax
jmp 0x48caf5
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, dword [ebp - 0xc]
test eax, eax
jne 0x48cb3c
test esi, esi
je 0x48cb04
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0xff
push eax
xor esi, esi
lea eax, [ebp - 4]
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
mov eax, dword [ebp - 0x10]
jne 0x48ca78
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
test esi, esi
je 0x48cb47
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor al, al
jmp 0x48cb37
Function at 0x497dfc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x44
push 0
mov ebx, 0x4d3028
push ebx
call fcn.00422450
push 0x10
push 0
mov esi, 0x4d306c
push esi
call fcn.00422450
add esp, 0x18
mov dword [0x4d3028], 0x44
xor eax, eax
inc eax
mov dword [0x4d3054], eax
push esi
push ebx
mov word [0x4d3058], ax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
pop esi
pop ebx
test eax, eax
je 0x497e61
push dword [0x4d306c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebp
ret 4

Function at 0x497e65
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 3
pop esi
mov edx, dword [edi + 4]
mov dword [ebp + 8], edx
cmp dword [edi + 0x190], ebx
je 0x497f17
mov ebx, esi
cmp dword [0x4d1954], esi
jl 0x497f0e
mov eax, dword [0x4d1944]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x497f05
cmp dword [ecx + 4], edx
jne 0x497f05
mov dl, byte [ecx + 0x90]
cmp dl, 0xb
je 0x497f02
mov dh, byte [ecx + 0x93]
movzx eax, dh
cmp eax, dword [edi + 0x190]
je 0x497ed2
cmp byte [edi + 0x198], 0
je 0x497f02
cmp dh, 0xff
je 0x497f02
cmp dl, 0xa
je 0x497f02
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d1944]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x497f02
cmp byte [eax + 0x90], 0x1a
jne 0x497f02
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc ebx
cmp ebx, dword [0x4d1954]
jle 0x497e90
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0x190], ebx
cmp dword [0x4d1954], esi
jl 0x497fab
mov eax, dword [0x4d1944]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x497f9b
cmp dword [ecx + 4], edx
jne 0x497f9b
cmp byte [ecx + 0x90], 0xb
je 0x497f9b
movzx eax, byte [ecx + 0x93]
cmp eax, dword [edi + 0x190]
jne 0x497f9b
test byte [ecx + 0x92], 0x20
jne 0x497f9b
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d1944]
push 4
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d1944]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x497f9b
cmp byte [eax + 0x90], 0x1a
jne 0x497f9b
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [0x4d1954]
jle 0x497f23
push 0
push ebx
push 0x130c
push dword [edi + 0x188]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4981f9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [eax], di
je 0x498312
push edi
push edi
push 3
push edi
push edi
push SysAllocStringLen
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x49824a
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x498251
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x498341
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
je 0x49824a
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x49fc30
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x49824a
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x4982ef
mov eax, edi
cmp dword [ecx], edi
jne 0x4982ef
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [edx]
push 0x2000
push dword [ecx]
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
jmp 0x498317
mov eax, edi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x64], 0
je 0x49832c
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov dword [esi + 0x64], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40336c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x535020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403404
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4033e4
xor eax, eax
push ebp
push 0x4033dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403420
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4033e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x535020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x535020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4041f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53904c], 0
je 0x404259
cmp word [0x539220], 0xd7b2
jne 0x404221
cmp dword [0x539228], 0
jbe 0x404221
mov eax, 0x53921c
call dword [0x539238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x53506c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404280
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x535030], 0
jne 0x404275
push 0
push 0x535064
push 0x53506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4043ac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004028dc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x53904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404374
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405eac
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4060dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f2f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4060dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f2f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4060f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405fb8
xor eax, eax
push ebp
push 0x405fb1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405cf4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f96
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406118
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f96
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fb8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4060d2
cmp byte [ebp - 0xd], 0
jne 0x405fff
cmp byte [ebp - 0x12], 0
je 0x4060d2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406018
dec ebx
cmp byte [ebx], 0x2e
je 0x406027
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406017
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4060d2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406064
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4060d2
cmp byte [ebp - 0xd], 0
je 0x4060d2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4060d2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4067c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406826
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404668
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e94
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406810
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40682d
lea eax, [ebp - 0x10]
call fcn.004043f8
ret

Function at 0x40ca1c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ca55
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044e8
jmp 0x40ca5e
mov eax, ebx
mov edx, esi
call fcn.0040444c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ca68
Capabilities:
Get geographical location

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

Function at 0x40d110
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cf88
mov eax, dword [0x538ba8]
cmp byte [eax], 0
je 0x40d18c
mov eax, dword [0x538674]
call fcn.00402c58
call fcn.00402a44
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409aec
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d1d4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d1c2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5385c4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x539668]
call fcn.00405cb8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret