joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100132c0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push 0
push 0
push 0x2801
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0
call fcn.100016f0
mov esi, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x1a], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1e], eax
push ecx
mov dword [esp + 0x26], eax
mov word [esp + 0x1c], 0
mov word [esp + 0x2a], ax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
and ecx, 0xffff
mov eax, dword [edx]
mov edx, dword [esp + 0x22]
push eax
mov eax, dword [esp + 0x24]
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push str.__02u:_02u:_02u__s
push esi
call ebx
mov edx, dword [esp + 0x48]
mov edi, eax
lea ecx, [esp + 0x4c]
push ecx
lea eax, [edi + esi]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0x24
add edi, eax
add edi, esi
push 0x100351b4
push edi
call ebx
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
test eax, eax
je 0x10013381
push eax
call fcn.1002eb22
add esp, 4
add esp, 0x1c
ret

Function at 0x10013860
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, ecx
test ebp, ebp
push esi
je 0x10013874
mov eax, dword [ebp]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
xor eax, eax
mov ecx, 0x1505
mov al, byte [edx]
inc edx
test eax, eax
je 0x10013898
mov esi, ecx
shl esi, 5
add eax, esi
add ecx, eax
xor eax, eax
mov al, byte [edx]
inc edx
test eax, eax
jne 0x10013886
xor eax, eax
lea esi, [ebp + 4]
mov edx, dword [esi]
test edx, edx
je 0x100138e1
cmp ecx, edx
je 0x100138c5
inc eax
add esi, 0x28
cmp eax, 0x14
jl 0x1001389d
test ebp, ebp
je 0x100138be
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
xor eax, eax
pop ebp
ret 4
lea ecx, [eax + eax*4]
test ebp, ebp
lea esi, [ebp + ecx*8 + 4]
je 0x100138da
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
pop esi
pop ebp
ret 4
cmp eax, 0x14
jge 0x100138b0
lea eax, [eax + eax*4]
push ebx
push edi
mov ecx, 8
lea ebx, [ebp + eax*8]
xor eax, eax
lea esi, [ebx + 8]
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push ecx
push 0x10035264
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add ebx, 4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov dword [ebx], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10013948
mov al, byte [esi]
inc esi
test eax, eax
mov ecx, 0x1505
je 0x10013946
mov edx, ecx
shl edx, 5
add eax, edx
add ecx, eax
xor eax, eax
mov al, byte [esi]
inc esi
test eax, eax
jne 0x10013934
mov dword [ebx], ecx
test ebp, ebp
je 0x10013956
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
pop edi
pop ebx
pop esi
pop ebp
ret 4
Function at 0x10013960
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, ecx
test ebx, ebx
je 0x10013972
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
push esi
push edi
mov ecx, 0x4e2
xor eax, eax
mov edi, 0x1003ff94
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
push ecx
push edx
push 0x1003ff94
call dword [sym.imp.MSVCRT.dll_vsprintf]
lea esi, [ebx + 0x338]
mov ecx, 0x500
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [0x1003ff80], eax
add esp, 0xc
mov dword [0x1003ff84], eax
mov dword [0x1003ff88], eax
push 0x1003ff80
mov dword [0x1003ff8c], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0x1003ff94
push ecx
mov ecx, dword [0x1003ff8c]
lea edx, [eax + eax*2]
and ecx, 0xffff
lea eax, [edx*2 + 0x1002f5dc]
xor edx, edx
mov dx, word [0x1003ff8a]
push eax
mov eax, dword [0x1003ff88]
push ecx
and eax, 0xffff
push edx
push eax
push str.__02u:_02u:_02u___s____s__s_n
push 0x1388
push esi
call fcn.1001b650
add esp, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
test ebx, ebx
je 0x10013a2e
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop ebx
ret 0x10
Function at 0x10014740
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, ecx
push esi
push edi
lea esi, [ebp + 4]
mov ecx, 8
xor eax, eax
mov edi, esi
mov dword [ebp], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
push eax
push 0x10035350
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100147b0
mov edx, esi
mov ecx, 0x1505
mov al, byte [edx]
inc edx
test eax, eax
je 0x1001479c
mov esi, ecx
shl esi, 5
add eax, esi
add ecx, eax
xor eax, eax
mov al, byte [edx]
inc edx
test eax, eax
jne 0x1001478a
mov dword [ebp], ecx
mov ecx, dword [0x1003525c]
pop edi
mov dword [ebp + 0x24], ecx
mov eax, ebp
pop esi
pop ebp
ret 4
mov edx, dword [0x1003525c]
pop edi
mov dword [ebp + 0x24], edx
mov eax, ebp
pop esi
pop ebp
ret 4
Function at 0x10018710
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x280
mov byte [esp + 0x13], 0
mov dword [ebp], 0
call esi
add esp, 4
mov ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], ebx
push eax
push ebx
mov dword [esp + 0x24], 0x280
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x10018778
push ebx
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x20]
push ecx
call esi
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x10018778
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
lea edx, [esp + 0x1c]
push edi
push edx
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x100188b5
test ebx, ebx
mov edi, ebx
je 0x100188c3
cmp dword [edi + 0x190], 6
jne 0x100188ab
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x18], ecx
je 0x100188ab
lea eax, [edi + 0x1ac]
test eax, eax
je 0x100188ab
jmp 0x100187d0
mov ecx, dword [esp + 0x18]
lea esi, [eax + 4]
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x100187f7
test dl, dl
je 0x100187f3
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x100187f7
add ecx, 2
add esi, 2
test dl, dl
jne 0x100187d3
xor ecx, ecx
jmp 0x100187fc
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x1001880b
mov eax, dword [eax]
test eax, eax
jne 0x100187cc
jmp 0x100188a7
xor ecx, ecx
xor edx, edx
mov cl, byte [edi + 0x199]
mov dl, byte [edi + 0x198]
xor eax, eax
push ecx
mov al, byte [edi + 0x197]
push edx
xor ecx, ecx
push eax
mov cl, byte [edi + 0x196]
xor edx, edx
mov dl, byte [edi + 0x195]
xor eax, eax
mov al, byte [edi + 0x194]
push ecx
push edx
push eax
lea ecx, [ebp + 4]
push 0x10035374
push ecx
mov byte [esp + 0x33], 1
call dword [sym.imp.MSVCRT.dll_sprintf]
mov dl, byte [edi + 0x194]
add esp, 0x20
mov byte [ebp + 0x84], dl
mov al, byte [edi + 0x195]
mov byte [ebp + 0x85], al
mov cl, byte [edi + 0x196]
mov byte [ebp + 0x86], cl
mov dl, byte [edi + 0x197]
mov byte [ebp + 0x87], dl
mov al, byte [edi + 0x198]
mov byte [ebp + 0x88], al
mov cl, byte [edi + 0x199]
mov byte [ebp + 0x89], cl
mov dword [ebp], 1
mov ebx, dword [esp + 0x14]
mov edi, dword [edi]
test edi, edi
jne 0x10018796
test ebx, ebx
je 0x100188c3
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10019010
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
xor al, al
ret

