joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447c2c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x447c43
add esp, 0xfffffff0
call fcn.00403194
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00414900
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40e840]
call fcn.00402e64
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40e840]
call fcn.00402e64
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x416758]
call fcn.0041e3e4
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x447db8
mov eax, dword [0x49ee98]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041e7b4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449614
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49ee98]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c2b4
test eax, eax
je 0x447d36
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b0c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c2dc
test eax, eax
je 0x447d4a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403dc0
mov eax, dword [0x49ed44]
cmp byte [eax], 0
jne 0x447d7b
mov eax, ebx
call fcn.00447ea4
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x447dad
call fcn.004031ec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x448114
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4a07d0]
cmp dword [eax + 0x24], 0
je 0x4481b7
cmp dword [ebx + 0x84], 0
jne 0x4481b1
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4480a4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x4481b1
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44817a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4481b1
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040ff04
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x448189
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x448bc4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x448bf9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c78
jmp 0x448c03
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403be4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x449988
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x4499c0
mov eax, esi
call fcn.0043059c
test al, al
je 0x4499c0
mov eax, dword [ebx + 0x74]
call fcn.004302a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4499c0
push 0
mov eax, dword [ebx + 0x74]
call fcn.004302a0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44e5fc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
jmp 0x44e615
mov eax, dword [0x49f008]
mov eax, dword [eax]
call fcn.00448e6c
call sub.kernel32.dll_GetTickCount
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x44e63f
cmp eax, dword [esp]
pop edx
pop eax
ja 0x44e609
pop esi
pop ebx
ret
pop edx
pop eax
jg 0x44e609
pop esi
pop ebx
ret
Function at 0x45f178
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x45f18e
add esp, 0xfffffff0
call fcn.00403194
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x45f2c3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.00414900
mov byte [edi + 0x40], 3
mov dword [edi + 0x4c], 0x1fffffff
mov al, byte [0x45f2e8]
mov byte [edi + 0x2c], al
xor ecx, ecx
mov dl, 1
mov eax, dword [0x45ec2c]
call fcn.0045f488
mov dword [edi + 0x30], eax
xor eax, eax
mov dword [edi + 0x98], eax
test byte [edi + 0x20], 0x10
jne 0x45f22a
mov byte [edi + 0xa0], 0
lea edx, [ebp - 8]
xor eax, eax
call fcn.004028fc
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004089b0
mov eax, dword [ebp - 4]
call fcn.00403fd4
push eax
push 0
push 0
call sub.kernel32.dll_CreateMutexA
mov esi, eax
mov dword [edi + 0x9c], esi
test esi, esi
je 0x45f22a
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
jne 0x45f22a
mov byte [edi + 0xa0], 1
push 0x32
xor ecx, ecx
mov dl, 1
mov eax, dword [0x45eef4]
call fcn.0045f788
mov dword [edi + 0x50], eax
mov byte [edi + 0x60], 0
xor eax, eax
mov dword [edi + 0x64], eax
mov byte [edi + 0x54], 2
xor edx, edx
mov eax, edi
call fcn.0045f090
mov dword [edi + 0x5c], 0xffffffff
xor eax, eax
mov dword [edi + 0x84], eax
xor eax, eax
mov dword [edi + 0x80], eax
mov byte [edi + 0x88], 0
mov al, byte [0x45f2ec]
mov byte [edi + 0x34], al
lea eax, [edi + 0x90]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
push 0x40a4
mov eax, dword [0x4a04dc]
push eax
call sub.user32.dll_LoadCursorA
mov ecx, eax
mov eax, dword [0x49f174]
mov eax, dword [eax]
mov edx, 0xffffff01
call fcn.00447384
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f2ca
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403bb4
ret
Function at 0x46c550
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46c7af
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x46c5b2
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0046c018
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040bf64
cmp al, 1
jne 0x46c5b2
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0046c330
test al, al
je 0x46c73e
cmp dword [ebp - 8], 0
jge 0x46c5d0
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0046c018
mov eax, dword [ebp - 0x210]
call fcn.00403e10
cmp ebx, eax
jge 0x46c61a
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0046c018
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x49f180]
and eax, 0xff
bt dword [edx], eax
jae 0x46c61a
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x46c62e
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0046c52c
cmp ebx, dword [ebp - 8]
je 0x46c730
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x46c65a
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403070
and eax, 0x7f
movzx eax, word [eax*2 + 0x49ddb0]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 1
xor eax, eax
push ebp
push 0x46c71d
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403070
and eax, 0x7f
movzx eax, word [eax*2 + 0x49ddb0]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004302a0
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403070
and eax, 0x7f
movzx eax, word [eax*2 + 0x49ddb0]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004302a0
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c724
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x218], edx
jmp 0x46c791
cmp dword [ebp - 8], 0
jge 0x46c749
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0046c018
mov eax, dword [ebp - 0x218]
call fcn.00403e10
cmp eax, dword [ebp - 8]
jg 0x46c783
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0046c018
mov eax, dword [ebp - 0x21c]
call fcn.00403e10
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0046c52c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c7b6
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00403bb4
ret
Function at 0x479e30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x156], 0
jne 0x479f21
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x479f21
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x150]
test ebx, ebx
je 0x479e6f
cmp byte [ebx + 0x51], 0
jne 0x479f21
mov eax, dword [ebp - 4]
cmp byte [eax + 0x138], 0
jne 0x479e8d
mov eax, dword [ebp - 4]
mov byte [eax + 0x178], 2
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x78]
xor edx, edx
push ebp
push 0x479f1a
push dword fs:[edx]
mov dword fs:[edx], esp
call sub.kernel32.dll_GetTickCount
mov ebx, eax
call sub.kernel32.dll_GetTickCount
mov edx, eax
sub edx, ebx
cmp edx, 0x14
jge 0x479eb4
cmp ebx, eax
jle 0x479ea2
mov eax, dword [ebp - 4]
cmp dword [eax + 0x128], 0
jne 0x479ecc
mov eax, dword [ebp - 4]
mov bx, 0xffec
call fcn.00403070
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479f21
mov eax, dword [ebp - 4]
mov byte [eax + 0x178], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x128], 0
jne 0x479ef9
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x78]
jmp 0x479f19
mov eax, dword [ebp - 4]
mov dl, byte [eax + 0x138]
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.0047a05c
mov eax, dword [ebp - 4]
mov bx, 0xffec
call fcn.00403070
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x488274
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4882a2
mov eax, ebx
call fcn.00488d18
cmp dword [ebx + 0x3c], 0
je 0x48829b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x488313
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x488305
cmp dword [ebx + 8], 0
je 0x4882c4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x4882d6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x488305
cmp dword [ebx + 8], 0
je 0x4882b7
cmp eax, 3
je 0x4882e9
dec eax
jne 0x4882b7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4882b7
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x4882b7
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x488331
cmp dword [ebx + 0x10], 0xcc
je 0x488331
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0048833c
pop ebx
ret
Function at 0x401080
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 0x4010b7
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 0x4010cd
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 0x4010fe
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401104
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 0x403e30
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409210
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 0x403e9f
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 0x403ece
mov dword [ebp - 4], 0
push esi
call fcn.00403e30
push esi
call fcn.00403ad0
add esp, 8
jmp 0x403ec7
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403f8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x403f7a
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 0x403ff0
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 0x404067
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 0x40405a
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
push eax
push 0x40c920
push ebx
mov dword [esp + 0x24], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40406f
test ebx, ebx
je 0x404067
push ebx
call fcn.00408f8c
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 0x404067
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 fcn.00408f8c
add esp, 4
mov eax, 1
pop esi
pop ebx
add esp, 8
ret
Function at 0x404420
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 0x40443e
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 0x404458
pop edi
pop esi
add esp, 0x14c
ret
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x404480
push eax
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x404480
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 0x4045fb
test ebx, ebx
jle 0x4044d4
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 0x4044f0
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 0x4045ea
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4045e3
cmp byte [esp + 0x48], 0x2e
je 0x4045cf
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 0x4045c7
test edi, edi
mov byte [esi], 0
jle 0x40458a
mov ecx, dword [esp + 0x160]
lea ebp, [edi - 1]
push ebp
push ecx
push esi
call ebx
push ebp
push 0x40c950
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 0x4045ac
mov eax, dword [esp + 0x168]
mov ecx, dword [esp + 0x164]
push eax
push ecx
push esi
call fcn.00404420
add esp, 0xc
jmp 0x4045bd
mov edx, dword [esp + 0x168]
push edx
push esi
call fcn.00403e60
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 0x40451f
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 0x4058a0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebp
xor ebp, ebp
push esi
push ebp
push 0xa
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x405922
push ebx
lea eax, [esp + 0xc]
push edi
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40590e
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x34]
push ecx
push edi
call ebx
test eax, eax
je 0x4058fc
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40590e
jmp 0x4058df
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x18]
mov ebp, 1
mov dword [eax], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret

Function at 0x407350
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x110]
mov ecx, ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
mov edx, ecx
push edi
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov byte [esp + 0x10], 0
and ecx, 3
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
rep stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push str.ProgramFiles
call esi
call fcn.004057b0
test eax, eax
je 0x4073da
mov al, byte [esp + 0x120]
test al, al
je 0x4073da
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push str.ProgramFiles_x86_
call esi
lea edx, [esp + 0x10]
push edx
push str._sGatewaySSLVPN
push ebx
push ebp
call fcn.00407850
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x407640
Capabilities:
Copy file
Delete file
Print debug messages
Write file on windows

Disassembly:
mov eax, 0x1114
call fcn.00408fe0
mov eax, dword [0x40d1c0]
push ebp
push esi
mov esi, dword [esp + 0x1120]
cmp esi, eax
push edi
jb 0x407839
mov eax, dword [esp + 0x1128]
test eax, eax
je 0x407839
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 0x407692
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, 0x40d1c8
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.00407850
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 0x40d2c8
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
push 0x7ff
lea ecx, [esp + 0x24]
push 0x40d2cc
push ecx
call esi
mov al, byte [0x40d1c4]
add esp, 0xc
test al, 1
mov byte [esp + 0x81f], 0
je 0x40777e
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [0x40d1c4], 2
je 0x407839
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 0x407839
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebp
push ebp
push esi
call edi
cmp eax, 0x400000
jbe 0x4077cf
mov ebp, 1
push 2
push 0
push 0
push esi
call edi
cmp eax, 0x500000
jbe 0x4077ef
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 0x407839
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