joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463d40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49ffc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004911d1
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00496949
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00497ea1
test eax, eax
je 0x463e5c
mov ecx, dword [esp + 0x3c]
call fcn.00496976
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x463e20
push edi
mov ecx, esi
call fcn.00493f32
mov ecx, esi
call fcn.00463fc0
cmp dword [esp + 0x38], 1
jne 0x463e55
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0049409c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x466890
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4668c3
push esi
call fcn.00469980
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4668bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x466949
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x466932
mov eax, dword [esi + 8]
test eax, eax
je 0x4668e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46692e
cmp eax, 2
je 0x466932
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4668da
cmp eax, 3
je 0x46690d
cmp eax, 1
jne 0x4668da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4668da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4668da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00466970
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x466958
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00466970
add esp, 4
pop esi
ret

Function at 0x473900
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 0x473966
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 0x473966
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x473947
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x473cf0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x473d28
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x474a00
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 0x474a49
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 0x474ec0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a0760
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.00474a70
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00474af0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00474af0
lea ecx, [esi + 0xc]
call fcn.0048fb37
lea ecx, [esi + 0x10]
call fcn.0048fb37
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00476080
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00476080
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00476080
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0048fbac
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048fbac
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x491fc6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x491ffe
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.00490053
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049002b
jmp 0x49200a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4936bb
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 0x4936fd
call fcn.0049965e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4936fd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4936f4
xor eax, eax
jmp 0x493705
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049370b
pop edi
pop esi
pop ebx
ret 4

Function at 0x499b8e
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 0x499bbc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x499bda
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00499af4
jmp 0x499bda
mov eax, dword [esi + 0x14]
test eax, eax
je 0x499bda
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00499af4
test edi, edi
mov eax, edi
jne 0x499bc4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401b40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x438211
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44aaf0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
mov dword [ebp], vtable.CConfigManage.0
lea esi, [ebp + 4]
call fcn.00412a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401b8c
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x1c], 0
lea ebx, [ebp + 8]
call fcn.00412a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401bbf
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x1c], 1
lea edi, [ebp + 0xc]
call fcn.00412a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401bef
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push 8
push str.ESALES09
mov ecx, edi
mov byte [esp + 0x24], 2
call fcn.00402080
push 8
push str.ESALES10
mov ecx, ebx
call fcn.00402080
mov eax, dword [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x200
or ecx, edx
jge 0x401c44
push 0x200
mov ecx, esi
call fcn.004021f0
mov eax, dword [esi]
push str..CFG.ini
push 0x200
push eax
push 0x43f1c0
push str.LINK_STRING
push str.ConnectInformation
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esi]
test ecx, ecx
jne 0x401c70
xor eax, eax
jmp 0x401c82
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401c75
sub eax, edi
js 0x401ccd
cmp eax, dword [ecx - 8]
jg 0x401ccd
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, dword [esi]
push 0x43f1c0
push eax
call fcn.00422fef
add esp, 8
test eax, eax
jne 0x401cb5
push 0x8c
push str.VCCrRpylax42b7NWORv3GDbz5STMH25E7ZTHvB_iGvtGYMKKw3eGo9v2ujYHiYiN_EdkYsi4vgbExRdGR_jQKaKKFD9WC4SUchkC6DnwlVZNkvwnHULJu70r33_3ibhuYsgVtSc8o
mov ecx, esi
call fcn.00402080
mov eax, ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push 0x80070057
call fcn.00401ed0
int3

Function at 0x403f20
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 0x403f39
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403f74
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403f70
lea ebx, [ebx]
cmp esi, eax
jae 0x403f74
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403f60
cmp esi, eax
jb 0x403f7a
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 0x406a70
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, eax
shr ecx, 4
xor ecx, esi
and ecx, 0xf0f0f0f
xor esi, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, esi
and ecx, 0xffff
xor esi, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, esi
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
add ecx, ecx
add ecx, ecx
xor esi, ecx
mov ecx, esi
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor ecx, esi
rol ecx, 1
mov esi, ecx
xor ecx, eax
and ecx, 0xaaaaaaaa
xor esi, ecx
xor ecx, eax
rol ecx, 1
push edi
mov edi, ecx
mov dword [esp + 0x10], 8
jmp 0x406af0
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x44c040]
or ecx, dword [ebx*4 + 0x44c240]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x44c440]
and eax, 0x3f
or ecx, dword [eax*4 + 0x44c640]
mov eax, dword [edx]
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x44c140]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x44c340]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x44c540]
and eax, 0x3f
or ebx, dword [eax*4 + 0x44c740]
add edx, 4
or ebx, ecx
xor edi, ebx
mov eax, edi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x44c040]
or ecx, dword [ebx*4 + 0x44c240]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x44c440]
and eax, 0x3f
or ecx, dword [eax*4 + 0x44c640]
mov eax, dword [edx]
xor eax, edi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x44c140]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x44c340]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x44c540]
and eax, 0x3f
or ebx, dword [eax*4 + 0x44c740]
add edx, 4
or ebx, ecx
xor esi, ebx
sub dword [esp + 0x10], 1
jne 0x406af0
ror esi, 1
mov eax, esi
xor eax, edi
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, edi
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
lea edx, [ecx*4]
mov ecx, esi
shr ecx, 0x10
xor eax, edx
mov edx, dword [esp + 0x18]
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
pop esi
xor ecx, eax
pop ebp
mov dword [edx + 4], ecx
pop ebx
pop ecx
ret 4
Function at 0x408200
Capabilities:
Terminate thread