Function at 0x100191e0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov al, byte [0x1004132a]
sub esp, 0xc4
test al, al
push esi
jne 0x10019428
push edi
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], 0
mov dword [esp + 0xc], eax
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push eax
mov dword [0x10041344], eax
call fcn.10023210
xor eax, eax
add esp, 4
xor esi, esi
cmp eax, 0x10035620
je 0x10019250
mov edi, 0x10035620
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10019250
push 0x10035620
call fcn.100231e0
add esp, 4
mov esi, eax
push str.GetNativeSystemInfo
push esi
call fcn.100231f0
push esi
mov edi, eax
call fcn.10023210
add esp, 0xc
test edi, edi
je 0x10019273
lea ecx, [esp + 0xc]
push ecx
call edi
jmp 0x1001927e
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x10019401
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
and edx, 0xffff
cmp ecx, 5
mov dword [0x10041334], ecx
mov dword [0x10041338], eax
mov dword [0x10041340], edx
jne 0x1001938b
test eax, eax
jne 0x100192e3
mov dword [0x10041330], 1
mov byte [0x1004132a], 1
pop esi
add esp, 0xc4
ret
cmp eax, 1
jne 0x100192ff
mov dword [0x10041330], 2
mov byte [0x1004132a], al
pop esi
add esp, 0xc4
ret
cmp eax, 2
jne 0x10019428
cmp byte [esp + 0xc6], 1
jne 0x10019333
cmp word [esp + 8], 9
jne 0x10019333
mov dword [0x10041330], 3
mov byte [0x1004132a], 1
pop esi
add esp, 0xc4
ret
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
je 0x10019372
cmp word [esp + 0xc4], 0x8000
je 0x10019372
push 0x59
call esi
test eax, eax
je 0x10019428
mov dword [0x10041330], 5
mov byte [0x1004132a], 1
pop esi
add esp, 0xc4
ret
mov dword [0x10041330], 4
mov byte [0x1004132a], 1
pop esi
add esp, 0xc4
ret
cmp ecx, 6
jne 0x10019428
test eax, eax
jne 0x100193bb
mov dl, byte [esp + 0xc6]
mov byte [0x1004132a], 1
cmp dl, 1
pop esi
setne al
add eax, ecx
mov dword [0x10041330], eax
add esp, 0xc4
ret
cmp eax, 1
jne 0x100193e3
mov cl, byte [esp + 0xc6]
mov byte [0x1004132a], al
dec cl
pop esi
neg cl
sbb ecx, ecx
add ecx, 9
mov dword [0x10041330], ecx
add esp, 0xc4
ret
cmp eax, 2
jne 0x10019428
mov dword [0x10041330], 0xa
mov byte [0x1004132a], 1
pop esi
add esp, 0xc4
ret
push 0
call fcn.10013550
add esp, 4
lea ecx, [esp + 4]
push eax
push str._comm__detect_OS_type_failed:__s
push str._error_
call fcn.100132b0
push eax
call fcn.100132c0
add esp, 0xc
mov byte [0x1004132a], 1
pop esi
add esp, 0xc4
ret
Function at 0x100195d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea edx, [esp]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10019611
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
mov dword [ecx], edx
add esp, 8
ret 8

