joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f1d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41cdb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0
call sub.MFC42.DLL_CTime::CTime
lea ecx, [esp + 0x38]
push 0x429bb4
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CTime::Format
lea edx, [esp + 0x20]
push 3
push edx
mov ecx, eax
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x1c]
push 0x4280f8
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CTime::Format
lea ecx, [esp + 0x24]
push 0x429bb0
push ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CTime::Format
lea edx, [esp + 0x18]
push 3
push edx
mov ecx, eax
mov byte [esp + 0x38], 5
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 7
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
push 0x429bac
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CTime::Format
lea ecx, [esp + 0x10]
push str._H:_M:_S
push ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 8
call sub.MFC42.DLL_CTime::Format
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str._s___s__s__s__s_GMT
push ecx
mov byte [esp + 0x4c], 9
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
push edx
push str.If_Modified_Since:__s
push eax
mov byte [esp + 0x3c], 0xa
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x14]
add esp, 0xc
mov ecx, dword [eax - 8]
push 0x20000000
push ecx
mov ecx, dword [esi + 0x80]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
pop esi
jne 0x40f333
push eax
push eax
call sub.MFC42.DLL_AfxThrowInternetException
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x40f850
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc8]
mov ecx, dword [esi + 0xb8]
push eax
push ecx
mov ecx, esi
call fcn.0040fd80
mov ecx, esi
call fcn.0040e6a0
test eax, eax
jne 0x40f886
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 8
ret
mov ebp, dword [sym.imp.WININET.dll_InternetReadFileExA]
lea ebx, [esi + 0x88]
mov ecx, 0xa
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0xc8]
mov dword [ebx], 0x28
mov dword [esi + 0x9c], edx
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x80]
mov ecx, dword [esi + 0x60]
push esi
push 1
push ebx
push edx
mov dword [esi + 0xa0], ecx
call ebp
test eax, eax
jne 0x40f919
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40f8e5
push eax
push 0
call sub.MFC42.DLL_AfxThrowInternetException
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.00410670
test eax, eax
jne 0x40f966
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x118]
cmp ecx, eax
jne 0x40f973
mov eax, dword [esi + 0x114]
test eax, eax
je 0x40f924
push eax
push 0
call sub.MFC42.DLL_AfxThrowInternetException
jmp 0x40f924
mov ecx, esi
call fcn.004106d0
test eax, eax
jne 0x40f966
mov edi, dword [esi + 0xa0]
test edi, edi
je 0x40f98c
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0xc4]
sub edx, edi
add eax, edi
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x9c]
push edi
push edx
mov ecx, esi
mov dword [esi + 0xc4], eax
call fcn.0040e8f0
test eax, eax
je 0x40f9c3
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x18]
jmp 0x40f8b6
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 8
ret
push 0x429dbc
mov ecx, esi
call fcn.0040dc00
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 8
ret
mov ecx, esi
call fcn.0040e9c0
test eax, eax
je 0x40f9c3
mov eax, dword [esi + 0xc8]
cmp eax, 0xffffffff
je 0x40f9ae
cmp eax, dword [esi + 0xc4]
je 0x40f9ae
push 3
jmp 0x40f9c5
push 0
push 2
mov ecx, esi
call fcn.0040f020
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 4
push 3
mov ecx, esi
call fcn.0040f020
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x4103e0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4103f2
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x14]
push ecx
call edi
lea edx, [esp + 8]
mov dword [esp + 8], 0
push edx
push 0
push esi
push 0x410260
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
jg 0x410430
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esi + 0xc]
mov dword [esi + 4], eax
test ecx, ecx
je 0x410443
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0x10]
push ebx
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x10]
mov ebx, eax
push ecx
call edi
xor eax, eax
test ebx, ebx
pop ebx
pop edi
sete al
pop esi
pop ecx
ret
Function at 0x410470
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4104b8
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4104a3
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop esi
ret
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 4], 0
pop esi
ret
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop esi
ret

