joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a9004]
jne 0x40100a
repz ret
jmp fcn.004017ef

Function at 0x405e2a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a9004]
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.004035e9
and dword [ebp - 0x14], 0
cmp dword [0x4abc8c], 0
mov dword [ebp - 0x18], eax
jne 0x405edd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405f85
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405f85
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4abc8c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4abc90], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4abc94], eax
call edi
push eax
call esi
mov dword [0x4abc9c], eax
test eax, eax
je 0x405edd
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4abc98], eax
mov eax, dword [0x4abc98]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405f36
cmp dword [0x4abc9c], ecx
je 0x405f36
push eax
call esi
push dword [0x4abc9c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405f36
test ebx, ebx
je 0x405f36
call edi
test eax, eax
je 0x405f2d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405f2d
test byte [ebp - 8], 1
jne 0x405f36
or dword [ebp + 0x10], 0x200000
jmp 0x405f69
mov eax, dword [0x4abc90]
cmp eax, dword [ebp - 0x18]
je 0x405f69
push eax
call esi
test eax, eax
je 0x405f69
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405f69
mov eax, dword [0x4abc94]
cmp eax, dword [ebp - 0x18]
je 0x405f69
push eax
call esi
test eax, eax
je 0x405f69
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4abc8c]
call esi
test eax, eax
je 0x405f85
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405f87
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

Function at 0x10001000
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x1001125c]
sub esp, 0x420
test eax, eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x1000107d
lea eax, [esp + 0x1c]
push str.krptOrg
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x1001125c], eax
jne 0x1000107d
lea edx, [esp + 0x1c]
lea eax, [esp + 0x224]
push edx
push 0x1000e0d8
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x224]
push 0x10
push str.AheadLib
push ecx
push 0
call ebx
mov eax, dword [0x1001125c]
test eax, eax
jne 0x1000107d
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [esp + 0x430]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100010d9
mov edx, esi
shr edx, 0x10
jne 0x100010ab
push esi
lea eax, [esp + 0x10]
push 0x1000e0c8
push eax
call edi
add esp, 0xc
lea esi, [esp + 0xc]
push esi
lea ecx, [esp + 0x124]
push 0x1000e0a0
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x120]
push 0x10
push str.AheadLib
push edx
push 0
call ebx
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
add esp, 0x420
ret 4

Function at 0x100010f0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x108
cmp eax, 1
jne 0x1000118a
push str.wps.all
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000116e
push edi
mov ecx, 0x40
lea edi, [esp + 9]
mov byte [esp + 8], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
push 0x104
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
push 1
push 0
push str.1478
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
mov ecx, dword [esp + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, 1
add esp, 0x108
ret 0xc
test eax, eax
jne 0x1000119e
mov eax, dword [0x1001125c]
test eax, eax
je 0x1000119e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
add esp, 0x108
ret 0xc
Function at 0x40557f
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x41434c
push str.FlsAlloc
push 0
call fcn.004054f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4055b1
push dword [ebp + 8]
mov ecx, esi
call fcn.00402b3e
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x4055f3
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x414370
push str.FlsGetValue
push 2
call fcn.004054f8
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x405624
mov ecx, esi
call fcn.00402b3e
call esi
jmp 0x40562a
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x40562d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x414384
push str.FlsSetValue
push 3
call fcn.004054f8
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x405661
mov ecx, esi
call fcn.00402b3e
call esi
jmp 0x405667
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x40f090
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.0040dd21
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040dcd6
add esp, 0xc
mov dword [ebp - 0x6c8], eax
push 0
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x378]
push dword [ebp - 4]
push dword [ebp - 0x66c]
call dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], eax
push dword [ebp - 0x66c]
call dword [ebp - 0x680]
cmp dword [ebp - 0x6cc], 0
je 0x40fea4
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.0040dc82
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x40f11e
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x40f167
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x40f111
call fcn.0040dd11
out dx, eax
aam 0x7e
rol byte [eax - 0x72b5b], 1
inc dword [eax]
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.0040dd11
xchg esi, eax
push eax
push cs
test al, 0x8d
test esp, edx
clc
invalid
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4dbb81
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [0xde0bdd87], eax
adc dword [eax], ecx
mov bh, 0x8d
and eax, 0xb4e22742
invalid
pushal
loope 0x4dbb73
cmpsb byte [esi], byte es:[edi]
jl 0x4dbb9f
mov fs, word [esi]
in al, dx
sbb al, 0xf7
or ah, bh
leave
fdiv qword [edi + 0x68c9a2cf]
xor dword [ebp + 0x757a86b9], edx
pushfd
mov ecx, 0x9c757a86
jno 0x4dbc0a
push 0x29
add byte [eax], al
cdq
sub eax, edx
mov ecx, eax
sub dword [eax], eax
add byte [ecx - 0x37743dd5], bl
sar ecx, 1
push 0x41
pop edi
mov dword [ebp - 0x10], ecx
mov esi, dword [ecx*8 + 0x43d240]
mov ecx, dword [ebp + 8]
push 0x5a
sub ecx, esi
into
pop ebx
movzx eax, word [ecx + esi]
cmp ax, di
jb 0x4dbbd5
cmp ax, bx
ja 0x4dbbd5
add eax, 0x20
movzx edx, ax
jmp 0x4dbbd7
mov edx, eax
movzx eax, word [esi]
cmp ax, di
jb 0x4dbbea
cmp ax, bx
ja 0x4dbbea
add eax, 0x20
movzx eax, ax
add esi, 2
sub dword [ebp - 4], 1
je 0x4dbbfd
test dx, dx
je 0x4dbbfd
cmp dx, ax
je 0x4dbbbf
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
movzx eax, ax
movzx edx, dx
mov bh, 0xd2
sub edx, eax
je 0x4dbc2f
test edx, edx
jns 0x4dbc1c
lea ebx, [ecx - 1]
mov dword [ebp - 8], ebx
jmp 0x4dbc22
lea edi, [ecx + 1]
mov dword [ebp - 0xc], edi
cmp edi, ebx
jle 0x4dbb99
or eax, 0xffffffff
jmp 0x4dbc36
mov eax, dword [ecx*8 + 0x43d244]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5b7191
Capabilities:
Encrypt data using rc4 prga

