joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64197710
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x358
mov esi, dword [ecx]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xe
mov dword [esp + 4], 0xc9
mov dword [esp], esi
call dword [sym.imp.user32.dll_SendDlgItemMessageW]
lea edi, [eax + 1]
sub esp, 0x14
lea eax, [edi + edi]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0xc], edi
mov ebx, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0xc9
mov dword [esp], esi
call dword [sym.imp.user32.dll_GetDlgItemTextW]
sub esp, 0x10
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x64197822
mov ecx, dword [sym.imp.user32.dll_LoadStringW]
mov eax, dword [0x6419a018]
lea edx, [ebp - 0x338]
mov dword [esp + 0xc], 0xc8
mov dword [esp + 8], edx
lea edi, [ebp - 0x1a8]
mov dword [ebp - 0x33c], ecx
mov dword [esp + 4], 0xa
mov dword [esp], eax
call ecx
mov eax, dword [0x6419a018]
mov ecx, dword [ebp - 0x33c]
sub esp, 0x10
mov dword [esp + 0xc], 0xc8
mov dword [esp + 8], edi
mov dword [esp + 4], 0xb
mov dword [esp], eax
call ecx
lea edx, [ebp - 0x338]
sub esp, 0x10
mov dword [esp + 0xc], 0x31
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.user32.dll_MessageBoxW]
sub esp, 0x10
cmp eax, 2
je 0x64197942
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x641978c0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
mov dword [esp + 4], 8
mov dword [esp], esi
call dword [sym.imp.user32.dll_GetWindowLongW]
sub esp, 8
mov dword [eax], ebx
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov ecx, dword [sym.imp.user32.dll_LoadStringW]
mov eax, dword [0x6419a018]
lea edx, [ebp - 0x338]
mov dword [esp + 0xc], 0xc8
mov dword [esp + 8], edx
lea edi, [ebp - 0x1a8]
mov dword [ebp - 0x33c], ecx
mov dword [esp + 4], 0xa
mov dword [esp], eax
call ecx
mov eax, dword [0x6419a018]
mov ecx, dword [ebp - 0x33c]
sub esp, 0x10
mov dword [esp + 0xc], 0xc8
mov dword [esp + 8], edi
mov dword [esp + 4], 0xc
mov dword [esp], eax
call ecx
lea edx, [ebp - 0x338]
sub esp, 0x10
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.user32.dll_MessageBoxW]
sub esp, 0x10
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x641978a5
Function at 0x64197a20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
test eax, eax
je 0x64197b50
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
sub esp, 0x20
cmp edx, 2
je 0x64197a80
lea eax, [edx - 8]
cmp eax, 1
ja 0x64197b10
mov edx, dword [ebx]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [sym.imp.ucrtbase.dll_free]
sub esp, 0xc
mov dword [esp], ebx
call esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [eax]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 4]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call esi
mov edx, dword [ebx + 0x1c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebx + 0x20]
sub esp, 0xc
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call esi
mov dword [esp], ebx
call esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov esi, dword [sym.imp.ucrtbase.dll_free]
test byte [0x6419a04c], 1
je 0x64197a6f
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Unhandled_level__ld_n
mov dword [esp + 8], str.free_printer_info
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x64197a6f
ret
Function at 0x64198190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
lea edx, [ebp - 0x24]
push ebx
sub esp, 0x3c
mov dword [ebp - 0x24], 4
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x1c]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x64198230
mov eax, dword [ebp - 0x20]
cmp eax, 4
jne 0x641981f0
mov edi, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
xor edi, edi
test byte [0x6419a04c], 2
je 0x641981e5
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Got_type__ld_n
mov dword [esp + 8], str.get_dword_from_reg
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
xor edi, edi
test byte [0x6419a04c], 4
je 0x641981e5
mov ebx, eax
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Got_ret___ld_on_name__s_n
mov dword [esp + 8], str.get_dword_from_reg
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x641985d0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x220]
push ebx
sub esp, 0x24c
mov dword [esp + 4], edi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
test eax, eax
je 0x641986f0
lea esi, [eax + eax + 0x16]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x641986f0
lea edx, [esi - 0x16]
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [ebp - 0x22c], edx
call sym._memcpy
mov eax, dword [str.wine_ppds_]
mov edx, dword [ebp - 0x22c]
mov dword [ebx + esi - 0x16], eax
mov eax, dword [0x6419eae4]
mov dword [ebx + edx + 4], eax
mov eax, dword [0x6419eae8]
mov dword [ebx + edx + 8], eax
mov eax, dword [0x6419eaec]
mov dword [ebx + edx + 0xc], eax
mov eax, dword [0x6419eaf0]
mov dword [ebx + edx + 0x10], eax
movzx eax, word [0x6419eaf4]
mov word [ebx + edx + 0x14], ax
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x64198694
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
jne 0x64198700
test byte [0x6419a04c], 8
jne 0x641986b0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.ppd_temporary_dir:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_ppd_dir
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
xor ebx, ebx
call dword [sym.imp.ucrtbase.dll_free]
test byte [0x6419a04c], 8
je 0x6419869d
jmp 0x641986b0

