joyce8/EMBER2024-capa huggingface dataset:
Function at 0x673d3610
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x67406bdb
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x67460ecc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov dword [esp + 0x1c], 0
push 0x104
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
push 0
push 0x21
mov edi, eax
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov byte [esp + 0x1c], 1
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_4074]
push 0x6742ccd4
push str.http:__
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_5485]
push 0x6742ccd4
push str.www.
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_5485]
push 0x6742ccd4
push str..com
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_5485]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
mov ecx, esi
call fcn.673d2b40
push str.Low
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.67360580
add esp, 0xc
mov edi, eax
mov byte [esp + 0x1c], 2
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
mov ecx, esi
call fcn.673d2b40
mov byte [esp + 0x1c], 1
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 8
Function at 0x673d53b0
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x67406f7f
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x67460ecc]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
push edi
mov eax, dword [0x67460ecc]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov edi, dword [esp + 0x248]
lea esi, [ecx + 0x24]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_3927]
test al, al
jne 0x673d5418
push esi
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
jmp 0x673d54c2
push 0x206
lea eax, [esp + 0x32]
push ebx
push eax
mov word [esp + 0x38], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x673d54b9
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov dword [esp + 0x240], 1
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.ole32.dll_CoCreateGuid]
push ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call sym.ImUtilsU.dll_Ordinal_1421
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
push esi
call sym.ImUtilsU.dll_Ordinal_1356
add esp, 8
push ebx
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [esp + 0x240], bl
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push esi
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov dword [esp + 0x240], ebx
mov dword [esp + 0x14], 1
mov eax, edi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.673f06fa
add esp, 0x234
ret 4
Function at 0x673d5db0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x67407104
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67460ecc]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebp
call sub.MFC80U.DLL_Ordinal_386
mov ebx, 1
mov dword [esp + 0x64], ebx
mov esi, dword [esp + 0x70]
push ebp
push esi
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_2271
test eax, eax
jne 0x673d5e1e
mov esi, dword [esp + 0x6c]
push 0x6742ccd4
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov dword [esp + 0x1c], ebx
jmp 0x673d5f0f
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.673d53b0
mov byte [esp + 0x64], 2
push esi
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov byte [esp + 0x64], 3
lea ecx, [esp + 0x18]
push ebx
push ecx
call sym.ImUtilsU.dll_Ordinal_1416
add esp, 8
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea edx, [esp + 0x18]
push edx
call sym.ImUtilsU.dll_Ordinal_1356
add esp, 8
push ebp
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_2271
cmp eax, ebx
jne 0x673d5ec4
mov ebx, dword [sym.imp.MSVCR80.dll__wstat32]
lea eax, [esp + 0x38]
push eax
push esi
xor edi, edi
call ebx
add esp, 8
test eax, eax
jne 0x673d5e9e
mov eax, dword [esp + 0x54]
cdq
mov edi, eax
mov ebp, edx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call ebx
add esp, 8
test eax, eax
jne 0x673d5ec4
mov eax, dword [esp + 0x54]
cdq
cmp edi, eax
jne 0x673d5ec4
cmp ebp, edx
je 0x673d5ed8
push 0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [esp + 0x6c]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov dword [esp + 0x1c], 1
mov byte [esp + 0x64], 2
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [esp + 0x64], 1
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [esp + 0x64], 0
lea ecx, [esp + 0x20]
call sub.MFC80U.DLL_Ordinal_631
mov eax, esi
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
Function at 0x673d5f40
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x67407128
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x67460ecc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
push str.CImSQLiteBrowser::CreateSetCookieThread
push 0x6741f400
lea ecx, [esp + 0x10]
call fcn.67377fc0
mov dword [esp + 0x1c], 0
cmp dword [esi + 0x48], 0
jne 0x673d5fce
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x50], eax
jne 0x673d5fa3
push str.ERROR___Failed_to_create_exit_event
jmp 0x673d5fc5
lea eax, [esi + 0x4c]
push eax
push 0
push esi
push 0x673d5500
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x48], eax
jne 0x673d5fce
push str.ERROR___Failed_to_create_thread
lea ecx, [esp + 0xc]
call fcn.673780f0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 8]
call fcn.67378060
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret
Function at 0x673da7ac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x673da7f3
cmp edx, 0x10
jl 0x673da7df
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x673da7cc
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x673da7f3
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x673da7eb
and edx, 3
cmp edx, 3
jne 0x673da807
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x673da80c
cmp edx, 2
jne 0x673da818
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x673da81d
cmp edx, 1
jne 0x673da823
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x673db450
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, 0x8000
xor cx, cx
push edi
mov edi, dword [esp + 0xc]
mov word [edi + 0x3c], ax
mov esi, dword [edi + 0x14]
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], eax
movzx eax, cx
inc cx
xor edx, edx
mov dl, byte [eax + esi + 0x8000]
mov eax, dword [edi + 0x20]
shl eax, 5
xor edx, eax
and edx, 0x7fff
cmp cx, 2
mov dword [edi + 0x20], edx
jb 0x673db46f
pop edi
pop esi
ret
Function at 0x673ed7d5
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret

Function at 0x673ed871
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ecx, dword [esp + 0xc]
mov ebp, esp
sub esp, 0x18
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov word [ebp - 0x16], ax
push esi
mov word [ebp - 0x12], dx
mov ecx, dword [ecx + 8]
mov word [ebp - 0x18], cx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov word [ebp - 0x10], ax
mov ecx, dword [ecx + 8]
mov word [ebp - 0xe], dx
lea eax, [ebp - 8]
mov word [ebp - 0xc], cx
push eax
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, eax
mov eax, 0
je 0x673ed8f1
lea eax, [ebp - 8]
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
sbb eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x673eedc0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
dec ecx
test eax, eax
je 0x673eedf3
mov eax, dword [esp + 4]
mov dl, byte [eax]
xor dl, 0xaa
mov byte [eax], dl
inc eax
mov edx, ecx
dec ecx
test edx, edx
je 0x673eedf3
push esi
lea esi, [ecx + 1]
mov cl, byte [eax]
mov dl, byte [eax - 1]
xor cl, 0xaa
add dl, cl
mov byte [eax], dl
inc eax
dec esi
jne 0x673eede2
pop esi
ret

Function at 0x673eee00
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
dec esi
test eax, eax
je 0x673eee2f
mov ecx, dword [esp + 8]
mov dl, byte [ecx]
mov al, dl
xor al, 0xaa
mov byte [ecx], al
inc ecx
mov eax, esi
dec esi
test eax, eax
je 0x673eee2f
inc esi
mov al, byte [ecx]
sub al, dl
mov dl, byte [ecx]
xor al, 0xaa
mov byte [ecx], al
inc ecx
dec esi
jne 0x673eee21
pop esi
ret