Function at 0x1001a2a0
Capabilities:
Create directory

Disassembly:
sub esp, 0x118
push ebx
mov ebx, dword [esp + 0x120]
push ebp
xor ebp, ebp
mov eax, dword [ebx + 4]
push esi
cmp eax, ebp
jne 0x1001a2be
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push eax
call esi
test eax, eax
jne 0x1001a3c4
push edi
mov ecx, 0x40
lea edi, [esp + 0x25]
mov byte [esp + 0x24], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx + 4]
cmp eax, ebp
jne 0x1001a2ee
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea eax, [esp + 0x28]
push 0x1003574c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
je 0x1001a3ae
lea edx, [esp + 0x24]
push edx
call esi
test eax, eax
jne 0x1001a3ae
mov al, byte [esp + 0x13]
lea edi, [esp + 0x24]
mov byte [esp + 0x14], al
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov ebp, ecx
push 1
push ebp
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1001a37d
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
lea ecx, [esp + 0x14]
push ecx
call fcn.1001a2a0
mov ecx, dword [esp + 0x1c]
add esp, 4
test ecx, ecx
je 0x1001a3ae
mov al, byte [ecx - 1]
test al, al
je 0x1001a3a4
cmp al, 0xff
je 0x1001a3a4
dec al
mov byte [ecx - 1], al
jmp 0x1001a3ae
dec ecx
push ecx
call fcn.1002eb22
add esp, 4
mov eax, dword [ebx + 4]
pop edi
test eax, eax
jne 0x1001a3bb
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x1001a590
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1001a5ad
push str.Wow64Redirection::restore_____
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 8]
push eax
call dword [esi + 0xc]
pop esi
ret 4
Function at 0x1001aaa0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1001aac7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001aabd
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
ret
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret

Function at 0x1001aad0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x90
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x21
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0xa0]
lea eax, [esp + 0x14]
push 0x1001
push eax
push edi
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
push ebx
cmp esi, ebx
jne 0x1001ab40
call fcn.10013550
add esp, 4
lea ecx, [esp + 0xc]
push eax
push edi
push str._comm__write_file__s__OpenFile_failed:__s
push 0x10035874
call fcn.100132b0
push eax
call fcn.100132c0
add esp, 0x10
mov al, bl
pop edi
pop esi
pop ebx
add esp, 0x90
ret
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001ab9a
push ebx
call fcn.10013550
add esp, 4
lea ecx, [esp + 0xc]
push eax
push edi
push str._comm__write_file__s__WriteFile_failed:__s
push 0x100358a8
call fcn.100132b0
push eax
call fcn.100132c0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x90
ret
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x90
ret

Function at 0x1001abb0
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
sete bl
test bl, bl
jne 0x1001abef
push 0
call fcn.10013550
add esp, 4
lea ecx, [esp + 0xc]
push eax
push esi
push str._comm__del__s__failed:__s
push 0x100358e0
call fcn.100132b0
push eax
call fcn.100132c0
add esp, 0x10
mov al, bl
pop esi
pop ebx
ret

Function at 0x1001ac00
Capabilities:
Copy file

Disassembly:
mov dl, byte [esp + 0xc]
mov ecx, dword [esp + 8]
xor eax, eax
test dl, dl
mov edx, dword [esp + 4]
sete al
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, 1
sete al
ret

