joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d30b6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x4d30eb
cmp edi, dword [esi + 0xc]
jge 0x4d30eb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d30eb
cmp edi, dword [eax + 8]
jge 0x4d30eb
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4d30ed
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d31f1
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4d3225
jmp fcn.004ca5d6
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x4d3296
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x4d338f
cmp eax, dword [edi + 0xc]
jge 0x4d338f
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4d32e7
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x4d3378
cmp dword [ebp + 0xc], ebx
je 0x4d3378
jmp 0x4d3311
push 0x10
call fcn.004d2f82
cmp eax, ebx
je 0x4d32fd
mov ecx, eax
call fcn.004d31e8
mov esi, eax
jmp 0x4d32ff
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4d3328
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4d3338
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4d334a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004ca5d6
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00488050
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4d338a
cmp ecx, dword [esi + 8]
jge 0x4d338a
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x4d3390
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x1001113
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001080
call fcn.01001314
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1001150
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001150
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001168
cmp eax, 0x20b
je 0x1001155
mov dword [ebp - 0x1c], ebx
jmp 0x100117c
cmp dword [ecx + 0x84], 0xe
jbe 0x1001150
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1001176
cmp dword [ecx + 0x74], 0xe
jbe 0x1001150
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002018], 0xffffffff
or dword [0x100201c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002014]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002020], eax
call fcn.0100130c
cmp dword [section..data], ebx
jne 0x10011d7
push fcn.0100130c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010012f5
push 0x1001058
push 0x1001054
call sub.msvcrt.dll__initterm
mov eax, dword [0x100200c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1002008]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1001050
push 0x100104c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x100126d
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1001241
cmp al, 0x22
jne 0x1001233
cmp byte [esi], 0x22
jne 0x100124a
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1001254
cmp al, 0x20
jbe 0x1001246
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1001278
movzx eax, word [ebp - 0x50]
jmp 0x100127b
cmp byte [esi], 0x20
jbe 0x100124a
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100126d
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1001298
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10012cd
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100134f
ret
Function at 0x4039dd
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
and dword [esp + 4], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], edi
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], eax
call fcn.004030bd
mov ebp, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
add ebp, 0x23f
mov edi, dword [esi + 8]
push 0x20
mov dword [esp + 0x28], eax
pop esi
mov dword [esp + 0x1c], 2
add dword [esp + 0x1c], 3
mov edx, dword [esp + 0x18]
mov eax, edx
shl eax, 4
add eax, edi
mov dword [esp + 0x20], 0xedeb2e40
cmp dword [0x66eee4], 0xfa9
mov dword [esp + 0x10], eax
lea ecx, [edx + ebp]
mov eax, dword [0x66ef28]
cmove eax, dword [esp + 0x20]
and dword [esp + 0x20], 0
cmp dword [0x66eee4], 0x3eb
mov dword [0x66ef28], eax
mov eax, dword [0x66ef30]
cmove eax, dword [esp + 0x20]
mov dword [0x66ef30], eax
mov eax, dword [esp + 0x18]
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x24]
xor eax, ecx
mov dword [0x66ef2c], 0xf4ea3dee
xor eax, dword [esp + 0x10]
sub ebx, eax
mov dword [esp + 0x14], eax
mov eax, ebx
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
mov eax, ebx
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], eax
lea eax, [ebx + ebp]
xor eax, dword [esp + 0x14]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
lea ebp, [ebp + 0x61c88647]
dec esi
jne 0x403a27
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x413eff
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4387d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004079b6
mov dword [ebp - 0x14], eax
cmp dword [0x6700b0], esi
jne 0x413ff2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x413f7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4140d2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4140d2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4140d2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x6700b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x6700b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x6700b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6700c0], eax
test eax, eax
je 0x413fef
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6700bc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x414017
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41400a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41402c
push 4
pop eax
jmp 0x4140d4
cmp dword [ebp - 0x14], esi
je 0x41402c
push dword [0x6700b0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x414011
mov eax, dword [0x6700bc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41408a
cmp dword [0x6700c0], edi
je 0x41408a
push eax
call ebx
push dword [0x6700c0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41408a
test eax, eax
je 0x41408a
call ecx
test eax, eax
je 0x41407f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41407f
test byte [ebp - 8], 1
jne 0x41408a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4140ba
mov eax, dword [0x6700b4]
cmp eax, edi
je 0x4140b7
push eax
call ebx
test eax, eax
je 0x4140b7
call eax
mov esi, eax
test esi, esi
je 0x4140b7
mov eax, dword [0x6700b8]
cmp eax, edi
je 0x4140b7
push eax
call ebx
test eax, eax
je 0x4140b7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x6700b0]
call ebx
test eax, eax
je 0x4140d2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4140d4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406bf0
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x70015ef
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0xe4f0134
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401037
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40104d
pop edi
pop esi
xor eax, eax
pop ebx
ret
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x18]
mov dword [ebx], eax
add eax, esi
lea edx, [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebx]
push 0
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40107e
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401084
mov dword [ebx], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x403d70
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x403d97
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403d8d
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 0x403da0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406cf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
test esi, esi
jne 0x403ddf
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403e0e
mov dword [ebp - 4], 0
push esi
call fcn.00403d70
push esi
call fcn.00403a50
add esp, 8
jmp 0x403e07
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403ece
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x403eba
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov byte [ebp - 0x128], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x16]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x18]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x1a]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x1c]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x1e]
and edx, 0xffff
push edx
push esi
push str._s._x_x_x_x_x
push 0x103
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x24
push 3
lea ecx, [ebp - 0x128]
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call esi
push 4
push 0
lea edx, [ebp - 0x128]
push edx
call esi
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403f30
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x14], eax
jle 0x403fa7
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x18]
add esp, 4
mov ebx, eax
push ebx
push ecx
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403f9a
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
push eax
push 0x4098c4
push ebx
mov dword [esp + 0x24], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x403faf
test ebx, ebx
je 0x403fa7
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov esi, dword [esp + 8]
push edi
mov ecx, 0xd
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
pop edi
je 0x403fa7
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x18]
shr ecx, 0x10
mov dword [edx], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x1c]
and eax, 0xffff
push ebx
mov dword [ecx], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x24]
shr edx, 0x10
mov dword [eax], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x28]
and ecx, 0xffff
mov dword [edx], ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
pop esi
pop ebx
add esp, 8
ret
Function at 0x404360
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x14c
push esi
mov esi, dword [esp + 0x154]
test esi, esi
push edi
jne 0x40437e
pop edi
xor eax, eax
pop esi
add esp, 0x14c
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
ja 0x404398
pop edi
pop esi
add esp, 0x14c
ret
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x4043c0
push eax
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x4043c0
pop edi
mov eax, 1
pop esi
add esp, 0x14c
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
mov ebp, ecx
mov ecx, 0x50
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ebp
lea ebx, [ebp + 5]
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x10], edi
je 0x40453b
test ebx, ebx
jle 0x404414
lea eax, [ebp + 4]
push eax
push esi
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [edi + ebp + 4], 0
test ebx, ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strncat]
jle 0x404430
lea ecx, [ebp + 4]
push ecx
push str..
push edi
call ebx
add esp, 0xc
mov byte [edi + ebp + 4], 0
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x40452a
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x404523
cmp byte [esp + 0x48], 0x2e
je 0x40450f
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ecx + ebp + 2]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x404507
test edi, edi
mov byte [esi], 0
jle 0x4044ca
mov ecx, dword [esp + 0x160]
lea ebp, [edi - 1]
push ebp
push ecx
push esi
call ebx
push ebp
push 0x4098f4
push esi
mov byte [esi + edi - 1], 0
call ebx
lea edx, [esp + 0x60]
push ebp
push edx
push esi
mov byte [esi + edi - 1], 0
call ebx
mov ebp, dword [esp + 0x3c]
add esp, 0x24
mov byte [esi + edi - 1], 0
test byte [esp + 0x1c], 0x10
je 0x4044ec
mov eax, dword [esp + 0x168]
mov ecx, dword [esp + 0x164]
push eax
push ecx
push esi
call fcn.00404360
add esp, 0xc
jmp 0x4044fd
mov edx, dword [esp + 0x168]
push edx
push esi
call fcn.00403da0
add esp, 8
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40445f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [esp + 0x164]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x14c
ret
Function at 0x4051f0
Capabilities:
Copy file
Delete file
Print debug messages
Write file on windows