Disassembly:
push ecx
mov eax, dword [esi + 0x184]
test eax, eax
je 0x408234
lea ecx, [esp]
mov dword [esp], 0
mov edx, dword [eax + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esp]
mov ecx, dword [esi + 0x184]
mov edx, dword [ecx + 0x2c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop ecx
ret
Function at 0x408fe0
Capabilities:
Terminate thread

Disassembly:
call fcn.00412530
test eax, eax
je 0x40908f
call fcn.00412530
mov eax, dword [esp + 4]
push eax
call fcn.00412810
test eax, eax
je 0x40908f
push 0x441958
lea ecx, [esp + 8]
call fcn.00403ce0
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 0x409032
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040fd40
push 0x43f1fc
push 0x441970
call fcn.0040fe10
add esp, 8
push 0x20
push 0x441984
lea ecx, [esi + 0x190]
call fcn.00402080
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0xc04
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x44f540]
test ecx, ecx
je 0x40908a
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [0x44f540], 0
xor eax, eax
ret 4
push 0x4419a8
lea ecx, [esp + 8]
call fcn.00403ce0
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 0x4090bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040fd40
push 0x43f1fc
push 0x4419c0
call fcn.0040fe10
mov eax, dword [esi + 0x184]
add esp, 8
test eax, eax
je 0x40910a
lea ecx, [esp + 4]
mov dword [esp + 4], 0
mov edx, dword [eax + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esp + 4]
mov ecx, dword [esi + 0x184]
mov edx, dword [ecx + 0x2c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x20]
push 0
push 0
push 0xc02
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x4419d4
call fcn.004172c7
mov eax, 1
ret 4
Function at 0x40def0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x18
push edi
push 5
push 0x3ee
mov ecx, esi
call fcn.0041ce45
mov ecx, eax
call fcn.0041cf9c
push 0
push 0x3e8
mov ecx, esi
call fcn.0041ce45
mov ecx, eax
call fcn.0041cf9c
push 0
push 0x3ea
mov ecx, esi
call fcn.0041ce45
mov ecx, eax
call fcn.0041cf9c
push 0
push 0x3e9
mov ecx, esi
call fcn.0041ce45
mov ecx, eax
call fcn.0041cf9c
push 0
push 0x3eb
mov ecx, esi
call fcn.0041ce45
mov ecx, eax
call fcn.0041cf9c
push 0
push 0x3f9
mov ecx, esi
call fcn.0041ce45
mov ecx, eax
call fcn.0041cf9c
mov ecx, dword [esi + 0x20]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x14]
sub edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
push 1
sub edx, 0x10e
push edx
push eax
push 0x15e
push 0x1c2
mov ecx, esi
call fcn.0041cf5e
push 8
push 0x44235c
lea ecx, [esi + 0x190]
call fcn.00402080
mov ecx, dword [esi + 0x144]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 1
push 0x402
push ecx
call edi
push 0
mov ecx, esi
call fcn.0041916f
push str.ESales_bin
lea edx, [esi + 0x178]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004039e0
mov ecx, dword [eax]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e021
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 0
push 0
push esi
push 0x4081c0
call fcn.00416b4d
push 0
push 0
push 0
push 0
push esi
push 0x408240
mov dword [esi + 0x184], eax
call fcn.00416b4d
push 0x441d8c
lea ecx, [esp + 8]
mov dword [esi + 0x188], eax
call fcn.00403ce0
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 0x40e081
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0xc04
push ecx
call edi
mov ecx, esi
call fcn.0040a280
test eax, eax
jne 0x40e0a8
mov edx, dword [esi + 0x198]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
pop edi
add esp, 0x18
ret
Function at 0x40f6d0
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x438b30
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44aaf0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, edx
lea ecx, [esp + 0x38]
call fcn.0041dcb7
mov dword [esp + 0x5c], 0
mov eax, dword [ebx]
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.0041dd43
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.0041dcb7
mov byte [esp + 0x5c], 1
mov eax, dword [edi]
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.0041dd43
test esi, esi
jne 0x40f744
test eax, eax
je 0x40f83f
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
mov eax, dword [edi]
and esi, 0xfffffffe
push esi
push eax
call ebp
mov eax, dword [ebx]
mov ecx, dword [edi]
push 8
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
mov ebx, eax
mov eax, dword [edi]
and esi, 1
push esi
push eax
call ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f862
test ebx, ebx
jne 0x40f862
call fcn.00412a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f7ad
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov bl, 2
mov byte [esp + 0x5c], bl
mov ecx, dword [edi]
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x20]
push str._s___s__
push ecx
call fcn.00405da0
call fcn.0040fd40
add esp, 0xc
mov ecx, esp
mov dword [esp + 0x68], esp
push 0x43f1fc
call fcn.00403ce0
mov byte [esp + 0x60], 3
mov esi, dword [esp + 0x1c]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
push esi
call fcn.00401f40
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x64], bl
call fcn.0040ff80
add esp, 8
mov byte [esp + 0x5c], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40f83f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 0
call fcn.0041dcdb
lea ecx, [esp + 0x38]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0041dcdb
xor eax, eax
jmp 0x40f886
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 0
call fcn.0041dcdb
lea ecx, [esp + 0x38]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0041dcdb
mov eax, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4
Function at 0x40fe10
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x438ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x44aaf0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x44f534]
push eax
call fcn.0040fbc0
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403ce0
mov edx, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call fcn.00403ce0
push str.ESalesUpdate.log
lea eax, [esp + 0xc]
push 0x44f620
push eax
mov byte [esp + 0x34], 1
call fcn.004039e0
mov byte [esp + 0x34], 2
mov eax, dword [esp + 0x18]
add esp, 8
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00401f40
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00401f40
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x34], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00401f40
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [esp + 0x34], 2
call fcn.004100c0
mov ecx, dword [0x44f534]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
add esp, 0xc
call eax
mov byte [esp + 0x28], 1
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
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 0x40ff3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret