joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f8ad256
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4f8ad2a0
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4f8ad247
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4f8ad256
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x4fcb2ef9
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4f8ad2a7
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.4f89411d
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4f8ad346
add edi, 4
add eax, 2
dec ecx
jne 0x4f8ad28c
call 0x4f8ad2f3
loope 0x4f8ad2e9
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4f8ad343
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4f8ad354
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4f8ad307
cmp eax, ecx
ja 0x4f8ad307
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4f8ad391
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4f8ad387
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.4f8945fc
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x42e001
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x6cc0109d
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x2d380e40
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x403d40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 8], 0
je 0x403daf
push edi
xor edi, edi
test ebx, ebx
je 0x403d70
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
je 0x403d80
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov al, byte [ecx + edx]
mov ecx, dword [ebp + 8]
mov byte [edi + ecx], al
inc dword [esi + 0xc]
inc edi
cmp edi, ebx
jb 0x403d51
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esi]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x10000
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x403d70
mov eax, dword [ebp - 4]
test eax, eax
je 0x403d70
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
jmp 0x403d59
push esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0040e530
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
jmp 0x403d4a
Function at 0x40d970
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x228]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push edi
call fcn.00402060
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
jne 0x43248b
mov eax, dword [0x4b903c]
test eax, eax
je 0x4324a4
mov byte [ebp - 1], 0
mov esi, 0x4ba1d8
cmp eax, 1
je 0x4324ba
push 0x4b903c
lea ecx, [ebp - 1]
mov eax, 0x4b9054
call fcn.00410070
test al, al
je 0x4324e1
mov cl, byte [0x4ba1d8]
mov bl, byte [0x4ba1d9]
push 0x4b9038
lea edx, [ebp - 0x438]
push edx
push 0x104
push 0x4b9054
mov byte [0x4b9040], cl
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
mov eax, dword [0x4b903c]
push eax
push 0x4b9054
call fcn.004015c0
test eax, eax
jne 0x4324f7
cmp bl, 1
je 0x43251d
call fcn.00410690
call fcn.00410600
cmp byte [0x4b9040], 0
jne 0x40da49
mov esi, 0x4b9800
call fcn.0040e5a0
push 1
mov ecx, 0x4b9260
call fcn.00409620
cmp byte [0x4b9040], 0
jne 0x40da68
mov ecx, 0x4b9800
call fcn.00401130
mov ebx, 0x4ba1d8
call fcn.0040ecd0
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x40da7f
lea ecx, [ebp - 0x228]
mov dword [0x4a85dc], 0xffffffff
push ecx
jmp 0x40da79
mov ebx, dword [0x4b9044]
push 0xffffffffffffffff
push 1
mov byte [ebp - 2], 0
call fcn.00403e80
mov dl, byte [0x4a85d0]
mov bl, byte [ebp - 2]
mov byte [0x4ba1db], dl
jmp 0x40da0b
lea eax, [ebp - 0x228]
mov dword [0x4a85dc], 1
push eax
jmp 0x40da79
mov ebx, 0x4ba1d8
call fcn.0040ecd0
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov dword [0x4a85dc], 1
jmp 0x40da7f
call fcn.00436ec9
test al, al
jne 0x40da2c
push 0x104
lea edx, [ebp - 0x438]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
cmp byte [ebp - 1], 0
je 0x43259b
mov edi, 0x4958a0
lea esi, [ebp - 0x14]
call fcn.00401d80
mov edi, 0x4b9054
mov eax, esi
call fcn.0040d650
mov edi, 0x4958a0
mov eax, esi
call fcn.0040d650
mov ecx, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x228]
push eax
push ecx
lea edx, [ebp - 0x438]
push edx
push 0x4958a4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, esi
call fcn.004023b0
jmp 0x40da68
push 1
lea eax, [ebp - 0x228]
push eax
push edi
lea ecx, [ebp - 0x438]
push ecx
push 0x4958a4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40da68
Function at 0x40f680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
or ecx, 0xffffffff
mov ebx, 0x4956ec
call fcn.0040f610
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00413870
push esi
call fcn.00411076
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0040f740
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.0040f770
xor ebx, ebx
mov dword [edi + 8], ebx
xor ecx, ecx
mov eax, ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
movzx edx, byte [esp + ecx + 0x19]
add eax, edx
movzx edx, byte [esp + ecx + 0x1a]
add eax, edx
movzx edx, byte [esp + ecx + 0x1b]
add ecx, 4
add eax, edx
cmp ecx, 0x10
jl 0x40f6d4
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
push 0x498d64
push eax
call fcn.00414f39
add esp, 8
mov dword [edi], eax
cmp eax, ebx
je 0x42beba
push edi
call fcn.0040f4e0
cmp eax, ebx
je 0x42bec4
mov ecx, dword [edi]
push ecx
mov esi, eax
call fcn.00414fbd
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x40f733
mov edx, dword [edi]
push edx
push 0x10
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0041527b
add esp, 0x10
push 0x99f2
push 0x10
lea ecx, [esp + 0x10]
push ecx
call fcn.0044f3c1
xor eax, eax
mov dword [edi + 8], ebx
xor ecx, ecx
movzx edx, byte [esp + eax + 8]
inc eax
imul ecx, edx
cmp eax, 0x10
jl 0x42bef0
mov eax, dword [edi]
push eax
mov dword [edi + 8], ecx
call fcn.00415552
add esp, 4
mov dword [edi + 4], eax
xor eax, eax
jmp 0x40f733