Disassembly:
rol byte [ebx + 0x6d8302c6], 0xfc
add dword [edx + ecx + 0x66], esi
je 0x5b719d
test dx, dx

Function at 0x600ab1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
out 0xba, eax
popal
pop esi
push 0xaec82c0e
and byte [edi], bh
mov ch, byte [ecx + 0x7b]
call 0x6e513fe6
in al, dx
clc
retf 0x2bda
push edi
js 0x600a4a
das
movsd dword es:[edi], dword es:[esi]
ficomp dword [edx - 0x667316f5]
inc edx
or al, byte [edx - 0x2d]
pushfd
ror byte [edi + 0x1c], cl
das
fbld tbyte [ebp - 0x67]
pop ds
and ebx, edi
mov esp, dword [eax + 0x7c388d71]
or dword [edx + 0x2a], esi
invalid
xchg bh, al
dec esp
adc esp, edx
sahf
xchg edx, eax
mov cl, 0x8f
call dword [esi + 0x34c93f39]
cwde
inc esi
sub byte [edi - 0x6c], dl
clc
stosd dword es:[edi], eax
les edi, [ebp - 0x44]
jge 0x600a7d
xchg dword [edx], ecx
push 0x39
dec ecx
or eax, 0x8a024ea0
invalid
Function at 0x4249c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x4be944]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x2c]
push esi
mov dword [esp + 0x10], ecx
call fcn.004248f0
test eax, eax
mov dword [esp + 8], eax
jl 0x424afb
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [esp + 4], eax
je 0x424afb
cmp eax, 0xffffffff
je 0x424afb
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x10
lea edx, [esp + 0x2c]
push edx
push eax
call ebp
cmp byte [esp + 0x2b], 0x32
mov eax, dword [esp + 0x2c]
mov edi, eax
jne 0x424a89
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
add esi, esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x10]
push 0
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push ecx
call ebp
test edi, edi
jbe 0x424ac7
mov esi, ebx
jmp 0x424a70
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push edx
call fcn.00423fd0
add esi, 0x20
sub edi, 1
jne 0x424a70
jmp 0x424ac7
shl eax, 5
mov esi, eax
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x10]
push 0
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push ecx
call ebp
test edi, edi
jbe 0x424ac7
mov esi, ebx
nop
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push edx
call fcn.00423fd0
add esi, 0x10
sub edi, 1
jne 0x424ab0
test ebx, ebx
je 0x424ad9
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00484c9e
add esp, 0x24
ret 4
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
xor al, al
call fcn.00484c9e
add esp, 0x24
ret 4
Function at 0x42cd10
Capabilities:
Enumerate pe sections

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
movzx ecx, ax
cmp ecx, 0x5045
je 0x42cd29
or eax, 0xffffffff
pop edi
ret 8
mov edx, eax
and edx, 0xff0000
cmp edx, 0x10000
je 0x42cd42
mov eax, 0xfffffffe
pop edi
ret 8
and eax, 0xff000000
cmp eax, 0x1000000
push esi
je 0x42cd80
cmp eax, 0x2000000
jne case.0x42cd9c.3
mov esi, dword [esp + 0x10]
mov dword [esi], 2
mov eax, dword [edi + 0x10]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x14]
lea edx, [edi + 0x18]
push edx
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x42cd8a
mov esi, dword [esp + 0x10]
mov dword [esi], 0
mov eax, dword [edi + 4]
and eax, 0xff
cmp eax, 4
ja case.0x42cd9c.3
mov ecx, 8
jmp dword [eax*4 + 0x42ce14]
mov dword [esi + 0xc], 0x18
jmp 0x42cdbb
mov dword [esi + 0xc], 0x20
jmp 0x42cdbb
or dword [esi], 1
mov dword [esi + 0xc], ecx
cmp dword [esi + 0xc], ecx
mov edx, dword [edi + 8]
mov dword [esi + 4], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 8], eax
jne 0x42cdf2
movzx eax, byte [edi + 5]
test eax, eax
mov dword [esi + 0x10], eax
mov ecx, 0x100
jne 0x42cddf
mov dword [esi + 0x10], ecx
movzx eax, byte [edi + 6]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x42ce00
mov dword [esi + 0x14], ecx
pop esi
pop edi
ret 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
pop esi
xor eax, eax
pop edi
ret 8
pop esi
mov eax, 0xfffffffd
pop edi
ret 8
Function at 0x431990
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c940
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x4be944]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x18], ebx
jne 0x4319df
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
push esi
call edi
add eax, 0xa
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push 0x49f0f8
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [ebp + 0xc]
add esp, 0xc
test esi, esi
je 0x431a2d
push esi
call edi
add eax, 0xa
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push esi
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x44
lea eax, [ebp - 0x70]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.00485180
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x70]
push edx
push eax
push eax
push 0x20
push eax
push eax
push eax
push ebx
push eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x70], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x431a94
mov dword [ebp - 0x1c], eax
push 0x4b54c8
lea eax, [ebp - 0x1c]
push eax
call fcn.0048581f
mov byte [ebp - 0x11], 0
mov eax, 0x431a8f
ret
cmp byte [ebp + 0x10], 0
je 0x431aa6
mov ecx, dword [ebp - 0x2c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x2c]
push eax
call esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x431acd
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
je 0x431adf
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434650
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x434659
ret
mov ecx, dword [eax + 0xc]
push 0
lea edx, [eax + 0x14]
push edx
mov edx, dword [eax + 4]
push ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x434740
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push edi
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x4347cb
cmp edi, 0xffffffff
je 0x4347cb
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xc]
push ecx
push esi
push edx
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43479c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
pop ecx
ret
cmp dword [esp + 8], esi
jae 0x4347bb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0xa
call ebx
cmp dword [esp + 0xc], esi
jb 0x4347b0
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x4347d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
mov edi, dword [esp + 0x14]
push 0
push 0x8000080
push 3
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
test esi, esi
je 0x43480d
cmp esi, 0xffffffff
je 0x43480d
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43482d
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
test esi, esi
je 0x434858
cmp esi, 0xffffffff
je 0x434858
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ecx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43485f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
cmp dword [esp + 0xc], edi
jae 0x43487a
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x434870
push 0xa
call ebx
cmp dword [esp + 0xc], edi
jb 0x434870
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x434890
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x43491e
cmp esi, 0xffffffff
je 0x43491e
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x4348ee
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
push esi
je 0x4348e2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret

Function at 0x4349c0
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x4be944]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x118]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
mov edi, dword [esp + 0x124]
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push edi
mov dword [esp + 0x2c], eax
xor bl, bl
call ebp
mov esi, eax
test esi, esi
je 0x434a12
cmp esi, 0xffffffff
jne 0x434a85
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
push edi
call ebp
test eax, eax
je 0x434aeb
cmp eax, 0xffffffff
je 0x434aeb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea ecx, [esp + 0x1c]
push str._s.BAK
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x434a65
mov bl, 1
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push edi
call ebp
mov esi, eax
test esi, esi
je 0x434adb
cmp esi, 0xffffffff
je 0x434adb
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push edx
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x434abf
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x434aeb
push edi
lea eax, [esp + 0x1c]
push eax
jmp 0x434ae5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x434ad4
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
jmp 0x434aed
test bl, bl
je 0x434aeb
push edi
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00484c9e
add esp, 0x110
ret
Function at 0x434b10
Capabilities:
Get file size

Disassembly:
push esi
push 0x18
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x434b23
pop esi
ret
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
push ebx
mov dword [esi], 0
call edi
test eax, eax
mov dword [esi + 4], eax
je 0x434b7d
cmp eax, 0xffffffff
je 0x434b7d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
mov dword [esi + 8], 0
pop edi
pop ebx
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov eax, esi
pop esi
ret
mov eax, dword [esp + 0x14]
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
push eax
call edi
test eax, eax
mov dword [esi + 4], eax
je 0x434bc3
cmp eax, 0xffffffff
je 0x434bc3
push ebx
push esi
mov dword [esi], 1
call fcn.00434450
add esp, 8
test eax, eax
mov dword [esi + 0xc], eax
jne 0x434b69
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebx
xor eax, eax
pop esi
ret
Function at 0x438190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x4c1ac0], 0
je 0x4381b9
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x4381b9
mov eax, dword [0x4c0ab0]
and eax, 0x7fffffff
sub eax, 1
jne 0x4381b9
mov dword [esp + 4], ecx
jmp fcn.004475a0
ret