Function at 0x64198720
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x230
test eax, eax
je 0x641987c0
cmp word [eax], 0x5c
jne 0x641987c0
cmp word [eax + 2], 0x5c
jne 0x641987c0
add eax, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ebx, eax
test eax, eax
je 0x641987c0
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x64198770
xor edx, edx
mov word [eax], dx
test byte [0x6419a04c], 8
jne 0x641987d0
lea eax, [ebp - 0x214]
lea esi, [ebp - 0x210]
mov dword [ebp - 0x214], 0x104
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetComputerNameW]
sub esp, 8
test eax, eax
je 0x641987c2
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
jne 0x641987c2
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esi, [esi]
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.found__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_servername_from_name
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x64198779
Function at 0x64199310
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
test byte [0x6419a04c], 8
jne 0x641993d0
test ebx, ebx
je 0x64199368
cmp word [ebx], 0
je 0x64199368
mov eax, str.Windows_NT_x86
mov esi, 0x6419e8b0
xor edi, edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x6419937d
inc edi
cmp edi, 5
je 0x64199408
mov esi, dword [edi*4 + 0x6419e730]
mov eax, dword [esi]
jmp 0x6419933e
call dword [sym.imp.kernel32.dll_GetVersion]
mov esi, 0x6419e888
test eax, eax
mov eax, 0x6419e8b0
cmovns esi, eax
test byte [0x6419a04c], 8
jne 0x64199390
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.using__p:__s_n
mov dword [esp + 8], str.validate_envW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.testing__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.validate_envW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x64199328
movzx eax, byte [0x6419a04c]
test al, 1
jne 0x64199438
mov edx, dword fs:[0x18]
xor esi, esi
mov dword [edx + 0x34], 0x70d
test al, 8
je 0x64199386
xor eax, eax
jmp 0x64199392
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.unsupported_Environment:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.validate_envW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x6419a04c]
jmp 0x64199413
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x17686252
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7eed1015
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00407949
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00407949
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00407949
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00407949
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00407949
mov dword [0x41203c], eax
call fcn.00407949
test eax, eax
jge 0x402550
push 8
call fcn.00407949
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00407949
pop ecx
push 1
call fcn.00407949
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00407949
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00407949
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00407949
jmp 0x402495

Function at 0x407949
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x407958
pop dword [ebp - 0x4c]
mov eax, 0x370bfb59
sub eax, 0x36cb8201
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3ca62
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x5463
xor ebx, ebx
add ebx, eax
mov esi, 0x7effa519
sub esi, 0x7ebe6955
add esi, dword [ebp - 0x4c]
mov edi, 0x1bdcaa11
sub edi, 0x2e5623d3
sub dword [ebp - 0x44], 0x79bbcda6
mov edx, dword [esi]
mov dword [ebp - 0x24], 0xde6d7670
xor edx, edi
add dword [ebp - 4], edi
mov dword [ebx], edx
xor dword [ebp - 0x24], ecx
add ebx, 4
add esi, 0xdb0066ef
add esi, 0x24ff9915
loop 0x4079ae
add eax, 0x209ec489
sub eax, 0x209d802a
mov ebx, eax
add eax, 0x611bb940
sub eax, 0x611bb93b
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x6c1a3c7d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov dword [0x6c1a9610], ecx
dec eax
je 0x6c1a3c9a
push ecx
call fcn.6c1a194e
pop ecx
jmp 0x6c1a3d95
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x6c1aa640], ecx
mov dword [0x6c1aa630], ecx
mov dword [0x6c1aa784], 0x6c1a1000
mov dword [0x6c1aa708], ecx
mov dword [0x6c1aa70c], edx
mov dword [0x6c1aa710], edx
mov eax, dword [ecx + 0x3c]
mov dword [0x6c1aa718], edx
add eax, ecx
inc dword [0x6c1aa778]
mov dword [0x6c1aa6f8], eax
mov dword [0x6c1aa71c], 0x6c1aa76c
mov dword [0x6c1aa720], 0x6c1a1971
mov dword [0x6c1aa724], 0x6c1a2234
mov eax, dword [eax + 0x30]
push ebx
add eax, ecx
mov dword [0x6c1aa728], 0x6c1a2af7
mov dword [0x6c1aa72c], 0x6c1a33ba
mov dword [0x6c1aa730], 0x6c1a3d9e
mov dword [0x6c1aa62c], eax
mov dword [0x6c1aa734], 0x6c1a470f
mov dword [0x6c1aa738], 0x6c1a4fd2
mov dword [0x6c1aa73c], 0x6c1a5895
mov ebx, dword fs:[0x30]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x1c]
mov ebx, eax
mov eax, dword [eax + 8]
mov dword [0x6c1aa774], eax
push 0x6c1a1285
mov dword [0x6c1aa740], 0x6c1a128c
push dword [0x6c1aa774]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6c1a9604], eax
mov eax, dword [0x6c1aa764]
mov dword [0x6c1aa744], eax
call fcn.6c1a18d1
push 0x6c1aa708
call dword [0x6c1aa6e4]
pop ecx
pop ebx
mov eax, dword [0x6c1aa754]
pop ebp
ret 0xc
Function at 0x6c1a6e3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6c1a90d0
cmp edx, dword [eax]
je 0x6c1a6e5f
add eax, 8
inc ecx
cmp eax, 0x6c1a9160
jl 0x6c1a6e50
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6c1a90d0]
jne 0x6c1a6f8d
mov eax, dword [0x6c1aa7e0]
cmp eax, 1
je 0x6c1a6f67
test eax, eax
jne 0x6c1a6e90
cmp dword [0x6c1aa7e4], 1
je 0x6c1a6f67
cmp edx, 0xfc
je 0x6c1a6f8d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6c1a6ec7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.6c1a7880
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.6c1a7970
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6c1a6f0a
lea eax, [ebp - 0x1a4]
push eax
call fcn.6c1a7970
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x6c1a9554
push edi
call fcn.6c1a8190
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.6c1a7880
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.6c1a7890
lea eax, [ebp - 0xa0]
push 0x6c1a9534
push eax
call fcn.6c1a7890
push dword [esi + 0x6c1a90d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.6c1a7890
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.6c1a8105
add esp, 0x2c
pop edi
jmp 0x6c1a6f8d
lea eax, [ebp + 8]
lea esi, [esi + 0x6c1a90d4]
push 0
push eax
push dword [esi]
call fcn.6c1a7970
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40aa60
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
movzx eax, byte [edx]
test eax, eax
jle 0x40ab0f
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 4], eax
jmp 0x40ab07
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
test eax, eax
je 0x40aafc
mov eax, dword [esp]
lea edx, [eax + 6]
mov ebx, edx
mov eax, dword [esp]
movzx edx, word [eax]
dec edx
mov edi, edx
mov dword [esp + 8], 0
cmp edi, dword [esp + 8]
jl 0x40aafc
dec dword [esp + 8]
lea esi, [esi]
inc dword [esp + 8]
lea eax, [ebx + 6]
mov edx, dword [esp + 0xc]
call fcn.00406900
test eax, eax
jne 0x40aaea
mov eax, dword [ebx]
add eax, dword [esp + 0x10]
mov esi, eax
jmp 0x40ab14
lea edx, [ebx + 6]
inc edx
movzx eax, byte [ebx + 6]
add edx, eax
mov ebx, edx
cmp edi, dword [esp + 8]
jg 0x40aacc
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
jne 0x40aa98
mov esi, 0
mov eax, esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add esp, 0x20
ret

Function at 0x40c9a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x5b3f10], eax
mov edx, 1
dec edx
nop
inc edx
mov eax, edx
dec eax
mov ecx, dword [eax*4 + 0x5b3f10]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x5b3f10], eax
cmp edx, 0x26f
jl 0x40c9ac
mov dword [0x558d90], 0x270
ret
Function at 0x40c9e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 4], esi
mov eax, dword [0x5b3010]
cmp eax, dword [0x558b10]
je 0x40ca01
mov dword [0x558d90], 0x271
mov eax, dword [0x558d90]
cmp eax, 0x270
jl 0x40cb29
mov eax, dword [0x558d90]
cmp eax, 0x271
jne 0x40ca38
mov eax, dword [0x5b3010]
call fcn.0040c9a0
mov eax, dword [0x5b3010]
not eax
mov dword [0x5b3010], eax
mov dword [0x558b10], eax
mov edx, 0
dec edx
mov esi, esi
inc edx
mov eax, edx
inc eax
mov eax, dword [eax*4 + 0x5b3f10]
and eax, 0x7fffffff
mov ebx, dword [edx*4 + 0x5b3f10]
and ebx, 0x80000000
or eax, ebx
mov ecx, eax
mov eax, edx
add eax, 0x18d
mov ebx, ecx
shr ebx, 1
mov esi, dword [eax*4 + 0x5b3f10]
xor esi, ebx
mov eax, ecx
and eax, 1
mov eax, dword [eax*4 + 0x558da0]
xor esi, eax
mov dword [edx*4 + 0x5b3f10], esi
cmp edx, 0xe2
jl 0x40ca40
mov edx, 0xe3
dec edx
inc edx
mov eax, edx
inc eax
mov eax, dword [eax*4 + 0x5b3f10]
and eax, 0x7fffffff
mov ebx, dword [edx*4 + 0x5b3f10]
and ebx, 0x80000000
or eax, ebx
mov ecx, eax
mov eax, edx
add eax, 0xffffff1d
mov ebx, ecx
shr ebx, 1
mov esi, dword [eax*4 + 0x5b3f10]
xor esi, ebx
mov eax, ecx
and eax, 1
mov eax, dword [eax*4 + 0x558da0]
xor esi, eax
mov dword [edx*4 + 0x5b3f10], esi
cmp edx, 0x26e
jl 0x40ca98
mov eax, dword [0x5b48cc]
and eax, 0x80000000
mov edx, dword [0x5b3f10]
and edx, 0x7fffffff
or eax, edx
mov ecx, eax
shr eax, 1
mov edx, dword [0x5b4540]
xor eax, edx
and ecx, 1
mov edx, dword [ecx*4 + 0x558da0]
xor eax, edx
mov dword [0x5b48cc], eax
mov dword [0x558d90], 0
mov eax, dword [0x558d90]
mov edx, dword [eax*4 + 0x5b3f10]
inc dword [0x558d90]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov ebx, dword [esp]
mov esi, dword [esp + 4]
add esp, 8
ret

Function at 0x40ece0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, dword [0x558e40]
cmp eax, 0xffffffff
jne 0x40ed06
mov ax, 0xe2
call fcn.0040d0c0
push dword [0x558e40]
call sub.KERNEL32.DLL_TlsGetValue
mov esi, eax
test eax, eax
jne 0x40ed3f
push dword [0x558e30]
push 0x40
call sub.KERNEL32.DLL_LocalAlloc
mov esi, eax
test eax, eax
jne 0x40ed33
mov ax, 0xe2
call fcn.0040d0c0
push esi
push dword [0x558e40]
call sub.KERNEL32.DLL_TlsSetValue
push ebx
call sub.KERNEL32.DLL_SetLastError
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
leave
ret
Function at 0x410440
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x414], edi
mov bl, al
mov dword [ebp - 0x410], edx
mov esi, ecx
movzx eax, bl
test eax, eax
sete byte [ebp - 0x40c]
mov al, byte [ebp - 0x40c]
test al, al
jne 0x41052c
movzx eax, bl
add eax, 0x40
mov byte [0x558e60], al
lea eax, [ebp - 0x208]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov eax, 0x558e60
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
test eax, eax
jne 0x41052c
call sub.KERNEL32.DLL_GetLastError
movzx edi, ax
mov edx, dword [0x5b3020]
test edx, edx
je 0x4104c9
mov eax, dword [0x5b3df0]
call edx
jmp 0x4104ce
mov eax, 0x5b3df4
mov dword [eax], edi
call fcn.00402b30
push 0x558e70
movzx eax, bl
add eax, 0x40
and eax, 0xff
shl eax, 8
or eax, 1
mov word [ebp - 0x408], ax
lea ecx, [ebp - 0x408]
lea eax, [ebp - 0x308]
mov edx, 0xff
call fcn.00403bf0
lea ecx, [ebp - 0x308]
mov edx, esi
mov eax, dword [ebp - 0x410]
call fcn.004036e0
lea eax, [ebp - 0x208]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
jmp 0x4105ab
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov al, byte [ebp - 0x40c]
test al, al
jne 0x410553
lea eax, [ebp - 0x208]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea ecx, [ebp - 0x104]
lea eax, [ebp - 0x308]
mov edx, 0xff
call fcn.00403730
lea ecx, [ebp - 0x308]
mov ebx, esi
mov edx, ebx
mov eax, dword [ebp - 0x410]
call fcn.004036e0
mov al, byte [0x558ad0]
test al, al
jne 0x4105ab
lea edx, [ebp - 0x308]
mov eax, dword [ebp - 0x410]
call fcn.00404750
lea ecx, [ebp - 0x308]
mov edx, ebx
mov eax, dword [ebp - 0x410]
call fcn.004036e0
mov ebx, dword [ebp - 0x41c]
mov esi, dword [ebp - 0x418]
mov edi, dword [ebp - 0x414]
leave
ret