Function at 0x40f740
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.004129c0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x410600
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4a8608]
push esi
push 0
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
push 0
push 0
push 0x64
push 0x12c
push bind
push bind
push 0xcf0000
push str.AutoIt_v3
push str.AutoIt_v3
push 0
call esi
mov ecx, dword [0x4a8608]
push 0
push ecx
push 1
push eax
push 0
push 0
push 0
push 0
push 0x50b008c4
push 0
push str.edit
push 0
mov dword [0x4a8600], eax
call esi
mov edx, dword [0x4a8600]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edx
mov dword [0x4a85fc], eax
call esi
mov eax, dword [0x4a8600]
push 0
push eax
call esi
pop esi
ret
Function at 0x42448c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a1de0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00418bec
and dword [ebp - 0x14], 0
cmp dword [0x4a823c], 0
mov dword [ebp - 0x18], eax
jne 0x42453f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4245e7
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4936e8
push ebx
call edi
test eax, eax
je 0x4245e7
mov esi, dword [section..data]
push eax
call esi
push 0x4936d8
push ebx
mov dword [0x4a823c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a8240], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a8244], eax
call edi
push eax
call esi
mov dword [0x4a824c], eax
test eax, eax
je 0x42453f
push 0x493690
push ebx
call edi
push eax
call esi
mov dword [0x4a8248], eax
mov eax, dword [0x4a8248]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x4a1004]
cmp eax, ecx
je 0x424598
cmp dword [0x4a824c], ecx
je 0x424598
push eax
call esi
push dword [0x4a824c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x424598
test ebx, ebx
je 0x424598
call edi
test eax, eax
je 0x42458f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42458f
test byte [ebp - 8], 1
jne 0x424598
or dword [ebp + 0x10], 0x200000
jmp 0x4245cb
mov eax, dword [0x4a8240]
cmp eax, dword [ebp - 0x18]
je 0x4245cb
push eax
call esi
test eax, eax
je 0x4245cb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4245cb
mov eax, dword [0x4a8244]
cmp eax, dword [ebp - 0x18]
je 0x4245cb
push eax
call esi
test eax, eax
je 0x4245cb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a823c]
call esi
test eax, eax
je 0x4245e7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4245e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b328
leave
ret
Function at 0x434389
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
cmp word [eax], 0
push ebx
push esi
push edi
je 0x4344aa
push 0
push 0
push 3
push 0
push 0
push bind
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4343c7
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4343bc
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edx, [ebp - 8]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0x487960
push 0
push 0
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4343bc
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
mov eax, dword [ebp + 0x14]
jne 0x434483
cmp dword [eax], 0
jne 0x434483
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov eax, dword [eax]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
push 0x2000
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4344b1
mov dword [ebp + 0xc], 0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4344c2
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push 0
mov dword [esi + 0x60], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x434dfb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0x44
push 0
push 0x4ba658
call fcn.004129c0
push 0x10
push 0
push 0x4ba644
call fcn.004129c0
mov ecx, dword [ebp + 8]
add esp, 0x18
push 0x4ba644
push 0x4ba658
push 0
push 0
push 0x20
push 0
push 0
push 0
push ecx
mov eax, 1
push 0
mov dword [0x4ba658], 0x44
mov dword [0x4ba684], 1
mov word [0x4ba688], ax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x434e6f
mov edx, dword [0x4ba644]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebp
ret 4
Function at 0x43596c
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea eax, [esp + 0x10]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4359ff
lea ecx, [ecx]
lea edx, [esp + 0x3c]
push 0x495738
push edx
call fcn.00413366
add esp, 8
test eax, eax
je 0x4359ef
lea eax, [esp + 0x3c]
push 0x49b778
push eax
call fcn.00413366
add esp, 8
test eax, eax
je 0x4359ef
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
or eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
not edx
and eax, edx
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x435a19
mov bl, 1
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x43599c
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindClose]
call esi
cmp byte [ebp + 0x14], 0
jne 0x435a2b
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea edx, [esp + 0x10]
push edx
push 0x49b770
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x435ab2
mov ebx, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test byte [esp + 0x10], 0x10
je 0x435aa2
lea eax, [esp + 0x3c]
push 0x495738
push eax
call fcn.00413366
add esp, 8
test eax, eax
je 0x435aa2
lea ecx, [esp + 0x3c]
push 0x49b778
push ecx
call fcn.00413366
add esp, 8
test eax, eax
je 0x435aa2
lea edx, [esp + 0x3c]
push edx
call ebx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
call fcn.0043596c
test al, al
je 0x435ac0
push 0x49b778
call ebx
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x435a44
push edi
call esi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x435ace
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0xa28
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0xa28]
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
test eax, eax
jne 0x435b00
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
lea eax, [ebp - 0xa28]
push eax
lea ecx, [ebp - 0x208]
push str.___s
push ecx
call fcn.004134c5
lea edx, [ebp - 0x208]
push edx
call fcn.00412941
mov edi, eax
add esp, 0x10
cmp word [ebp + edi*2 - 0x20a], 0x5c
jne 0x435b4a
cmp word [ebp + edi*2 - 0x20c], 0x3a
je 0x435b4a
xor eax, eax
mov word [ebp + edi*2 - 0x20a], ax
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x435b64
cmp byte [ebp + 0x10], al
jne 0x435b64
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
push 0x2200000
push 3
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x435c17
push 0x14
lea ecx, [ebp - 0x820]
push 0
push ecx
call fcn.004129c0
lea edx, [edi + edi]
mov word [ebp - 0x816], dx
mov eax, dword [ebp - 0x816]
push 0x104
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x810]
add eax, 2
push edx
mov dword [ebp - 0x820], 0xa0000003
mov word [ebp - 0x814], ax
call fcn.004131e4
mov eax, dword [ebp - 0x816]
add esp, 0x18
push 0
add eax, 0xc
lea ecx, [ebp + 8]
push ecx
push 0
movzx edx, ax
push 0
add edx, 8
push edx
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x820]
push eax
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push esi
test eax, eax
jne 0x435c29
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x435ee1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x464]
test eax, eax
je 0x435ef9
cmp eax, 0x10000
jne 0x435f1d
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.0041527b
add esp, 0x10
mov dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov edx, dword [esi + 0x45c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
pop ebp
ret 4

Function at 0x435f38
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x460]
test eax, eax
je 0x435f69
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x458]
push ecx
push eax
push 1
push edx
call fcn.004144d6
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 4
Function at 0x435f6e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
cmp dword [esi + 0x460], 0x10000
jne 0x435fbd
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.004144d6
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 8