Function at 0x4114d0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call sub.MSVCRT.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret
Function at 0x41217a
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
call sub.WS2_32.dll_ntohl
push dword [esi + 4]
mov edi, eax
call sub.WS2_32.dll_ntohl
mov ebx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea esi, [ebp - 0x10]
sub eax, ecx
mov dword [ebp + 8], 4
mov dword [ebp + 0xc], eax
jmp 0x4121b3
mov eax, dword [ebp + 0xc]
push dword [eax + esi]
call sub.WS2_32.dll_ntohl
mov dword [esi], eax
add esi, 4
dec dword [ebp + 8]
jne 0x4121b0
push 0x10
xor eax, eax
pop ecx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
sub eax, 0x61c88647
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
mov edx, edi
mov esi, edi
shr edx, 5
add edx, dword [ebp - 4]
shl esi, 4
add esi, dword [ebp - 8]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
dec ecx
jne 0x4121ca
push edi
call sub.WS2_32.dll_htonl
mov esi, dword [ebp + 0x10]
push ebx
mov dword [esi], eax
call sub.WS2_32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41221d
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
call sub.WS2_32.dll_ntohl
push dword [esi + 4]
mov ebx, eax
call sub.WS2_32.dll_ntohl
mov edi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea esi, [ebp - 0x10]
sub eax, ecx
mov dword [ebp + 8], 4
mov dword [ebp + 0xc], eax
jmp 0x412256
mov eax, dword [ebp + 0xc]
push dword [eax + esi]
call sub.WS2_32.dll_ntohl
mov dword [esi], eax
add esi, 4
dec dword [ebp + 8]
jne 0x412253
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 4]
shl esi, 4
add esi, dword [ebp - 8]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
mov esi, edi
shr edx, 5
add edx, dword [ebp - 0xc]
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add eax, 0x61c88647
sub ebx, edx
dec ecx
jne 0x412270
push ebx
call sub.WS2_32.dll_htonl
mov esi, dword [ebp + 0x10]
push edi
mov dword [esi], eax
call sub.WS2_32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413ac8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
call sub.MSVCRT.dll_strlen
cmp eax, 1
pop ecx
jle 0x413aed
mov cl, byte [eax + esi - 2]
lea edx, [eax + esi]
add cl, byte [edx - 1]
jmp 0x413af5
jne 0x413af3
mov cl, byte [esi]
jmp 0x413af5
xor cl, cl
xor cl, al
xor ebx, ebx
movzx esi, cl
mov al, byte [esi + edi + 0x9c]
movzx eax, al
test eax, eax
mov dword [ebp - 8], eax
jle 0x413b3b
mov eax, dword [edi + 0x8c]
mov ecx, dword [edi + 0x28]
push dword [ebp + 8]
mov eax, dword [eax + ebx*4]
mov al, byte [eax + esi]
mov byte [ebp - 1], al
movzx eax, al
mov eax, dword [ecx + eax*4]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x413b45
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x413b0d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
movzx eax, byte [ebp - 1]
jmp 0x413b3e

