joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401650
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [0x4138f0]
sub esp, 0x100
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push eax
push str.c_nCount_d
push ecx
call ebx
lea edx, [esp + 0x14]
push edx
call fcn.00404510
mov eax, dword [0x4138f0]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x4016bd
push edi
mov edi, 0x409528
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
push esi
lea edx, [esp + 0x18]
push str.__d____X___X
push edx
call ebx
lea eax, [esp + 0x20]
push eax
call fcn.00404510
mov eax, dword [0x4138f0]
add esp, 0x18
inc esi
add edi, 8
cmp esi, eax
jl 0x40168e
pop edi
push 0
push 0x4014f0
call dword [sym.imp.USER32.dll_EnumWindows]
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x4016e0
Capabilities:
Enumerate gui resources

Disassembly:
push 2
push 0x4014f0
call dword [sym.imp.USER32.dll_EnumWindows]
ret

Function at 0x4016f0
Capabilities:
Create process on windows

Disassembly:
push esi
push 0x409738
call fcn.00404ea0
add esp, 4
mov ecx, dword [0x409738]
mov edx, dword [0x40973c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x409740]
mov dword [eax + 4], edx
mov edx, dword [0x409744]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00404cc0
add esp, 0x14
test eax, eax
jne 0x401737
xor al, al
pop esi
ret
mov eax, dword [esp + 8]
push 0x4010000
push 0
push eax
push 0
call fcn.00404990
mov esi, eax
add esp, 0x10
cmp esi, 1
je 0x401759
cmp esi, 0xa
jne 0x40178a
push 4
push 0x409044
push 0x412c78
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40178a
push 1
push 0
push 0
push 0x413078
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
sete al
pop esi
ret
Function at 0x401a30
Capabilities:
Get common file path
Set current directory

Disassembly:
mov al, byte [0x409774]
sub esp, 0x1a4
test al, 0xa0
je 0x401a5a
call fcn.00401820
test al, al
jne 0x401a51
call fcn.00401880
test al, al
je 0x401a5a
mov al, 1
add esp, 0x1a4
ret
mov al, byte [0x4138f4]
test al, al
je 0x401a6c
mov al, 1
add esp, 0x1a4
ret
push edi
push str.DoOpgDlg2
call fcn.00404510
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x409774]
add esp, 4
test al, 2
pop edi
je 0x401aad
lea eax, [esp]
push eax
call fcn.00401b90
push 0
call fcn.00401bd0
add esp, 8
push ebx
push esi
call fcn.004014d0
lea ecx, [esp + 0xa4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov al, byte [0x409774]
test al, 0x20
mov byte [0x4138f4], 1
je 0x401b01
push 0x4138b8
push 0x413878
push 0x409728
call fcn.004046b0
add esp, 8
push eax
call fcn.004019c0
add esp, 8
jmp 0x401b19
test al, 0x80
je 0x401b0c
call fcn.00401960
jmp 0x401b19
push 0x409738
call fcn.004018f0
add esp, 4
lea edx, [esp + 0xa4]
mov bl, al
push edx
mov byte [0x4138f4], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.00401650
test byte [0x409774], 2
je 0x401b4b
lea eax, [esp + 8]
push eax
call fcn.00401bd0
add esp, 4
test esi, esi
je 0x401b7f
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x401b72
push str.SetForegroundWindow___succeeded.
call fcn.00404510
add esp, 4
mov al, bl
pop esi
pop ebx
add esp, 0x1a4
ret
push str.SetForegroundWindow___failed.
call fcn.00404510
add esp, 4
mov al, bl
pop esi
pop ebx
add esp, 0x1a4
ret

Function at 0x401de0
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push 0x4090e8
call fcn.00404510
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll_strtoul]
lea eax, [esp + 0xc]
push 0x10
add ecx, 3
push eax
push ecx
mov dword [esp + 0x18], 0
call esi
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x401e74
mov eax, dword [esp + 8]
lea edx, [esp + 8]
push 0x10
push edx
push eax
call esi
add esp, 0xc
test eax, eax
je 0x401e74
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push 0
push 0x1f0fff
call edi
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
push ebx
push 0
push 0x1f0fff
call edi
mov esi, eax
test esi, esi
je 0x401e6c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebp
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x401f00
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push eax
push 0
push 0
push 0
push SysReAllocStringLen
push 0
push SysReAllocStringLen
push 0xcf0000
push 0x413960
push 0x4138fc
push 0x80
mov dword [0x4139c4], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401f41
pop esi
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0x414
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
pop esi
ret
Function at 0x404f00
Capabilities:
Hash data using crc32b