Function at 0x43606e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 1
jne 0x436095
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.004125e0
add esp, 0xc
jmp 0x4360a9
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [ebp - 8]
push 1
push eax
call fcn.0041527b
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx edx, byte [ebp - 3]
movzx eax, byte [ebp - 2]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, edx
movzx edx, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0xc]
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
lea ecx, [ebp - 8]
push str.AUCN
push ecx
mov byte [ebp - 4], 0
call fcn.004152a0
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x43614b
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x4b8628], eax
mov edx, 1
mov eax, 0x4b8628
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4b8fe4
jl 0x436161
mov dword [0x4a3104], 1
mov dword [0x4b8ff8], 1
pop edi
pop ebp
ret

Function at 0x43707d
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x437119
jne 0x4370a0
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xf
jae 0x437112
mov edi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [ebp - 0x18]
push eax
call edi
test eax, eax
je 0x437112
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea edx, [ebp - 0x10]
push edx
call edi
fnstcw word [ebp + 0xa]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
fild qword [ebp - 0x20]
movzx eax, word [ebp + 0xa]
fild qword [ebp - 0x28]
or eax, 0xc00
mov dword [ebp - 4], eax
fdivp st(1)
fmul qword [0x49d940]
fldcw word [ebp - 4]
fistp qword [ebp - 8]
mov edx, dword [ebp - 8]
fldcw word [ebp + 0xa]
cmp edx, esi
jb 0x4370bf
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret