joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406273
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406298
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x40628f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40630b
cmp dword [0x440a40], ebx
je 0x40630b
cmp byte [0x440640], bl
je 0x4062d7
cmp dword [0x40a8a0], 0xffffffff
jne 0x4062e0
push 4
push 0x40000000
push 0x440640
call fcn.00405c27
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40630b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40630b
push esi
mov esi, 0x444a60
push 0x40aae8
push esi
call fcn.00405f75
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f68
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064bd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44023c], esi
push edi
jne 0x4064f7
mov ecx, 0x440238
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064d3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440638
jl 0x4064ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40652c
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440238]
xor eax, esi
inc ecx
dec edx
jne 0x40650f
pop edi
pop esi
not eax
ret 0xc

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x4178f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x140]
test eax, eax
js 0x4179ea
mov ecx, dword [esi + 0x13c]
push edi
mov edi, dword [ebp + 0xc]
cmp edi, ecx
jne 0x417a01
cmp eax, 0xa
jne 0x417929
cmp dword [esi + 0x12c], 0
jne 0x417a01
cmp eax, 0xb
je 0x417a01
mov edx, dword [esi + 0x130]
cmp dword [esi + 0x134], edx
je 0x41794b
test edx, edx
je 0x41794b
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push ebx
mov ebx, dword [esi + 0x128]
cmp edx, ebx
jb 0x4179ed
add ecx, ebx
lea eax, [edx + edi]
cmp eax, ecx
ja 0x4179ed
test edi, edi
je 0x4179ac
cmp edx, ebx
jne 0x4179ac
test dl, 0xf
je 0x417985
lea eax, [esi + 0x30]
lea ecx, [esi + 0x20]
push eax
push ecx
push ecx
call fcn.00418e24
add esp, 0xc
movzx edx, byte [esi]
lea ebx, [esi + 0x10]
and edx, 7
xor ecx, ecx
mov eax, ebx
inc edx
lea eax, [eax - 1]
mov byte [eax], cl
shr ecx, 8
dec edx
jne 0x417993
lea eax, [esi + 0x30]
push eax
push ebx
push esi
call fcn.00418e24
add esp, 0xc
mov eax, dword [esi + 0x130]
xor edx, edx
sub eax, dword [esi + 0x128]
test edi, edi
je 0x4179d7
mov ebx, dword [ebp + 8]
lea ecx, [esi + 0x10]
add ecx, eax
mov al, byte [ecx + 0x10]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [edx + ebx], al
inc edx
cmp edx, edi
jb 0x4179c6
mov ecx, dword [esi + 0x130]
xor eax, eax
cmp ecx, dword [esi + 0x134]
pop ebx
setne al
pop edi
pop esi
pop ebp
ret
pop ebx
pop edi
mov dword [esi + 0x140], 0xfffffff9
mov eax, 0xfffffff9
pop esi
pop ebp
ret
pop edi
mov dword [esi + 0x140], 0xfffffffa
mov eax, 0xfffffffa
pop esi
pop ebp
ret
Function at 0x405e7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229f4], esi
push edi
jne 0x405eb6
mov ecx, 0x4229f0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405e92
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df0
jl 0x405e8d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405eeb
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4229f0]
xor eax, esi
inc ecx
dec edx
jne 0x405ece
pop edi
pop esi
not eax
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x41cc40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
xor eax, eax
mov ecx, dword [0x4655f0]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov ecx, dword [0x465f24]
mov edx, dword [0x465f28]
sub eax, 1
mov esi, ecx
add esi, eax
imul ecx, esi
and ecx, 1
cmp ecx, 0
sete bl
and bl, 1
mov byte [ebp - 0x12], bl
cmp edx, 0xa
setl bl
and bl, 1
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x18], 0x8b820fe6
mov eax, dword [ebp - 0x18]
mov ecx, eax
sub ecx, 0x8b820fe6
mov dword [ebp - 0x1c], eax
je 0x41cce5
jmp 0x41cca7
mov eax, dword [ebp - 0x1c]
sub eax, 0xf257d312
je 0x41cd32
jmp 0x41ccba
mov eax, dword [ebp - 0x1c]
sub eax, 0xfdd0ed81
je 0x41ce08
jmp 0x41cccd
mov eax, dword [ebp - 0x1c]
sub eax, 0x16d48812
je 0x41cdf4
jmp 0x41cce0
jmp 0x41ce65
mov al, byte [ebp - 0x12]
mov cl, byte [ebp - 0x11]
mov dl, al
xor dl, 0xff
mov ah, cl
xor ah, 0xff
mov ch, 1
xor ch, 0
mov dh, dl
and dh, 0
and al, ch
mov bl, ah
and bl, 0
and cl, ch
or dh, al
or bl, cl
xor dh, bl
or dl, ah
xor dl, 0xff
or ch, 0
and dl, ch
or dh, dl
test dh, 1
mov esi, 0xf257d312
mov edi, 0xfdd0ed81
cmovne edi, esi
mov dword [ebp - 0x18], edi
jmp 0x41ce65
push eax
sub esp, 0x100
mov eax, esp
push eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ebp - 0x20], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x28]
mov dword [ecx], eax
mov eax, dword [ecx]
sub esp, 0xc
mov ecx, dword [ebp - 0x20]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x104
call fcn.004542a7
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [esp], ecx
mov dword [ebp - 0x24], eax
call fcn.00419650
add esp, 4
xor eax, eax
mov ecx, dword [0x465f24]
mov edx, dword [0x465f28]
sub eax, 1
mov esi, ecx
add esi, eax
imul ecx, esi
and ecx, 1
cmp ecx, 0
sete bl
cmp edx, 0xa
setl bh
mov al, bl
xor al, 0xff
mov ah, bh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov ch, al
and ch, 0xff
and bl, cl
mov dl, ah
and dl, 0xff
and bh, cl
or ch, bl
or dl, bh
xor ch, dl
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or ch, al
test ch, 1
mov esi, 0x16d48812
mov edi, 0xfdd0ed81
cmovne edi, esi
mov dword [ebp - 0x18], edi
jmp 0x41ce65
mov eax, dword [ebp - 0x10]
xor eax, ebp
mov ecx, eax
call fcn.00451311
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
sub esp, 0x100
mov eax, esp
push eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ebp - 0x28], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x28]
mov dword [ecx], eax
mov eax, dword [ecx]
sub esp, 0xc
mov ecx, dword [ebp - 0x28]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x104
call fcn.004542a7
add esp, 8
mov ecx, dword [ebp - 0x28]
mov dword [esp], ecx
mov dword [ebp - 0x2c], eax
call fcn.00419650
add esp, 4
mov dword [ebp - 0x18], 0xf257d312
jmp 0x41cc8e
Function at 0x451b9c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x451bdb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x451bdb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x451bdb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x451bdb
cmp dword [ecx + 0x74], 0xe
jbe 0x451bdb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x454800
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45482d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45482d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x454bc2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45f758
push 0x45f750
push str.FlsAlloc
push 0x1f
call fcn.00454ea5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x454bf6
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x454bfc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x454c40
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45f768
push 0x45f760
push str.FlsGetValue
push 0x21
call fcn.00454ea5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x454c77
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x454c7f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45f770
push 0x45f768
push str.FlsSetValue
push 0x22
call fcn.00454ea5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x454cb9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x45874a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4587e7
push ebx
push esi
call fcn.004587ea
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0045864e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x458794
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4587e6
push edi
push eax
call fcn.004570db
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4587b4
call fcn.0045618b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4587e5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0045864e
add esp, 0x20
test eax, eax
jne 0x4587d3
push edi
call fcn.0045618b
jmp 0x4587db
push ebx
call fcn.0045618b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4014e0
Capabilities:
Create service
Delete service
Modify service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x465014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0xf003f
mov ecx, 0x467124
mov dword [ebp - 0x128], esi
push 0
mov word [esi], ax
mov eax, 0x4677ac
cmp byte [0x4677ac], 0
push 0
cmove eax, ecx
mov dword [ebp - 0x138], str.wait
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x12c], ebx
test ebx, ebx
jne 0x401564
mov eax, 1
mov word [esi], ax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040775e
mov esp, ebp
pop ebp
ret
push edi
push 0xf01ff
push 0x467540
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
mov edi, eax
test edi, edi
je 0x4015c3
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 1
push 0x5dc
call esi
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4015b3
mov eax, dword [ebp - 0x128]
mov ecx, 1
mov word [eax], cx
jmp 0x4015bc
push 1
push 0x9c4
call esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
mov edi, 5
nop word [eax + eax]
test di, di
jle 0x401671
push 0
push 0
push 0
push 0
push 0
push 0x467334
push 1
push 3
push 0x10
push 0xf01ff
push 0x467540
push 0x467540
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x401617
push 1
push 0x7d0
call dword [sym.imp.KERNEL32.dll_SleepEx]
dec edi
test esi, esi
je 0x4015d0
lea eax, [ebp - 0x130]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
je 0x401644
lea eax, [ebp - 0x138]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x401652
mov eax, dword [ebp - 0x128]
mov ecx, 1
mov word [eax], cx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040775e
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x40161c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
mov ebx, eax
mov dword [ebp - 0x23c], 0x100
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.004086d0
lea eax, [ebp - 0x120]
mov ecx, 0x41
push eax
lea esi, [ebp - 0x23c]
lea edi, [ebp - 0x124]
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.004050b0
mov eax, dword [ebp - 0x128]
mov ecx, 1
mov ebx, dword [ebp - 0x12c]
add esp, 0x14
mov word [eax], cx
jmp 0x401659
Function at 0x4016e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00401100
call fcn.00401b30
cmp word [0x4677a0], 1
je 0x40172f
cmp word [0x4677a2], 1
jne 0x40170f
push 1
push 0xbb8
call dword [sym.imp.KERNEL32.dll_SleepEx]
push esi
call fcn.00401b40
mov ecx, dword [0x467108]
mov esi, eax
test ecx, ecx
je 0x401728
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
call fcn.004014e0
add esp, 4
push 0
call fcn.00411b1b
int3
Function at 0x402ad0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, edx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [ecx + 1]
mov dword [esi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ae6
sub ecx, edi
test ecx, ecx
jle 0x402b31
cmp byte [ecx + edx - 1], 0x5c
push 0
jne 0x402b05
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x402b25
push 0x80
push 1
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x402b29
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x402b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
pop ebp
ret

Function at 0x402c40
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, 1
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402c71
pop edi
mov dword [esi], 2
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, eax
and ecx, 0x10
cmp dword [esi], 0
mov dword [ebp - 4], ecx
jne 0x402d27
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and eax, 0xfffffffe
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x80
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, ebx
cmp si, 8
jg 0x402d27
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402ce2
push eax
push 0x4000000
push 3
push eax
push 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x402cdf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402d1e
mov eax, dword [ebp - 4]
cmp bx, 1
jne 0x402d20
push edi
test eax, eax
je 0x402cf5
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x402cfb
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402d1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
push 0
mov dword [ecx], eax
movsx eax, si
imul eax, eax, 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x402d20
xor ebx, ebx
inc esi
cmp bx, 1
je 0x402ca7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404fc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x465014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x4659f4], 1
push esi
mov esi, dword [ebp + 0xc]
jne 0x404fe8
push 0xffffffffffffffff
call fcn.00411b1b
mov eax, 1
mov word [0x4659f4], ax
mov eax, dword [ebp + 8]
test eax, eax
je 0x405020
push 0
push 0xff
lea ecx, [ebp - 0x104]
push ecx
push 0
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov byte [ebp + eax - 0x104], 0
push esi
lea eax, [ebp - 0x204]
mov byte [ebp - 0x104], 0
push 0x100
push eax
call fcn.004233e8
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.004234ab
lea eax, [ebp - 0x204]
push eax
call fcn.00404e10
add esp, 0x1c
push 0xffffffffffffffff
call fcn.00411b1b
int3
Function at 0x4058e0
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x465e24]
test eax, eax
jne 0x405912
mov esi, dword [edi]
mov dword [ebp - 4], esi
jmp 0x405925
jle 0x405925
mov eax, dword [eax*4 + 0x465e00]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_UpdateWindow]
movsx eax, word [edi + 0xc]
push 1
push eax
movsx eax, word [edi + 0xa]
push eax
movsx eax, word [edi + 8]
push eax
movsx eax, word [edi + 6]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_MoveWindow]
push 0
push 0
push 0x403
push dword [edi]
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [0x465e24]
inc ecx
mov dword [0x465e24], ecx
cmp ecx, 7
jg 0x405a72
or eax, 0xffffffff
mov dword [ecx*4 + 0x465e00], edi
push ebx
mov word [edi + 0x124], ax
lea ebx, [eax + 2]
nop dword [eax]
mov eax, dword [ecx*4 + 0x465e00]
cmp word [eax + 0x124], 0xffff
jne 0x405a0e
push 0
push 0
push esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4059fe
cmp dword [ebp - 0x24], 0x12
je 0x405a78
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp bx, 1
jne 0x4059fe
push 0
push 0
push 0x402
push dword [edi]
call dword [sym.imp.USER32.dll_PostMessageA]
xor ebx, ebx
mov ecx, dword [0x465e24]
cmp esi, 1
jne 0x405a0e
mov esi, dword [ebp - 4]
jmp 0x4059a0
sub ecx, 1
pop ebx
mov dword [0x465e24], ecx
jns 0x405a2f
push str.showmodal
push 0xffffffffffffffff
call fcn.00404fc0
mov ecx, dword [0x465e24]
add esp, 8
mov esi, dword [sym.imp.USER32.dll_SetFocus]
test ecx, ecx
jle 0x405a5a
mov eax, dword [ecx*4 + 0x465e00]
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [0x465e24]
mov eax, dword [eax*4 + 0x465e00]
push dword [eax]
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x405a68
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x405a72
push eax
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.00411b1b
int3

Function at 0x43d88d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043d761

Function at 0x44056a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043ff28

Function at 0x44945f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00449057

Function at 0x44946a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004491e1
Function at 0x10004560
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], 0x3000
mov eax, dword [0x1000638c]
mov dword [0x10006484], eax
push str.VirtualAlloc
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10006488], eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x34], 1
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 1
push str.LOcfSJpdtk
call dword [sym.imp.GDI32.dll_AddFontResourceW]
push 0x40
mov ecx, dword [ebp - 4]
push ecx
push dword [0x10006484]
push dword [0x100063d8]
push dword [0x10006488]
pop ecx
mov ecx, dword [0x10006488]
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
push 0x10004648
push ecx
ret
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0041a930
mov eax, dword [0x425018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x2004]
push 0x2000
push edx
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00419b16
mov esp, ebp
pop ebp
ret

Function at 0x401540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp + 0xc]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x401593
cmp eax, 0x3e5
je 0x401593
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x4015d3
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4015b1
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov dword [ebp - 4], 0
jmp 0x4015da
push 1
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4015da
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4015e5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret