joyce8/EMBER2024-capa huggingface dataset:
Function at 0xac9c50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e000]
push edi
jmp 0xac9c6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xac9c71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xac9c60
mov eax, 1
add ebx, ebx
jne 0xac9c83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xac9c78
jne 0xac9c94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xac9c78
xor ecx, ecx
sub eax, 3
jb 0xac9ca8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xac9d1a
mov ebp, eax
add ebx, ebx
jne 0xac9cb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xac9cc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xac9ce4
inc ecx
add ebx, ebx
jne 0xac9cd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xac9cc5
jne 0xac9ce1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xac9cc5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xac9d04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xac9cf5
jmp 0xac9c66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xac9d04
add edi, ecx
jmp 0xac9c66
pop esi
mov edi, esi
mov ecx, 0x651
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xac9d22
cmp byte [edi], 5
jne 0xac9d22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xac9d27
lea edi, [esi + 0x27000]
mov eax, dword [edi]
or eax, eax
je 0xac9d9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2f49c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2f528]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xac9d54
mov ecx, edi
jns 0xac9d83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2f52c]
or eax, eax
je 0xac9d99
mov dword [ebx], eax
add ebx, 4
jmp 0xac9d71
call dword [esi + 0x2f53c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xac9dd0
cmp al, 0xef
ja 0xac9dc3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xac9da5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xac9db2
mov ebp, dword [esi + 0x2f530]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xac9e04
sub esp, 0xffffff80
jmp 0xaa4f8f
Function at 0x1123c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1123c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1123c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1123c06a
add dl, dl
jne 0x1123c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1123c0dc
xor eax, eax
add dl, dl
jne 0x1123c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1123c17d
add dl, dl
jne 0x1123c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1123c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1123c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1123c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1123c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1123c075
mov eax, 1
add dl, dl
jne 0x1123c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1123c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1123c0e1
sub eax, ebx
mov ebx, 1
jne 0x1123c128
mov ecx, 1
add dl, dl
jne 0x1123c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1123c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1123c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1123c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1123c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1123c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1123c136
cmp eax, 0x7d00
jae 0x1123c16d
cmp eax, 0x500
jb 0x1123c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1123c075
cmp eax, 0x7f
ja 0x1123c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1123c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1123c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1123c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x492940
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7d000]
push edi
jmp 0x49295a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x492961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x492950
mov eax, 1
add ebx, ebx
jne 0x492973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x492968
jne 0x492984
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x492968
xor ecx, ecx
sub eax, 3
jb 0x492998
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x492a0a
mov ebp, eax
add ebx, ebx
jne 0x4929a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4929b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4929d4
inc ecx
add ebx, ebx
jne 0x4929c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4929b5
jne 0x4929d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4929b5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4929f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4929e5
jmp 0x492956
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4929f4
add edi, ecx
jmp 0x492956
pop esi
mov edi, esi
mov ecx, 0x104c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x492a12
cmp byte [edi], 9
jne 0x492a12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x492a17
lea edi, [esi + 0x8f000]
mov eax, dword [edi]
or eax, eax
je 0x492a8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x92be0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x92c94]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x492a44
mov ecx, edi
jns 0x492a73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x92c98]
or eax, eax
je 0x492a89
mov dword [ebx], eax
add ebx, 4
jmp 0x492a61
call dword [esi + 0x92ca8]
mov ebp, dword [esi + 0x92c9c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x492ac3
sub esp, 0xffffff80
jmp 0x40fcc2
Function at 0x401460
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x94
lea edx, [ebp - 0x4c]
mov eax, 0
mov ecx, 0x11
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateProcessA_40
sub esp, 0x28
test eax, eax
jne 0x4014f6
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.CreateProcess_failed:__d_n
call sym._printf
mov eax, 1
jmp 0x40152d
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, 0
mov edi, dword [ebp - 4]
leave
ret

Function at 0x401532
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x134
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0x104
call sym._GetTempPathA_8
sub esp, 8
lea eax, [ebp - 0x110]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x110]
add eax, edx
mov dword [eax], 0x706d6574
mov dword [eax + 4], 0x6664702e
mov byte [eax + 8], 0
mov dword [esp + 4], 0x40c3d7
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40163a
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x110]
mov dword [esp + 8], eax
mov dword [esp + 4], str.open
mov dword [esp], 0
call sym._ShellExecuteA_24
sub esp, 0x18
mov dword [esp], 0x1388
call sym._Sleep_4
sub esp, 4
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._DeleteFileA_4
sub esp, 4
mov eax, 0
jmp 0x401666
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Failed_to_create_PDF_file.
mov dword [esp], 0
call sym._MessageBoxA_16
sub esp, 0x10
mov eax, 1
mov edi, dword [ebp - 4]
leave
ret
Function at 0x401d80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40f044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40f03c]
sub esp, 4
test ebx, ebx
je 0x401dcb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401dc4
test esi, esi
je 0x401dc4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401da0
mov dword [esp], 0x40f044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401fb0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4020d8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40203e
cmp eax, 4
jne 0x402060
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40204e
cmp edx, 4
je 0x40204e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401fb0
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401169
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateToolhelp32Snapshot__of_processes__failed._Error:__d_n
call fcn.00401050
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x4011a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Process32First_failed._Error:__d_n
call fcn.00401050
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
push dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
call edi
add esp, 8
test eax, eax
je 0x4011e1
lea eax, [esp + 0x18]
push eax
push esi
call ebx
test eax, eax
jne 0x4011b1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401200
Capabilities:
Enumerate processes
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push 0
mov edi, ecx
push 2
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x401237
push str.Failed_to_create_snapshot._n
call fcn.00401010
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x258], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40137e
nop dword [eax]
lea eax, [ebp - 0x234]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40135a
push dword [ebp - 0x250]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x4012ad
push dword [ebp - 0x250]
push edi
push str.Failed_to_open_process__s__PID:__d_._n
call fcn.00401010
add esp, 0xc
jmp 0x40135a
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4012d0
push str.Failed_to_create_thread_snapshot._n
call fcn.00401010
add esp, 4
jmp 0x401354
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x401344
nop word [eax + eax]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x250]
jne 0x401330
push dword [ebp - 0x20]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x40131a
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
call ebx
jmp 0x401330
push dword [ebp - 0x250]
push dword [ebp - 0x20]
push str.Failed_to_open_thread__d_of_process__d._n
call fcn.00401010
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x4012f0
mov esi, dword [ebp - 0xc]
jmp 0x401351
push str.Failed_to_retrieve_threads._n
call fcn.00401010
add esp, 4
push edi
call ebx
push esi
call ebx
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401260
push dword [ebp - 8]
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Failed_to_retrieve_processes._n
call fcn.00401010
add esp, 4
push dword [ebp - 8]
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401690
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401752
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x401717
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [esp + 0x34]
mov ecx, ebx
nop dword [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401700
test dl, dl
je 0x4016fc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401700
add ecx, 2
add eax, 2
test dl, dl
jne 0x4016e0
xor eax, eax
jmp 0x401705
sbb eax, eax
or eax, 1
test eax, eax
je 0x40174c
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x4016d5
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
test edi, edi
je 0x401752
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x401752
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x18]
jmp 0x401717
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402691
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4026d0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4026d0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4026d0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4026d0
cmp dword [ecx + 0x74], 0xe
jbe 0x4026d0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401812
Capabilities:
Read file on windows