Function at 0x4143c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov eax, dword [eax - 8]
lea eax, [eax + ecx + 7]
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 4], eax
call sub.MFC42.DLL_CString::GetBuffer
mov esi, eax
mov al, byte [ebp + 0xc]
mov byte [esi], al
mov eax, dword [edi]
inc esi
mov ebx, dword [eax - 8]
movzx eax, bx
mov word [esi], bx
push eax
push dword [edi]
inc esi
inc esi
mov dword [ebp + 0x10], eax
push esi
call sub.MSVCRT.dll_memcpy
xor edi, edi
add esp, 0xc
xor bl, bh
xor eax, eax
cmp dword [ebp + 0x10], edi
jbe 0x414421
mov cl, byte [eax + esi]
not cl
xor cl, bl
mov byte [eax + esi], cl
inc eax
cmp eax, dword [ebp + 0x10]
jb 0x414411
add esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push ebx
push dword [ebp + 0x18]
mov dword [esi], ebx
add esi, 4
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp byte [ebp + 0xc], 7
je 0x414445
cmp byte [ebp + 0xc], 6
jne 0x41445c
mov al, bl
xor al, bh
cmp ebx, edi
jbe 0x41445c
mov cl, byte [edi + esi]
not cl
xor cl, al
mov byte [edi + esi], cl
inc edi
cmp edi, ebx
jb 0x41444d
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x401024
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41e6c0]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x40105d
cmp word [0x41e6c2], bx
je 0x40104b
call eax
mov dword [0x41e6c0], eax
push eax
call fcn.00402606
push eax
call fcn.00408d75
pop ecx
jmp 0x4010f0
push 0x27
call fcn.00402606
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x904]
push eax
call edi
add esp, 0x14
cmp dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
jbe 0x4010c1
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x40108a
xor ebx, ebx
cmp byte [str.___Install__UTF_8_], 0x3b
je 0x4010e4
push ebx
push 3
call fcn.00402606
pop ecx
push eax
lea eax, [ebp - 0x904]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4010f1
lea eax, [ebp - 0x904]
push eax
call fcn.00408d75
pop ecx
call fcn.004045ac
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401477
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0xc]
call fcn.00412da5
push dword [ebp + 0xc]
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.004113b2
push 0x5c
mov ecx, edi
call fcn.004011ce
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40137a
push edi
push edi
mov dword [0x41e6c4], esi
mov dword [0x41e6cc], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [0x41e6c8], eax
je 0x4014eb
cmp dword [0x41e730], 2
je 0x4014dd
call fcn.00408cc7
mov eax, dword [0x41e6c8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41e6c8]
mov ecx, dword [0x41e6cc]
cmp ecx, edi
mov dword [0x41e7d0], edi
je 0x401531
cmp ecx, 1
je 0x401525
cmp ecx, 2
je 0x401521
cmp ecx, 3
je 0x40151d
cmp ecx, 0x67
jle 0x401518
cmp ecx, 0x6b
jle 0x40159a
push ecx
push 0x14
jmp 0x40156b
push 0x12
jmp 0x401527
push 0x13
jmp 0x401527
push 0x11
push edi
call fcn.00408e59
pop ecx
pop ecx
jmp 0x40159a
cmp dword [0x41e7d8], edi
mov dword [ebp + 8], edi
jne 0x40159a
cmp eax, edi
je 0x401558
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x401558
cmp dword [ebp + 8], edi
jne 0x401558
xor eax, eax
jmp 0x40159f
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x40156e
push dword [ebp + 8]
push 0x21
push edi
jmp 0x401592
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x401584
cmp dword [0x41e734], 0xffffffff
je 0x40159a
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00408e59
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
Function at 0x401dcc
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401e0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401df7
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401e0d
test al, 0x10
jne 0x401e0d
push esi
jmp 0x401ded
xor eax, eax
inc eax
pop esi
ret

Function at 0x40224b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x41e6e4]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
call esi
mov ebx, eax
test ebx, ebx
mov edi, 0x409
jne 0x402293
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x4022bd
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4022a6
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4022bd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x402327
cmp dword [0x41e6f4], 0
jne 0x402325
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x41e6f8]
mov dword [0x41e6f4], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x41e6e4]
push edi
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
jne 0x40231b
push str.SetThreadPreferredUILanguages
push dword [0x41e6f8]
call esi
mov ebx, eax
test ebx, ebx
je 0x402325
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402606
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x41e0a0], ebx
je 0x402639
mov eax, 0x41e0a0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x402639
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41e0a0]
cmp dword [eax], ebx
jne 0x402622
shl esi, 4
cmp dword [esi + 0x41e0a0], ebx
jne 0x40264e
mov eax, 0x41a650
jmp 0x4027c0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x64]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x4026fe
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x4026f5
call edi
test eax, eax
jne 0x4026f5
mov eax, dword [esi + 0x41e0ac]
test eax, eax
je 0x4026ea
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4026e7
push dword [esi + 0x41e0ac]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41e0ac], edi
jmp 0x4026fd
push edi
jmp 0x4026f8
mov eax, dword [ebp - 8]
mov dword [esi + 0x41e0ac], eax
jmp 0x4026fe
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x41e0ac]
test eax, eax
jne 0x4027bf
mov ebx, dword [esi + 0x41e0a4]
lea edi, [esi + 0x41e0a8]
cmp dword [edi], eax
je 0x402734
call fcn.004025b0
cmp eax, dword [0x41b4bc]
jne 0x402734
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x41e074], 0xffffffff
pop ecx
mov dword [esi + 0x41e0ac], eax
jne 0x40279f
and dword [0x41e074], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x41e6e4]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x40279f
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41e074], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41e0ac]
push edi
push ebx
push 0
push dword [0x41e074]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x41e0ac]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4028bb
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x402918
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x402a76
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00411383
push 0x41a764
lea ecx, [ebp - 0xc]
call fcn.0041140a
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b52
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004113b2
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.004011ce
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041140a
test byte [ebp - 0x25c], 0x10
je 0x402b1d
push 0x41a760
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x402b35
push 0x41a758
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x402b35
push dword [ebp - 0xc]
call fcn.00402a76
pop ecx
jmp 0x402b31
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x402b83
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402b83
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402ac1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x41e760]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402b83
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402b83
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x402b8d
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret