joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466900
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x46694a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x466979
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x4669bb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x469720
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x469786
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x469786
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x469767
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x46a2c0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0046a410
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x46a2e0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x46a2c1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0046a410
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x46a2e0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x46a310
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x46a367
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x46a37d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0046a3a0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x46a3a0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x46a430
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x46a479
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x46a8f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491cf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0046a4a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0046a520
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0046a520
lea ecx, [esi + 0xc]
call fcn.00482c8a
lea ecx, [esi + 0x10]
call fcn.00482c8a
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0046cd50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0046cd50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0046cd50
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00482cff
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00482cff
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x46b598
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x491f18
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x46b5a8
call fcn.0046bac0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x46b68b
cmp byte [edi], 0
je 0x46b68b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x46b5cd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0046a2c0
test eax, eax
jne 0x46b5ed
push 0x6d8138
lea ecx, [esi + 0x38]
call fcn.00482e3c
jmp 0x46b68b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0046a310
test eax, eax
jne 0x46b61c
mov ecx, esi
call fcn.0046a410
push edi
add esi, 0x38
push 0x6d8114
push esi
call fcn.00480ad7
add esp, 0xc
jmp 0x46b68b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0046c340
test eax, eax
je 0x46b684
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0046b760
test eax, eax
jne 0x46b6a0
push edi
lea eax, [esi + 0x38]
push 0x6d80f0
push eax
call fcn.00480ad7
add esp, 0xc
mov ecx, esi
call fcn.0046bac0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x46b748
mov ecx, dword [0x6d83d8]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push 0x6d80e4
push eax
mov dword [esp + 0x80], 0
call fcn.00480ad7
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0046a3c0
test eax, eax
jne 0x46b70a
push 0x6d80d4
lea ecx, [esi + 0x38]
call fcn.00482e3c
jmp 0x46b71a
push 0xfa
mov ecx, esi
call fcn.0046c340
test eax, eax
jne 0x46b737
mov ecx, esi
call fcn.0046bac0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00482cff
jmp 0x46b68b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00482cff
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x46d890
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x46d933
test eax, eax
jbe 0x46d933
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x46d933
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46d8de
xor esi, esi
jmp 0x46d8e4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46d90f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00411a00
add esi, eax
push esi
mov ebx, esi
call fcn.00411a00
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x46d8f0
pop ebp
test edi, edi
pop edi
jne 0x46d933
test ebx, ebx
je 0x46d933
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00473130
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x46da75
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46db8d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46db8d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004846ff
mov esi, eax
test esi, esi
je 0x46db8d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46db8d
mov ecx, esi
call fcn.0046d9e0
cmp edi, eax
jge 0x46db8d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x46db13
mov dword [esp + 0x34], 1
jmp 0x46db6e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46db8d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046cfa0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4850a3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4850db
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048315a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00483132
jmp 0x4850e7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x486798
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4867da
call fcn.0048c36f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4867da
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4867d1
xor eax, eax
jmp 0x4867e2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004867e8
pop edi
pop esi
pop ebx
ret 4

Function at 0x48c89f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48c8cd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48c8eb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048c805
jmp 0x48c8eb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48c8eb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048c805
test edi, edi
mov eax, edi
jne 0x48c8d5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401520
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2cc
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x4001
push 0x160
lea eax, [esp + 0x18]
push eax
push 0
push 0x45a0b4
call ebx
push eax
mov ecx, esi
call fcn.0041a191
push 0x4100
push 0x160
lea ecx, [esp + 0x178]
push ecx
push 0
push 0x45a0b4
call ebx
push eax
mov ecx, edi
call fcn.0041a191
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00435327
mov esp, ebp
pop ebp
ret 8

Function at 0x401890
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x170
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x16c], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
test eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], ebx
jne 0x4018c1
lea eax, [ecx + 0x18]
jmp 0x4018d0
push eax
lea ecx, [esp + 0x10]
call fcn.004029f0
mov ebx, 1
mov edx, dword [eax]
push 0x400
push 0x160
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test bl, 1
je 0x40190f
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40190f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x120]
push ecx
mov ecx, esi
call fcn.004029f0
mov ecx, dword [esp + 0x174]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00435327
mov esp, ebp
pop ebp
ret 8

Function at 0x401940
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x170
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x16c], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
test eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], ebx
jne 0x401971
lea eax, [ecx + 0x18]
jmp 0x401980
push eax
lea ecx, [esp + 0x10]
call fcn.004029f0
mov ebx, 1
mov edx, dword [eax]
push 0x200
push 0x160
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test bl, 1
je 0x4019bf
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004029f0
mov ecx, dword [esp + 0x174]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00435327
mov esp, ebp
pop ebp
ret 8
Function at 0x4019f0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x168], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
test eax, eax
mov dword [esp + 4], ebx
jne 0x401a1d
lea eax, [ecx + 0x18]
jmp 0x401a2c
push eax
lea ecx, [esp + 8]
call fcn.004029f0
mov ebx, 1
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
or ecx, 0x4000
push ecx
push 0x160
lea edx, [esp + 0x10]
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test bl, 1
je 0x401a70
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x16c]
mov eax, dword [esp + 0xc]
pop ebx
xor ecx, esp
call fcn.00435327
mov esp, ebp
pop ebp
ret 8

Function at 0x4022e0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x168
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x164], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push 0x160
lea edx, [esp + 8]
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x164]
mov eax, dword [esp + 4]
xor ecx, esp
call fcn.00435327
mov esp, ebp
pop ebp
ret 8

Function at 0x402ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402cb9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402cf4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402cf0
lea ebx, [ebx]
cmp esi, eax
jae 0x402cf4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402ce0
cmp esi, eax
jb 0x402cfa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406170
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ebx
mov edi, ecx
lea ecx, [esi + 1]
mov al, byte [esi]
add esi, 1
test al, al
jne 0x406197
sub esi, ecx
jne 0x4061bd
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00435327
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4061d4
push eax
call fcn.00419755
add esp, 4
mov dword [edi + 0x10], 0
add esi, 1
push esi
call fcn.0041975a
push esi
push 0
push eax
mov dword [edi + 0x10], eax
call fcn.00437770
mov eax, dword [edi + 0x10]
push ebx
push esi
push eax
call fcn.00436747
push 0x140
lea ecx, [esp + 0x30]
push 0
push ecx
call fcn.00437770
add esp, 0x28
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40622d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
jmp 0x406234
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00435327
mov esp, ebp
pop ebp
ret 4
Function at 0x406f50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov edi, ebp
mov al, byte [edi]
test al, al
je 0x406f9e
cmp al, 0x5c
je 0x406f9e
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x406f76
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.00435327
add esp, 0x108
ret
cmp byte [edi], 0
je 0x406f84
mov esi, edi
sub esi, ebp
test esi, esi
jle 0x406fe0
push esi
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.00436a57
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov byte [esp + esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406fd3
test al, 0x10
jne 0x406fe0
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add edi, 1
jmp 0x406f70
Function at 0x407e28
Capabilities:
Copy file

Disassembly:
sub esp, 8
cmp dword [esp + 0xc], 0
push esi
mov esi, ecx
mov dword [esp + 4], esi
je 0x407fa7
cmp dword [esi + 0x30], 0
je 0x407f9c
push ebx
push ebp
mov ebp, dword [esi + 0x14]
push edi
lea ecx, [ebp + 1]
mov al, byte [ebp]
add ebp, 1
test al, al
jne 0x407e48
sub ebp, ecx
add ebp, 0x200
push ebp
call fcn.0041975a
push ebp
mov ebx, eax
call fcn.0041975a
push 0x24
mov dword [esp + 0x20], eax
call fcn.0041972a
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [esp + 0x28], eax
mov dword [eax + 0x20], ecx
mov eax, dword [esi + 0x30]
add esp, 0xc
push eax
lea edi, [esp + 0x20]
call fcn.00404f10
test eax, eax
je 0x407f8c
jmp 0x407eb0
push ebp
push 0
push ebx
call fcn.00437770
mov eax, dword [esp + 0x20]
push ebp
push 0
push eax
call fcn.00437770
mov ecx, dword [esi + 0xc]
push ecx
push ebp
push ebx
call fcn.00436747
mov esi, dword [esp + 0x40]
mov edx, dword [esi + 0x10]
push edx
push ebp
push ebx
call fcn.00436905
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x14]
mov edi, dword [esp + 0x44]
push ecx
push ebp
push edi
call fcn.00436747
mov edx, dword [esi + 0x14]
push edx
push ebp
push edi
call fcn.00436905
add esp, 0x48
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esi + 0x10]
xor edi, edi
cmp eax, edi
je 0x407f20
push eax
call fcn.00419755
add esp, 4
mov dword [esi + 0x10], edi
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x407f33
push eax
call fcn.00419755
add esp, 4
mov dword [esi + 0x14], edi
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x407f46
push eax
call fcn.00419755
add esp, 4
mov dword [esi + 0x18], edi
xor eax, eax
mov dword [esi + 4], 3
mov dword [esi], 4
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x30]
push eax
lea edi, [esp + 0x20]
call fcn.00404f10
test eax, eax
mov esi, dword [esp + 0x10]
jne 0x407eb0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00419755
add esp, 4
pop edi
pop ebp
pop ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push 0
mov ecx, esi
call eax
mov eax, 1
pop esi
add esp, 8
ret 4