Disassembly:
or esi, 0x79
mov esi, eax
inc edi
mov eax, 3
push eax
push 9
pop edx
push edx
mov ebx, dword [sym.imp.GDI32.DLL_SetSystemPaletteUse]
call ebx
or eax, eax
jne 0x40168d
mov ecx, 0x25ddba
mov dword [0x42c685], 0x1ce7d5
add ecx, dword [0x42c685]
push ecx
mov edx, 0x790166
mov eax, edx
mov edi, 0x376162
mov ebx, edi
sub eax, ebx
call dword [eax]
ret
or ax, si
mov ebx, 0xbd
lea ecx, [4]
sub ecx, dword [0x42c0eb]
add ecx, 2
cwde
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, 0x23108099
mov eax, edi
push eax
mov dword [0x42b300], 0
mov edi, dword [0x42b300]
push edi
mov eax, dword [sym.imp.user32.dll_GetWindowLongW]
call eax
or eax, eax
jne 0x4017c6
mov ebx, eax
sub ebx, eax
mov esi, ebx
add esi, edi
dec esi
sub dword [0x42c860], esi
dec esi
shr esi, 7
add esi, 0xba7
sub esi, dword [0x42b5d8]
add esi, ebx
add dword [0x42b446], esi
call fcn.00401812
sub ebx, 1
lea edx, [4]
bswap edi
not esi
mov ecx, edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
xor esi, esi
push esi
mov ebx, 0x32a0ff
mov eax, ebx
add eax, 0x101c96
push eax
mov eax, 0xaaa737
sub eax, 0x69072b
call dword [eax]
or eax, eax
jne 0x401826
mov edx, 0x6e
mov ebx, edx
push ebx
xor edi, edi
push edi
push 0xe1
pop edi
push edi
mov esi, 3
push esi
mov dword [0x42bdbb], 0
mov ebx, dword [0x42bdbb]
push ebx
mov edi, 7
mov eax, edi
push eax
push 0x5af4e6
pop eax
sub eax, 0x19538a
call dword [eax]
or eax, eax
jne 0x40168c
jmp 0x401887
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
lea eax, [esp + 0x10]
push edi
push eax
push ecx
push pe_nt_image_headers32
push esi
call dword [sym.imp.MSVCRT.dll__vsnprintf]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x10
mov byte [esi + 0xff], 0
push esi
call edi
push 0x406020
call edi
mov eax, esi
pop edi
pop esi
ret

Function at 0x4010a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push esi
push edi
push 0x104
push eax
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4010d0
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
lea edx, [esp + 0x110]
push 0
push edx
lea eax, [esp + 0x14]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x14
lea ecx, [esp + 0x10c]
push ecx
push esi
call edi
push 0x404308
push esi
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x208
ret

Function at 0x4011c0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x220
and eax, 0xffff
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esp + 0xc]
push 0x406258
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esp + 0x240]
mov edi, dword [esp + 0x23c]
add esp, 0xc
lea eax, [esp + 8]
push esi
push edx
push edi
push 0x406660
push eax
push str.LangFolders
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [edi], 0
jne 0x40124e
push esi
lea ecx, [esp + 0xc]
push str.LangFolders
push ecx
lea edx, [esp + 0x134]
push str.No__s_entry_in___s_:__s
push edx
call fcn.00401000
add esp, 0x14
mov esi, eax
mov ecx, 0x40
lea edi, [esp + 0x28]
lea eax, [esp + 0x28]
push 0x4048e8
rep movsd dword es:[edi], dword [esi]
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
pop esi
add esp, 0x220
ret 0xc