Function at 0x1001b240
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [ecx + 0x134]
xor eax, eax
test ecx, ecx
je 0x1001b262
mov eax, dword [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push eax
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
ret 8

Function at 0x1001b270
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [ecx + 0x134]
xor eax, eax
test ecx, ecx
je 0x1001b292
mov eax, dword [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push eax
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
ret 8
Function at 0x1001b480
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov eax, 0x1114
call fcn.1002ece0
mov eax, dword [0x10035a64]
push esi
mov esi, dword [esp + 0x111c]
push edi
cmp esi, eax
jb 0x1001b641
mov eax, dword [esp + 0x1124]
test eax, eax
je 0x1001b641
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x1c]
cmp esi, 8
rep stosd dword es:[edi], eax
mov ecx, 0x240
lea edi, [esp + 0x81c]
rep stosd dword es:[edi], eax
jbe 0x1001b4d1
xor esi, esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x14]
push str.GWCLI
shl esi, 4
add esi, 0x10035a6c
and ecx, 0xffff
push esi
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x1e]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
push str.__02d__02d__02d:_02d:_02d___s___s_
lea eax, [esp + 0x3c]
push 0x800
push eax
call fcn.1001b650
mov edx, dword [esp + 0x114c]
lea ecx, [esp + 0x1150]
push ecx
push edx
lea eax, [esp + 0x84c]
push 0x800
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
mov esi, dword [sym.imp.MSVCRT.dll_strncat]
lea ecx, [esp + 0x854]
push 0x7ff
lea edx, [esp + 0x58]
push ecx
push edx
call esi
add esp, 0x44
lea eax, [esp + 0x1c]
mov byte [esp + 0x81b], 0
push 0x10035b50
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
push 0x7ff
lea ecx, [esp + 0x20]
push 0x10035b54
push ecx
call esi
mov al, byte [0x10035a68]
add esp, 0xc
test al, 1
mov byte [esp + 0x81b], 0
je 0x1001b5bd
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [0x10035a68], 2
je 0x1001b641
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push str.c:gwlog.txt
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001b641
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push esi
call edi
cmp eax, 0x20000
jbe 0x1001b618
push 0
push 0
push 0
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [esp + 8]
push 0
push eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x1114
ret
Function at 0x10020ab0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
mov eax, dword [0x100477f0]
mov dword [esp], str.getaddrinfo
test eax, eax
mov dword [esp + 4], 0x10020030
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x10020770
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x1001ffe0
je 0x10020b0b
mov eax, dword [esp + 0x230]
and eax, 0xffff
mov eax, dword [eax*8 + 0x1003626c]
add esp, 0x22c
ret 4
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x134]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10020c54
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ws2_32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
and ecx, 3
lea eax, [esp + 0x28]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10020bac
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x10020c24
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.wship6
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov esi, eax
test esi, esi
je 0x10020c54
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x10020c24
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10020c54
xor ebx, ebx
lea edi, [esp + 0x14]
mov ecx, dword [edi - 4]
push ecx
push esi
call ebp
test eax, eax
mov dword [edi], eax
je 0x10020c1b
inc ebx
add edi, 8
cmp ebx, 3
jl 0x10020c2a
xor eax, eax
mov edx, dword [esp + eax + 0x14]
mov dword [eax + 0x1003626c], edx
add eax, 8
cmp eax, 0x18
jl 0x10020c42
mov eax, dword [esp + 0x240]
pop edi
and eax, 0xffff
pop esi
pop ebp
mov dword [0x100477f0], 1
mov eax, dword [eax*8 + 0x1003626c]
pop ebx
add esp, 0x22c
ret 4
Function at 0x10020f40
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
push 0
push 0xa
xor bl, bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10020fc2
push ebp
lea eax, [esp + 0xc]
push edi
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
cmp eax, 1
jne 0x10020fae
mov edi, dword [esp + 0x140]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x34]
push ecx
push edi
call ebp
test eax, eax
je 0x10020f9f
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
jne 0x10020fae
jmp 0x10020f81
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x18]
mov bl, 1
mov dword [eax], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov al, bl
pop esi
pop ebx
add esp, 0x128
ret
mov al, bl
pop esi
pop ebx
add esp, 0x128
ret
Function at 0x10021540
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc80
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x8d]
mov byte [esp + 0x8c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x48d]
mov byte [esp + 0x48c], bl
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0xc98]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
lea eax, [esp + 0x10]
push str.___s__
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x8c]
lea edx, [esp + 0xc]
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x48c]
push eax
push esi
push str._s_s
push ecx
call edi
mov esi, dword [esp + 0xca0]
mov eax, dword [esp + 0xca4]
add esp, 0x10
mov byte [esi + eax], bl
inc eax
xor ecx, ecx
mov dl, byte [esp + ecx + 0x48c]
cmp dl, bl
je 0x1002160f
mov byte [eax + esi], dl
inc eax
inc ecx
cmp ecx, 0x800
jl 0x100215f7
mov byte [eax + esi + 1], bl
mov byte [eax + esi + 2], bl
pop edi
pop esi
pop ebx
add esp, 0xc80
ret