Disassembly:
mov eax, 0x1114
call fcn.00406a80
mov eax, dword [0x409df4]
push ebp
push esi
mov esi, dword [esp + 0x1120]
cmp esi, eax
push edi
jb 0x4053e9
mov eax, dword [esp + 0x1128]
test eax, eax
je 0x4053e9
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x20]
cmp esi, 8
rep stosd dword es:[edi], eax
mov ecx, 0x240
lea edi, [esp + 0x820]
rep stosd dword es:[edi], eax
jbe 0x405242
xor esi, esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1a]
mov eax, dword [esp + 0x18]
push str.GWCLI
shl esi, 4
add esi, 0x409dfc
and ecx, 0xffff
push esi
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x22]
push edx
mov edx, dword [esp + 0x22]
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 + 0x40]
push 0x800
push eax
call fcn.00405400
mov edx, dword [esp + 0x1150]
lea ecx, [esp + 0x1154]
push ecx
push edx
lea eax, [esp + 0x850]
push 0x800
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
mov esi, dword [sym.imp.MSVCRT.dll_strncat]
lea ecx, [esp + 0x858]
push 0x7ff
lea edx, [esp + 0x5c]
push ecx
push edx
call esi
add esp, 0x44
lea eax, [esp + 0x20]
mov byte [esp + 0x81f], 0
push 0x409f58
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
push 0x7ff
lea ecx, [esp + 0x24]
push 0x409f5c
push ecx
call esi
mov al, byte [0x409df8]
add esp, 0xc
test al, 1
mov byte [esp + 0x81f], 0
je 0x40532e
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [0x409df8], 2
je 0x4053e9
xor ebp, ebp
push ebp
push 0x80
push 4
push ebp
push ebp
push 0x40000000
push str.c:gwlog.txt
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4053e9
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebp
push ebp
push esi
call edi
cmp eax, 0x400000
jbe 0x40537f
mov ebp, 1
push 2
push 0
push 0
push esi
call edi
cmp eax, 0x500000
jbe 0x40539f
push 0
push 0
push 0
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [esp + 0xc]
push 0
push eax
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x4053e9
push 0
push str.c:gwlogbk.txt
push str.c:gwlog.txt
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str.c:gwlog.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
add esp, 0x1114
ret
Function at 0x4057d0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x120
lea ecx, [esp + 8]
push ebx
push ebp
push esi
push edi
call fcn.00405440
mov edi, dword [esp + 0x13c]
mov esi, 0x10008
test edi, edi
je 0x4057f8
mov esi, 0x10108
mov ebx, dword [esp + 0x138]
test ebx, ebx
jne 0x40581c
lea ecx, [esp + 0x18]
call fcn.00405450
pop edi
pop esi
pop ebp
mov eax, 0x3f2
pop ebx
add esp, 0x120
ret
mov ebp, dword [esp + 0x134]
push edi
push ebx
push ebp
call fcn.00405900
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4058df
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x40]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x405898
test esi, esi
jne 0x4058d4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push edi
push ecx
push edx
call fcn.004057d0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x405848
jmp 0x4058d4
lea ecx, [esp + 0x24]
call fcn.00405440
push edi
push ebx
push ebp
call fcn.00405900
add esp, 0xc
test edi, edi
je 0x4058c1
push edi
push ebx
push ebp
call fcn.00405760
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4058cb
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
lea ecx, [esp + 0x24]
call fcn.00405450
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.00405450
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret

Function at 0x4062f0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
mov eax, 1
ret