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

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x205
ja 0x402604
je 0x4025e9
test eax, eax
je 0x4025cb
cmp eax, 0x101
je 0x402490
cmp eax, 0x202
jne case.0x4024a3.14
mov eax, dword [0x4c1e48]
mov eax, dword [eax*4 + 0x6eacd0]
cmp dword [eax + 4], 0
jne 0x40248f
xor eax, eax
ret
mov eax, dword [esp + 8]
add eax, 0xfffffff3
cmp eax, 0x1b
ja case.0x4024a3.14
movzx ecx, byte [eax + 0x402718]
jmp dword [ecx*4 + 0x4026e8]
mov edx, dword [0x4c1e48]
mov eax, dword [edx*4 + 0x6eacd0]
cmp dword [eax + 0x1c], 0
je case.0x4024a3.14
add eax, 0x18
ret
mov eax, dword [0x4c1e48]
mov eax, dword [eax*4 + 0x6eacd0]
cmp dword [eax + 0x24], 0
je case.0x4024a3.14
add eax, 0x20
ret
mov ecx, dword [0x4c1e48]
mov eax, dword [ecx*4 + 0x6eacd0]
cmp dword [eax + 0x2c], 0
je case.0x4024a3.14
add eax, 0x28
ret
mov edx, dword [0x4c1e48]
mov eax, dword [edx*4 + 0x6eacd0]
cmp dword [eax + 0x34], 0
je case.0x4024a3.14
add eax, 0x30
ret
mov eax, dword [0x4c1e48]
mov eax, dword [eax*4 + 0x6eacd0]
cmp dword [eax + 0x74], 0
je case.0x4024a3.14
add eax, 0x70
ret
mov ecx, dword [0x4c1e48]
mov eax, dword [ecx*4 + 0x6eacd0]
cmp dword [eax + 4], 0
je case.0x4024a3.14
ret
mov edx, dword [0x4c1e48]
mov eax, dword [edx*4 + 0x6eacd0]
cmp dword [eax + 0x3c], 0
je case.0x4024a3.14
add eax, 0x38
ret
mov eax, dword [0x4c1e48]
mov eax, dword [eax*4 + 0x6eacd0]
cmp dword [eax + 0x7c], 0
je case.0x4024a3.14
add eax, 0x78
ret
mov ecx, dword [0x4c1e48]
mov eax, dword [ecx*4 + 0x6eacd0]
cmp dword [eax + 0x84], 0
je case.0x4024a3.14
add eax, 0x80
ret
mov edx, dword [0x4c1e48]
mov eax, dword [edx*4 + 0x6eacd0]
cmp dword [eax + 0x8c], 0
je case.0x4024a3.14
add eax, 0x88
ret
mov eax, dword [0x4c1e48]
mov eax, dword [eax*4 + 0x6eacd0]
cmp dword [eax + 0x94], 0
je case.0x4024a3.14
add eax, 0x90
ret
mov ecx, dword [esp + 8]
mov edx, dword [ecx*4 + 0x6eacd0]
mov eax, dword [esp + 0xc]
cmp dword [edx + eax*8 + 4], 0
lea eax, [edx + eax*8]
je case.0x4024a3.14
ret
mov ecx, dword [0x4c1e48]
mov eax, dword [ecx*4 + 0x6eacd0]
cmp dword [eax + 0xc], 0
je case.0x4024a3.14
add eax, 8
ret
sub eax, 0x208
je 0x4026cb
sub eax, 2
je 0x402668
sub eax, 2
jne case.0x4024a3.14
mov eax, dword [esp + 8]
cmp eax, 0x10000
je 0x40264e
cmp eax, 0x20000
jne case.0x4024a3.14
mov edx, dword [0x4c1e48]
mov eax, dword [edx*4 + 0x6eacd0]
cmp dword [eax + 0x5c], 0
je case.0x4024a3.14
add eax, 0x58
ret
mov eax, dword [0x4c1e48]
mov eax, dword [eax*4 + 0x6eacd0]
cmp dword [eax + 0x54], 0
je case.0x4024a3.14
add eax, 0x50
ret
cmp dword [esp + 0x10], 0
je case.0x4024a3.14
mov ecx, dword [esp + 8]
shr ecx, 0x10
movsx ecx, cx
mov eax, 0x77777777
imul ecx
sub edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
test ax, ax
jge 0x4026b0
mov ecx, dword [0x4c1e48]
mov eax, dword [ecx*4 + 0x6eacd0]
cmp dword [eax + 0x44], 0
je case.0x4024a3.14
add eax, 0x40
ret
mov edx, dword [0x4c1e48]
mov eax, dword [edx*4 + 0x6eacd0]
cmp dword [eax + 0x4c], 0
je case.0x4024a3.14
add eax, 0x48
ret
mov eax, dword [0x4c1e48]
mov eax, dword [eax*4 + 0x6eacd0]
cmp dword [eax + 0x14], 0
je case.0x4024a3.14
add eax, 0x10
ret
Function at 0x425d60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x4c06dc]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x2c]
push esi
mov dword [esp + 0x10], ecx
call fcn.00425c90
test eax, eax
mov dword [esp + 8], eax
jl 0x425e9b
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 0x425e9b
cmp eax, 0xffffffff
je 0x425e9b
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 0x425e29
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 0x425e67
mov esi, ebx
jmp 0x425e10
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push edx
call fcn.00425370
add esi, 0x20
sub edi, 1
jne 0x425e10
jmp 0x425e67
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 0x425e67
mov esi, ebx
nop
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push edx
call fcn.00425370
add esi, 0x10
sub edi, 1
jne 0x425e50
test ebx, ebx
je 0x425e79
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.00487272
add esp, 0x24
ret 4
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
xor al, al
call fcn.00487272
add esp, 0x24
ret 4
Function at 0x42e2f0
Capabilities:
Enumerate pe sections

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
movzx ecx, ax
cmp ecx, 0x5045
je 0x42e309
or eax, 0xffffffff
pop edi
ret 8
mov edx, eax
and edx, 0xff0000
cmp edx, 0x10000
je 0x42e322
mov eax, 0xfffffffe
pop edi
ret 8
and eax, 0xff000000
cmp eax, 0x1000000
push esi
je 0x42e360
cmp eax, 0x2000000
jne case.0x42e37c.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 0x42e36a
mov esi, dword [esp + 0x10]
mov dword [esi], 0
mov eax, dword [edi + 4]
and eax, 0xff
cmp eax, 4
ja case.0x42e37c.3
mov ecx, 8
jmp dword [eax*4 + 0x42e3f4]
mov dword [esi + 0xc], 0x18
jmp 0x42e39b
mov dword [esi + 0xc], 0x20
jmp 0x42e39b
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 0x42e3d2
movzx eax, byte [edi + 5]
test eax, eax
mov dword [esi + 0x10], eax
mov ecx, 0x100
jne 0x42e3bf
mov dword [esi + 0x10], ecx
movzx eax, byte [edi + 6]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x42e3e0
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 0x432eb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49efb0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x4c06dc]
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 0x432eff
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 0x4a1178
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 0x432f4d
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.00487750
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 0x432fb4
mov dword [ebp - 0x1c], eax
push 0x4b7468
lea eax, [ebp - 0x1c]
push eax
call fcn.00487def
mov byte [ebp - 0x11], 0
mov eax, 0x432faf
ret
cmp byte [ebp + 0x10], 0
je 0x432fc6
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 0x432fed
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
je 0x432fff
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 0x435b70
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x435b79
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 0x435c60
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 0x435ceb
cmp edi, 0xffffffff
je 0x435ceb
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 0x435cbc
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 0x435cdb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0xa
call ebx
cmp dword [esp + 0xc], esi
jb 0x435cd0
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 0x435cf0
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 0x435d2d
cmp esi, 0xffffffff
je 0x435d2d
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x435d4d
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
test esi, esi
je 0x435d78
cmp esi, 0xffffffff
je 0x435d78
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 0x435d7f
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 0x435d9a
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x435d90
push 0xa
call ebx
cmp dword [esp + 0xc], edi
jb 0x435d90
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x435db0
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 0x435e3e
cmp esi, 0xffffffff
je 0x435e3e
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 0x435e0e
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 0x435e02
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 0x435ee0
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x4c06dc]
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 0x435f32
cmp esi, 0xffffffff
jne 0x435fa5
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
push edi
call ebp
test eax, eax
je 0x43600b
cmp eax, 0xffffffff
je 0x43600b
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 0x435f85
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 0x435ffb
cmp esi, 0xffffffff
je 0x435ffb
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 0x435fdf
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x43600b
push edi
lea eax, [esp + 0x1c]
push eax
jmp 0x436005
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x435ff4
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
jmp 0x43600d
test bl, bl
je 0x43600b
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.00487272
add esp, 0x110
ret
Function at 0x436030
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 0x436043
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 0x43609d
cmp eax, 0xffffffff
je 0x43609d
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 0x4360e3
cmp eax, 0xffffffff
je 0x4360e3
push ebx
push esi
mov dword [esi], 1
call fcn.00435970
add esp, 8
test eax, eax
mov dword [esi + 0xc], eax
jne 0x436089
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 0x4396a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x4c3820], 0
je 0x4396c9
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x4396c9
mov eax, dword [0x4c2810]
and eax, 0x7fffffff
sub eax, 1
jne 0x4396c9
mov dword [esp + 4], ecx
jmp fcn.00448e10
ret
Function at 0x4581e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4583b5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4583b5
mov edx, dword [eax + 0x914]
mov ecx, dword [edi + 0xc]
sub ecx, edx
mov dword [esp + 4], edx
mov edx, dword [eax + 0xc]
cmp ecx, edx
push ebp
jge 0x45821b
mov ebp, ecx
mov dword [esp + 0x14], ebp
jmp 0x458221
mov ebp, edx
mov dword [esp + 0x14], edx
mov ecx, dword [edi + 0x10]
mov edx, dword [eax + 0x10]
push ebx
mov ebx, dword [eax + 0x918]
sub ecx, ebx
cmp ecx, edx
mov dword [esp + 0x10], ecx
jl 0x45823c
mov dword [esp + 0x10], edx
cmp dword [eax + 0x14], 0
mov edx, dword [eax + 0x924]
push esi
je 0x45826b
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx + 0x120]
add edx, 1
imul edx, ecx
mov esi, ecx
sub esi, ebp
add edx, dword [eax + 0x920]
mov eax, dword [eax + 0x18]
lea ecx, [eax + edx*4 + 4]
jmp 0x458281
mov ecx, dword [eax + 0xc]
imul edx, ecx
mov esi, ecx
sub esi, ebp
add edx, dword [eax + 0x920]
mov eax, dword [eax + 0x18]
lea ecx, [eax + edx*4]
cmp dword [edi + 0x14], 0
je 0x4582a7
mov edx, dword [edi + 0x14]
mov eax, dword [edx + 0x120]
add ebx, 1
imul ebx, eax
mov edx, eax
mov eax, dword [edi + 0x18]
sub edx, ebp
add ebx, dword [esp + 0x10]
lea eax, [eax + ebx*4 + 4]
jmp 0x4582bb
mov eax, dword [edi + 0xc]
mov edi, dword [edi + 0x18]
mov edx, eax
imul eax, ebx
sub edx, ebp
add eax, dword [esp + 0x10]
lea eax, [edi + eax*4]
test ebp, ebp
je 0x4583b2
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4583b2
mov ebx, dword [esp + 0x24]
sub ebx, 0
je 0x45837c
sub ebx, 1
je 0x458336
sub ebx, 1
jne 0x4583b2
test edi, edi
jle 0x4583b2
add esi, esi
add esi, esi
lea ebx, [edx*4]
lea ecx, [ecx]
test ebp, ebp
jle 0x458325
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 0x458306
mov ebp, dword [esp + 0x1c]
add ecx, esi
add eax, ebx
sub edi, 1
jne 0x458300
pop esi
pop ebx
pop ebp
pop edi
add esp, 8
ret
test edi, edi
jle 0x4583b2
add esi, esi
add esi, esi
lea ebx, [edx*4]
test ebp, ebp
jle 0x45836b
mov edx, ebp
jmp 0x458350
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 0x458350
mov ebp, dword [esp + 0x1c]
add ecx, esi
add eax, ebx
sub edi, 1
jne 0x458345
pop esi
pop ebx
pop ebp
pop edi
add esp, 8
ret
test edi, edi
jle 0x4583b2
add esi, esi
add esi, esi
lea ebx, [edx*4]
jmp 0x458390
test ebp, ebp
jle 0x4583a9
mov edx, ebp
mov ebp, dword [ecx]
mov dword [eax], ebp
add eax, 4
add ecx, 4
sub edx, 1
jne 0x458396
mov ebp, dword [esp + 0x1c]
add ecx, esi
add eax, ebx
sub edi, 1
jne 0x458390
pop esi
pop ebx
pop ebp
pop edi
add esp, 8
ret
Function at 0x459010
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
test eax, eax
jne 0x459021
xor al, al
add esp, 0x14
ret
mov edx, dword [eax + 0x918]
mov ecx, dword [eax + 0x914]
push ebp
mov ebp, dword [eax + 0xc]
mov dword [esp + 0xc], edx
mov edx, dword [eax + 0x924]
imul edx, ebp
add edx, dword [eax + 0x920]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edi
mov dword [esp + 8], ecx
push 0x104
lea ecx, [eax + edx*4]
push 0x40
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x459075
pop edi
xor al, al
pop ebp
add esp, 0x14
ret
mov edx, dword [esp + 0x24]
push ebx
push esi
push edi
push edx
call fcn.0046fd00
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 8
push 0
push 0x8000080
push 3
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
test esi, esi
je 0x4590af
cmp esi, 0xffffffff
jne 0x459136
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
test esi, esi
je 0x4591d3
cmp esi, 0xffffffff
je 0x4591d3
mov eax, dword [0x6f126c]
imul eax, dword [0x6f1268]
lea eax, [eax*4 + 0x10]
push eax
push 0x40
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x459136
mov dword [ebx], 0x4d554854
mov eax, dword [0x6f1268]
push 0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [0x6f126c]
lea edx, [esp + 0x24]
push edx
push eax
push ebx
push esi
mov dword [ebx + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [0x6f1268]
imul ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x1c]
push 0
push 0
lea edx, [ecx*4 + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [0x6f1268]
sub edi, ebp
add edi, edi
xor ebx, ebx
add edi, edi
cmp dword [esp + 0x10], ebx
jle 0x4591b1
add ebp, ebp
add ebp, ebp
mov edi, edi
mov ecx, dword [esp + 0x28]
push 0
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4591c2
add dword [esp + 0x28], ebp
push 1
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add ebx, 1
cmp ebx, dword [esp + 0x10]
jl 0x459180
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
mov al, 1
pop ebp
add esp, 0x14
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
xor al, al
pop ebp
add esp, 0x14
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
pop edi
xor al, al
pop ebp
add esp, 0x14
ret
Function at 0x45dfb0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jbe 0x45dfcd
mov cl, byte [esp + 0xc]
mov eax, dword [esp + 4]
xor byte [eax], cl
add eax, 1
add cl, 0x5c
sub edx, 1
jne 0x45dfc0
ret
Function at 0x463d10
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x5bc894], 0
je 0x463d60
mov eax, dword [0x5bc890]
push 0
push 0
push 0x500
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ecx, dword [0x5bc894]
push 0xbb8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x463d56
mov edx, dword [0x5bc894]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x5bc894], 0
push 0x5bc878
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov al, 1
ret

Function at 0x464510
Capabilities:
Create thread

Disassembly:
push 0x5bc878
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x5bc890
push 0
push 0
push 0x4641f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x5bc894], eax
jne 0x46454a
push 0x5bc878
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
xor al, al
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov al, 1
ret

Function at 0x469790
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x6e6358]
test eax, eax
je 0x469839
mov ecx, dword [0x6e6348]
push 0
push 0
push 0x500
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov edx, dword [0x6e6344]
push 0xbb8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4697da
mov eax, dword [0x6e6344]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x6e6344]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [0x6e6350]
push edx
call esi
mov eax, dword [0x6e6354]
push eax
call esi
mov ecx, dword [0x6e633c]
push ecx
call esi
mov edx, dword [0x6e634c]
push edx
call esi
mov eax, dword [0x6e635c]
test eax, eax
pop esi
je 0x46982f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x6e635c], 0
mov dword [0x6e6358], 0
ret