Disassembly:
push ecx
push ebx
mov ebx, 1
push esi
mov dword [0x4148e0], ebx
xor edx, edx
mov ecx, 0x4144e0
mov eax, edx
mov esi, 8
shl eax, 0x18
test eax, 0x80000000
je 0x404f2f
add eax, eax
xor eax, 0x4c11db7
jmp 0x404f31
shl eax, 1
dec esi
jne 0x404f1f
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x4148e0
jb 0x404f15
xor ecx, ecx
mov eax, 0x4142e0
mov dword [esp + 8], ecx
mov edx, 8
test byte [esp + 8], bl
je 0x404f6c
mov si, word [esp + 8]
shr si, 1
xor esi, 0x8408
mov dword [esp + 8], esi
jmp 0x404f71
shr word [esp + 8], 1
dec edx
jne 0x404f52
mov dx, word [esp + 8]
inc ecx
mov word [eax], dx
add eax, 2
cmp eax, 0x4144e0
jb 0x404f49
pop esi
pop ebx
pop ecx
ret

Function at 0x404f90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x4148e0]
test eax, eax
jne 0x404f9e
call fcn.00404f00
mov ecx, dword [esp + 4]
mov eax, pe_overlay
dec ecx
js 0x404fda
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx]
xor ebx, ebx
xor dl, al
mov bl, ah
mov byte [esp + 0xc], dl
inc ecx
mov edx, dword [esp + 0xc]
and edx, 0xff
mov ax, word [edx*2 + 0x4142e0]
xor ax, bx
dec esi
jne 0x404fb3
pop esi
pop ebx
not eax
ret

Function at 0x404fe0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4065bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
push ebx
push esi
lea ecx, [esp + 8]
call fcn.00405c00
mov eax, dword [esp + 0x848]
xor esi, esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x83c], esi
call fcn.00405c20
mov ebx, dword [esp + 0x840]
cmp ebx, esi
jle 0x40504a
push edi
mov edi, dword [esp + 0x848]
lea ecx, [esp + 0xc]
call fcn.00405cc0
mov dl, byte [esi + edi]
xor dl, al
mov byte [esi + edi], dl
inc esi
cmp esi, ebx
jl 0x405033
pop edi
lea ecx, [esp + 8]
mov dword [esp + 0x838], 0xffffffff
call fcn.00405c10
mov ecx, dword [esp + 0x830]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x834
ret

Function at 0x4050f0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
mov esi, dword [esp + 0x110]
push eax
push 0x104
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
ja 0x405123
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x108
ret
push esi
push 0
lea ecx, [esp + 0xc]
push 0x409384
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405148
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x108
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40516a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x108
ret
xor eax, eax
pop esi
add esp, 0x108
ret
Function at 0x406030
Capabilities:
Terminate thread
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov eax, dword [0x445afc]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x4060b0
push esi
push edi
push edi
push 3
push edi
push edi
push 0x40000000
push edi
push 0x4459f4
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0x1f40
mov dword [esp + 0x3c], edi
call fcn.004062a0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40609d
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
push 0x3e8
mov edx, dword [0x445afc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov eax, dword [0x445af8]
cmp eax, edi
je 0x4060d1
mov eax, dword [0x445af8]
cmp eax, 0xffffffff
je 0x4060d1
mov eax, dword [0x445af8]
push eax
call ebx
mov dword [0x445af8], edi
mov eax, dword [0x445afc]
cmp eax, edi
je 0x4060f9
mov eax, dword [0x445afc]
cmp eax, 0xffffffff
je 0x4060f9
push 0xffffffffffffffff
mov ecx, dword [0x445afc]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x445afc], edi
call fcn.00406200
mov dword [0x445b04], edi
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x421760
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x4ba858]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x2c]
push esi
mov dword [esp + 0x10], ecx
call fcn.00421690
test eax, eax
mov dword [esp + 8], eax
jl 0x42189b
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 0x42189b
cmp eax, 0xffffffff
je 0x42189b
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 0x421829
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 0x421867
mov esi, ebx
jmp 0x421810
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push edx
call fcn.00420d70
add esi, 0x20
sub edi, 1
jne 0x421810
jmp 0x421867
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 0x421867
mov esi, ebx
nop
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push edx
call fcn.00420d70
add esi, 0x10
sub edi, 1
jne 0x421850
test ebx, ebx
je 0x421879
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.0048181f
add esp, 0x24
ret 4
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
xor al, al
call fcn.0048181f
add esp, 0x24
ret 4
Function at 0x4295f0
Capabilities:
Enumerate pe sections

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
movzx ecx, ax
cmp ecx, 0x5045
je 0x429609
or eax, 0xffffffff
pop edi
ret 8
mov edx, eax
and edx, 0xff0000
cmp edx, 0x10000
je 0x429622
mov eax, 0xfffffffe
pop edi
ret 8
and eax, 0xff000000
cmp eax, 0x1000000
push esi
je 0x429660
cmp eax, 0x2000000
jne case.0x42967c.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 0x42966a
mov esi, dword [esp + 0x10]
mov dword [esi], 0
mov eax, dword [edi + 4]
and eax, 0xff
cmp eax, 4
ja case.0x42967c.3
mov ecx, 8
jmp dword [eax*4 + 0x4296f4]
mov dword [esi + 0xc], 0x18
jmp 0x42969b
mov dword [esi + 0xc], 0x20
jmp 0x42969b
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 0x4296d2
movzx eax, byte [edi + 5]
test eax, eax
mov dword [esi + 0x10], eax
mov ecx, pe_nt_image_headers32
jne 0x4296bf
mov dword [esi + 0x10], ecx
movzx eax, byte [edi + 6]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x4296e0
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 0x42dec0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499270
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x4ba858]
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 0x42df0f
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 0x49b0d0
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 0x42df5d
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.00481ba0
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 0x42dfc4
mov dword [ebp - 0x1c], eax
push 0x4b17d8
lea eax, [ebp - 0x1c]
push eax
call fcn.00482044
mov byte [ebp - 0x11], 0
mov eax, 0x42dfbf
ret
cmp byte [ebp + 0x10], 0
je 0x42dfd6
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 0x42dffd
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
je 0x42e00f
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 0x430b80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x430b89
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 0x430c70
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 0x430cfb
cmp edi, 0xffffffff
je 0x430cfb
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 0x430ccc
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 0x430ceb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0xa
call ebx
cmp dword [esp + 0xc], esi
jb 0x430ce0
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 0x430d00
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 0x430d3d
cmp esi, 0xffffffff
je 0x430d3d
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x430d5d
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
test esi, esi
je 0x430d88
cmp esi, 0xffffffff
je 0x430d88
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 0x430d8f
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 0x430daa
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x430da0
push 0xa
call ebx
cmp dword [esp + 0xc], edi
jb 0x430da0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x430dc0
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 0x430e4e
cmp esi, 0xffffffff
je 0x430e4e
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 0x430e1e
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 0x430e12
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 0x430ef0
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x4ba858]
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 0x430f42
cmp esi, 0xffffffff
jne 0x430fb5
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
push edi
call ebp
test eax, eax
je 0x43101b
cmp eax, 0xffffffff
je 0x43101b
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 0x430f95
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 0x43100b
cmp esi, 0xffffffff
je 0x43100b
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 0x430fef
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x43101b
push edi
lea eax, [esp + 0x1c]
push eax
jmp 0x431015
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x431004
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
jmp 0x43101d
test bl, bl
je 0x43101b
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.0048181f
add esp, 0x110
ret
Function at 0x431040
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 0x431053
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 0x4310ad
cmp eax, 0xffffffff
je 0x4310ad
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 0x4310f3
cmp eax, 0xffffffff
je 0x4310f3
push ebx
push esi
mov dword [esi], 1
call fcn.00430980
add esp, 8
test eax, eax
mov dword [esi + 0xc], eax
jne 0x431099
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 0x4347d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x4be0d4], 0
je 0x4347f9
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x4347f9
mov eax, dword [0x4bd0c4]
and eax, 0x7fffffff
sub eax, 1
jne 0x4347f9
mov dword [esp + 4], ecx
jmp fcn.00443780
ret
Function at 0x452f70
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x4530d5
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4530d5
mov edx, dword [edi + 0xc]
push ebp
push esi
mov esi, dword [eax + 0xc]
cmp edx, esi
jge 0x452f9d
mov ebp, edx
mov dword [esp + 0x10], ebp
jmp 0x452fa3
mov ebp, esi
mov dword [esp + 0x10], esi
mov ecx, dword [edi + 0x10]
push ebx
mov ebx, dword [eax + 0x10]
cmp ecx, ebx
jge 0x452fb0
mov ebx, ecx
cmp dword [eax + 0x14], 0
je 0x452fca
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx + 0x120]
mov eax, dword [eax + 0x18]
mov esi, ecx
lea ecx, [eax + ecx*4 + 4]
jmp 0x452fcd
mov ecx, dword [eax + 0x18]
sub esi, ebp
cmp dword [edi + 0x14], 0
je 0x452fe9
mov edx, dword [edi + 0x14]
mov eax, dword [edx + 0x120]
mov edi, dword [edi + 0x18]
mov edx, eax
lea eax, [edi + eax*4 + 4]
jmp 0x452fec
mov eax, dword [edi + 0x18]
sub edx, ebp
test ebp, ebp
je 0x4530d2
test ebx, ebx
je 0x4530d2
mov edi, dword [esp + 0x1c]
sub edi, 0
je 0x4530a1
sub edi, 1
je 0x453063
sub edi, 1
jne 0x4530d2
test ebx, ebx
jle 0x4530d2
add esi, esi
add esi, esi
lea edi, [edx*4]
lea esp, [esp]
test ebp, ebp
jle 0x453055
mov edx, ebp
mov ebp, dword [ecx]
xor ebp, dword [eax]
add ecx, 4
and ebp, 0xffffff
xor ebp, dword [ecx - 4]
add eax, 4
sub edx, 1
mov dword [eax - 4], ebp
jne 0x453036
mov ebp, dword [esp + 0x14]
add ecx, esi
add eax, edi
sub ebx, 1
jne 0x453030
pop ebx
pop esi
pop ebp
pop edi
ret
test ebx, ebx
jle 0x4530d2
add esi, esi
add esi, esi
lea edi, [edx*4]
test ebp, ebp
jle 0x453093
mov edx, ebp
mov ebp, dword [ecx]
xor ebp, dword [eax]
add ecx, 4
and ebp, 0xffffff
xor dword [eax], ebp
add eax, 4
sub edx, 1
jne 0x453078
mov ebp, dword [esp + 0x14]
add ecx, esi
add eax, edi
sub ebx, 1
jne 0x453072
pop ebx
pop esi
pop ebp
pop edi
ret
test ebx, ebx
jle 0x4530d2
add esi, esi
add esi, esi
lea edi, [edx*4]
test ebp, ebp
jle 0x4530c9
mov edx, ebp
mov ebp, dword [ecx]
mov dword [eax], ebp
add eax, 4
add ecx, 4
sub edx, 1
jne 0x4530b6
mov ebp, dword [esp + 0x14]
add ecx, esi
add eax, edi
sub ebx, 1
jne 0x4530b0
pop ebx
pop esi
pop ebp
pop edi
ret