Function at 0x673f06fa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x67460ecc]
jne 0x673f0704
repz ret
jmp fcn.673f123a
Function at 0x402c70
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push 0
push 0
push 0x6ad7a8
mov dword [0x6ad7a8], 0
mov dword [0x6ad7ac], 0
mov dword [0x6ad7b0], 0
call esi
test eax, eax
jne 0x402ccd
push 8
push 1
push eax
push eax
push 0x6ad7a8
call esi
test eax, eax
jne 0x402ccd
push 0xf0000000
push 1
push eax
push eax
push 0x6ad7a8
call esi
test eax, eax
je 0x402ce7
push 0x6ad7b0
push 0
push 0
push 0x8003
push dword [0x6ad7a8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov eax, 0x6ad7a8
pop esi
ret

Function at 0x402d50
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x402dd6
mov eax, dword [esi + 8]
lea edi, [esi + 8]
test eax, eax
je 0x402dd6
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push 0
push 0
push 0x8003
push dword [esi]
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x402dd6
mov eax, dword [esi + 4]
lea ebx, [esi + 4]
test eax, eax
je 0x402da1
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebx], 0
mov eax, dword [ebp + 8]
push 0
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x402dd6
push ebx
push 1
push dword [edi]
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x402dd6
mov esi, 1
jmp 0x402dd8
xor esi, esi
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x402df3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x403010
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x68da90]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edx, dword [eax + 4]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
test edx, edx
je 0x403054
mov ecx, dword [eax + 8]
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x40305a
push edx
call fcn.005c5371
add esp, 4
mov ecx, eax
jmp 0x403056
xor ecx, ecx
mov dword [esp + 0xc], ecx
xor eax, eax
mov esi, ecx
shld eax, esi, 1
add esi, esi
push esi
call fcn.005a8f23
push dword [esp + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x18]
push dword [eax + 4]
push ebx
call fcn.005c20e0
mov eax, dword [esp + 0x1c]
add esp, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push esi
push eax
mov eax, dword [esp + 0x1c]
push ebx
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x4030c9
test ebx, ebx
je 0x4030b3
push ebx
call fcn.005a8f2c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 4]
test eax, eax
je 0x4030e7
push eax
call fcn.005a8f2c
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x20]
test eax, eax
je 0x403109
push eax
call fcn.005a8f2c
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push esi
call fcn.005a8f23
push esi
push 0
push eax
mov dword [edi + 4], eax
call fcn.005c1b40
push dword [esp + 0x30]
mov dword [edi + 8], esi
push ebx
push dword [edi + 4]
call fcn.005c20e0
add esp, 0x1c
test ebx, ebx
je 0x40313b
push ebx
call fcn.005a8f2c
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 8
Function at 0x403160
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push edi
test edx, edx
je 0x40319a
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x40319c
push edx
call fcn.005c5371
add esp, 4
mov ebx, eax
jmp 0x40319c
xor ebx, ebx
lea eax, [ebx + ebx]
mov dword [ebp - 0x14], 0
push eax
call fcn.005a8f23
mov edi, eax
mov eax, dword [ebp - 0xc]
push ebx
push dword [eax + 4]
push edi
call fcn.005c20e0
add esp, 0x10
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push edi
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4031fe
test edi, edi
je 0x4031e9
push edi
call fcn.005a8f2c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x40321c
push eax
call fcn.005a8f2c
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
mov ebx, dword [ebp - 8]
test eax, eax
je 0x40323d
push eax
call fcn.005a8f2c
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push ebx
call fcn.005a8f23
push ebx
push 0
push eax
mov dword [esi + 4], eax
call fcn.005c1b40
push dword [ebp - 8]
mov dword [esi + 8], ebx
push edi
push dword [esi + 4]
call fcn.005c20e0
add esp, 0x1c
test edi, edi
je 0x40326e
push edi
call fcn.005a8f2c
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 8
Function at 0x403290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f07c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ecx
mov ecx, dword [ecx]
mov esi, esp
sub ecx, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esi
call fcn.004042d0
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.00402d50
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], vtable.CxAutoArray_unsigned_char_.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
push edi
mov ecx, ebx
call fcn.00402e00
mov ebx, dword [ebp - 0x18]
test eax, eax
jne 0x40332a
xor edi, edi
jmp 0x4033ba
mov eax, dword [ebp - 0x24]
xor esi, esi
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x403359
call fcn.00404160
test eax, eax
jns 0x40335b
xor edi, edi
jmp 0x4033ba
mov esi, eax
test ebx, ebx
je 0x403371
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x403373
push ebx
call fcn.005c5371
add esp, 4
jmp 0x403373
xor eax, eax
push 0
lea ecx, [ebp - 0x20]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40338b
call fcn.00404160
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x40339b
call fcn.00404160
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4033ae
push esi
call eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov edi, 1
test esi, esi
je 0x4033ba
push esi
call eax
test ebx, ebx
je 0x4033c7
push ebx
call fcn.005a8f2c
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4033f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f0800
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x38], ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], esi
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.004042d0
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.00402d50
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
xor esi, esi
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], vtable.CxAutoArray_unsigned_char_.0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
xor ebx, ebx
mov dword [ebp - 4], esi
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push ebx
push 0x80
push 4
push ebx
push 1
push SysReAllocString
mov byte [ebp - 4], 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4034a8
call fcn.00404160
test eax, eax
js 0x403536
jmp 0x4034ad
mov ebx, ecx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
jne 0x4034ce
call fcn.00404160
mov edi, dword [ebp - 0x1c]
test eax, eax
js 0x4034d4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
push edi
call fcn.005a8f23
add esp, 4
mov esi, eax
mov dword [ebp - 0x2c], esi
push edi
push 0
push esi
call fcn.005c1b40
add esp, 0xc
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403510
call fcn.00404160
test ebx, ebx
je 0x403520
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x30]
push eax
call fcn.00402ef0
mov esi, dword [ebp - 0x2c]
test eax, eax
jne 0x40353a
xor edi, edi
jmp 0x40353f
mov edi, 1
test ebx, ebx
je 0x40354a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x403557
push esi
call fcn.005a8f2c
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403b40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403b59
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403b96
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403b92
nop word [eax + eax]
cmp esi, edx
jae 0x403b96
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403b80
cmp esi, edx
jb 0x403b9d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404800
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x69bd6c], 0
push esi
mov esi, ecx
je 0x40483e
cmp dword [0x69bd68], 0
je 0x40483e
cmp dword [0x69bd64], 0
je 0x40483e
cmp dword [0x69bd60], 0
jne 0x404939
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005c1b40
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x20c]
lea ecx, [esi + 8]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x404882
sub edx, edi
lea eax, [ebp - 0x20c]
sar edx, 1
push edx
push eax
call fcn.00403f20
lea edx, [ebp - 0x20c]
lea ecx, [esi + 4]
lea esi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4048b0
sub edx, esi
lea eax, [ebp - 0x20c]
sar edx, 1
push edx
push eax
call fcn.00403f20
push str.LYSDK2.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x404938
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LYSDK_LidInit
push edi
call esi
push str.LYSDK_LidClose
push edi
mov dword [0x69bd6c], eax
call esi
push str.LYSDK_LidGetLoginStatus
push edi
mov dword [0x69bd68], eax
call esi
push str.LYSDK_LidLogin
push edi
mov dword [0x69bd64], eax
call esi
push str.LYSDK_LidLogout
push edi
mov dword [0x69bd60], eax
call esi
call fcn.00404950
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005a8a55
mov esp, ebp
pop ebp
ret