joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405684
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.00401269
push eax
lea ecx, [ebp - 4]
call fcn.00401ae3
mov esi, dword [ebp - 4]
xor ecx, ecx
inc ecx
mov edx, 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x4056ba
push edx
lea ecx, [ebp - 4]
call fcn.00401bb3
mov esi, dword [ebp - 4]
push esi
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x4056f0
mov ecx, dword [ebp + 8]
push 0x429fb8
call fcn.00401849
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00402809
lea ecx, [esi - 0x10]
call fcn.00401251
mov eax, dword [ebp + 8]
jmp 0x405727
push str.GoogleUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4056cc
push edi
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.00401b60
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push 0xffffffffffffffff
mov dword [esi], eax
call fcn.00402809
mov ecx, edi
call fcn.00401251
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x4057d7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
cmp byte [ebx + 0x77], 0
je 0x4058a0
mov eax, dword [ebx + 0xcc]
push esi
push edi
test eax, eax
jne 0x405896
lea eax, [ebp - 4]
push eax
call fcn.0040572c
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x405837
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0040752e
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.00403a2d
test al, al
jne 0x405841
mov ecx, edi
call fcn.00404ecc
test eax, eax
jns 0x405841
lea ecx, [edi - 0x10]
call fcn.00401251
lea ecx, [esi - 0x10]
call fcn.00401251
jmp 0x40589e
mov al, byte [ebx + 0x79]
push 0x20
mov byte [ebp - 8], al
call fcn.0041c375
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.004061a9
mov dword [ebx + 0xcc], eax
test eax, eax
jne 0x40587c
push esi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.004077ed
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.00401251
lea ecx, [esi - 0x10]
call fcn.00401251
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x40589e
push eax
mov ecx, ebx
call fcn.00406049
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405dd6
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
test esi, esi
je 0x405e97
cmp dword [ebp + 8], 0
jne 0x405dfb
cmp dword [ebp + 0x10], 2
jg 0x405e97
call fcn.00401269
push eax
lea ecx, [ebp - 4]
call fcn.00401ae3
call fcn.00401269
push eax
lea ecx, [ebp + 0x14]
call fcn.00401ae3
xor edi, edi
lea eax, [ebx + 0x58]
inc edi
push 0
mov ecx, eax
call fcn.00404b8b
test al, al
jne 0x405e3d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x58]
cmp edi, 0x14
jle 0x405e1d
jmp 0x405e61
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
mov ecx, ebx
push esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405d02
lea ecx, [ebx + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x405e81
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x42bdd8
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401251
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00401251
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x4061a9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx], fcn.00406357
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.00401269
push eax
lea ecx, [ebx + 0xc]
call fcn.00401ae3
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.00401849
mov dword [ebx + 0x18], edi
call fcn.00401269
push eax
lea ecx, [ebx + 0x1c]
call fcn.00401ae3
movzx eax, byte [0x431eb9]
neg eax
sbb eax, eax
and eax, 0x431de0
mov dword [ebp + 8], eax
je 0x40627c
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.004060bc
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x406258
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x989680
push str.MaxLogFileSize
push str.LoggingSettings
call edi
mov dword [ebx + 4], eax
xor eax, eax
push esi
inc eax
push eax
push str.LogFileWide
push str.LoggingSettings
call edi
test eax, eax
setne al
jmp 0x406262
xor eax, eax
mov dword [ebx + 4], 0x989680
inc eax
mov byte [ebx + 0xb], al
lea ecx, [ebx + 0x1c]
mov eax, dword [ebp + 8]
add eax, 0x54
push eax
call fcn.004017fb
lea ecx, [esi - 0x10]
call fcn.00401251
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x4062d4
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x406355
mov byte [esi + 8], 1
call fcn.00406383
cmp dword [esi + 0x10], 0
je 0x406355
test al, al
je 0x4062f4
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.004069af
test al, al
jne 0x40631b
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.004077ed
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.00406448
cmp dword [esi + 0x18], 0
jne 0x406342
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.004077ed
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x406355
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret
Function at 0x406448
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
lea edx, [ebp - 0x8c]
push esi
xor eax, eax
mov dword [ebp - 0x94], ebx
push edi
lea esi, [ebx + 0x14]
mov dword [ebp - 0x98], eax
mov ecx, dword [esi]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x9c], esi
call fcn.00405028
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebx + 4]
jbe 0x40649c
mov ecx, ebx
call fcn.00406672
xor eax, eax
cmp byte [ebx + 0xa], al
setne al
xor ecx, ecx
push ecx
push 0x80
lea eax, [eax*2 + 2]
push eax
push ecx
push 3
push 0x40000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x18], eax
cmp eax, 0xffffffff
jne 0x4064d5
xor edi, edi
xor al, al
mov dword [ebx + 0x18], edi
jmp 0x40653d
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.0040752e
mov esi, dword [ebp - 0x8c]
lea edi, [ebp - 0x28]
push 9
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
xor edi, edi
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x40654c
call fcn.00407610
push dword [ebx + 0x14]
push dword [ebx + 0x1c]
push str.LOG_SYSTEM:___s_:_ERROR___Log_path__s_has_a_reparse_point
call fcn.004077ed
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], edi
lea ecx, [esi - 0x10]
call fcn.00401251
mov al, byte [ebp - 0x98]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a723
leave
ret
mov eax, dword [ebp - 0x28]
shr eax, 0xa
and al, 1
jne 0x406509
mov ecx, dword [ebx + 0x18]
call fcn.0040510d
test al, al
jne 0x406509
lea ecx, [ebp - 0xbc]
call fcn.004030bd
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x88]
push 0x42b3c4
push eax
call fcn.00402c1d
add esp, 0x10
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0xbc]
push 0xc0010000
push eax
call fcn.0040313a
lea ecx, [ebp - 0x88]
mov bl, al
call fcn.00402d06
test bl, bl
je 0x4065c9
push ecx
lea eax, [ebp - 0xbc]
push eax
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax]
call fcn.004039f4
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406602
mov eax, dword [ebp - 0x94]
cmp byte [eax + 0xb], 0
je 0x406602
xor ecx, ecx
push ecx
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0x94]
push ecx
push 2
push 0x42b118
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 0x98], 1
call fcn.00403103
jmp 0x40652f
Function at 0x406619
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x406649
xor al, al
jmp 0x40666d
cmp byte [esi + 0xb], bl
je 0x406664
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x42b118
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4066f1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x74], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406819
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x6c]
push 7
pop esi
push eax
push ebx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push eax
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x406819
cmp dword [ebp - 0x78], esi
jne 0x406819
push dword [ebp - 0x6c]
call fcn.0041c3a5
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.0040b2b0
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push esi
push ebx
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x40680a
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x40680a
cmp word [esi + edi*2 - 4], bx
jne 0x40680a
cmp word [esi + edi*2 - 2], bx
jne 0x40680a
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, str.___
push eax
call fcn.00406a1d
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x4067f9
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4067fc
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add ebx, eax
cmp ebx, dword [ebp - 0x7c]
jb 0x4067d8
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.00401251
test esi, esi
je 0x406815
push esi
call fcn.0040b13b
pop ecx
mov al, bl
jmp 0x40681b
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a723
leave
ret
Function at 0x4069af
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x4069bc
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4069f5
cmp eax, 0x80
je 0x4069f5
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.004077ed
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x4069b8
mov al, 1
pop esi
ret

Function at 0x406da3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x124]
push 0x118
push ebx
mov dword [ebp - 0x12c], ebx
push eax
mov dword [ebp - 0x128], 0x11c
call fcn.0040b2b0
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x406f02.2
mov edi, dword [ebp - 0x124]
xor esi, esi
inc esi
cmp edi, 6
je 0x406e93
cmp edi, 0xa
je 0x406e93
cmp edi, 5
jne case.0x406f02.2
cmp dword [ebp - 0x120], 2
jne 0x406e7d
cmp byte [ebp - 0xe], 1
jne 0x406e43
lea ecx, [ebp - 0x130]
call fcn.00406d1f
mov ecx, eax
mov dword [ebp - 0x12c], esi
call fcn.004017e6
test al, al
je 0x406e43
xor eax, eax
mov bl, 1
inc eax
jmp 0x406e49
mov eax, dword [ebp - 0x12c]
test al, 1
je 0x406e5b
mov ecx, dword [ebp - 0x130]
lea ecx, [ecx - 0x10]
call fcn.00401251
test bl, bl
jne case.0x406f02.1
test dword [ebp - 0x10], 0x8000
je case.0x406f02.7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a723
leave
ret
cmp dword [ebp - 0x120], esi
jne case.0x406f02.2
test dword [ebp - 0x10], 0x200
jne case.0x406f02.2
xor eax, eax
inc eax
jmp 0x406e6e
mov eax, dword [ebp - 0x120]
mov ecx, 0x42b378
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x130], eax
call fcn.00404019
mov esi, eax
test esi, esi
je case.0x406f02.2
push str.GetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406ed9
lea ecx, [ebp - 0x12c]
push ecx
push ebx
push ebx
push dword [ebp - 0x130]
push edi
call eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je case.0x406f02.2
mov eax, dword [ebp - 0x12c]
cmp eax, 0x1b
ja 0x406f11
je case.0x406f02.4
dec eax
cmp eax, 0x18
ja case.0x406f02.2
movzx eax, byte [eax + 0x406f73]
jmp dword [eax*4 + 0x406f63]
push 2
pop eax
jmp 0x406e6e
cmp eax, 0x54
ja 0x406f31
je case.0x406f02.4
sub eax, 0x30
je case.0x406f02.1
sub eax, 0x16
je case.0x406f02.4
dec eax
sub eax, 1
je case.0x406f02.4
jmp case.0x406f02.2
cmp eax, 0x79
jb case.0x406f02.2
cmp eax, 0x7a
jbe 0x406f5f
cmp eax, 0x7c
jbe case.0x406f02.2
cmp eax, 0x7e
jbe case.0x406f02.4
add eax, 0xffffff7f
cmp eax, 1
ja case.0x406f02.2
push 3
jmp 0x406f0b
push 4
jmp 0x406f0b
Function at 0x4078c8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x802
lea eax, [ebp - 0x808]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.0040b2b0
mov esi, dword [0x431ddc]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.00404d90
push edi
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push ebx
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.00401251
lea ecx, [ebp - 0x808]
call fcn.00407e00
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
sub eax, 3
je 0x40797c
sub eax, 1
jne 0x40796d
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.0040a723
leave
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x407e00
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x407e6f
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x407e4b
push ebx
push edi
push eax
call fcn.0040c6e0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x407e66
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x412589
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4125d4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004127aa
test al, al
jne 0x4125ce
sub edx, 2
cmp edx, edi
jne 0x4125b4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4125f6
lea eax, [edi + 2]
cmp edx, eax
je 0x4125f6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004124d5
add esp, 0x10
jmp 0x4126f0
push esi
lea ecx, [ebp - 0x255]
call fcn.004127aa
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412639
push dword [ebp - 0x25c]
jmp 0x4125e6
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x412676
cmp word [ebp - 0x226], 0
je 0x412697
cmp word [ebp - 0x226], ax
jne 0x412676
cmp word [ebp - 0x224], 0
je 0x412697
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004124d5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4126e3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x412650
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4126cb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4126f0
push 0x412305
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00416330
add esp, 0x10
jmp 0x4126c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a723
leave
ret

Function at 0x4134be
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421b84
push 0x421b7c
push str.FlsAlloc
push 0x1e
call fcn.004133fb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4134f2
push dword [ebp + 8]
mov ecx, esi
call dword [0x4202cc]
call esi
jmp 0x4134f8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41353c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421b94
push 0x421b8c
push str.FlsGetValue
push 0x20
call fcn.004133fb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413573
push dword [ebp + 8]
mov ecx, esi
call dword [0x4202cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
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
pop eax
nop
nop
nop
nop
nop
mov esi, 0x18343b3c
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..rdata
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x529100c6
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401590
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [esp + 0x80]
mov edi, dword [esp + 0x84]
mov eax, dword [ebx]
test eax, eax
je 0x401710
mov esi, dword [ebx + 4]
mov eax, dword [edi + 4]
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp], eax
call ebp
sub esp, 4
add esi, eax
mov dword [esp + 4], esi
mov dword [esp + 8], 0
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [edi + 8]
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x401753
mov edx, dword [ebx]
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], edx
mov dword [esp], eax
call ebp
sub esp, 4
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0xc], edx
call sub.msvcrt.dll_fread
test eax, eax
je 0x401740
cmp byte [edi + 0x10], 1
je 0x401651
mov eax, dword [ebx]
test eax, eax
je 0x401647
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [ebx], 0
add esp, 0x6c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004057d0
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4017ba
mov eax, dword [edi + 8]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x28], esi
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call ebp
sub esp, 4
lea ebp, [esp + 0x28]
mov dword [esp + 8], 0x38
mov dword [esp + 4], 0x40c087
mov dword [esp + 0x38], eax
mov dword [esp], ebp
call fcn.00405c90
test eax, eax
js 0x401766
mov dword [esp + 4], 4
mov dword [esp], ebp
call fcn.00405d30
test eax, eax
js 0x4017a0
mov dword [esp], ebp
call fcn.00407c00
mov dword [esp], esi
call sub.msvcrt.dll_free
mov esi, dword [esp + 0x1c]
jmp 0x401633
lea eax, [ebx + 0x68]
mov dword [esp + 4], 0x40c020
mov dword [esp], eax
call fcn.00402f00
test eax, eax
mov dword [ebx], eax
jne 0x4015af
mov dword [esp], str.Cannot_open_archive_file_n
xor esi, esi
call fcn.00401e30
jmp 0x401647
mov dword [esp], str.Could_not_read_from_file_n
xor esi, esi
call fcn.00401e30
jmp 0x401647
mov dword [esp], str.Could_not_allocate_read_buffer_n
xor esi, esi
call fcn.00401e30
jmp 0x401647
mov edx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], str.Error__d_from_inflateInit:__s_n
mov dword [esp + 8], edx
call fcn.00401e30
mov dword [esp], esi
add edi, 0x12
xor esi, esi
call sub.msvcrt.dll_free
mov dword [esp + 4], edi
mov dword [esp], str.Error_decompressing__s_n
call fcn.00401e30
jmp 0x401647
mov edx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], str.Error__d_from_inflate:__s_n
mov dword [esp + 8], edx
call fcn.00401e30
jmp 0x40177e
mov dword [esp], str.Error_allocating_decompression_buffer_n
call fcn.00401e30
jmp 0x40177e
Function at 0x4017d0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.00401590
mov dword [esp], ebx
mov edi, eax
call fcn.00404770
cmp eax, 0xffffffff
je 0x401859
lea ebp, [esi + 0x12]
add ebx, 0x2068
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.00404a00
mov ebx, eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohl]
sub esp, 4
test ebx, ebx
mov esi, eax
je 0x401878
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_fwrite
cmp eax, 1
je 0x401847
test esi, esi
jne 0x401861
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.msvcrt.dll_free
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebp
mov dword [esp], str.Failed_to_write_all_bytes_for__s_n
call fcn.00401e30
mov eax, 0xffffffff
jmp 0x401859
mov dword [esp + 4], ebp
mov dword [esp], str._s_could_not_be_extracted__n
call fcn.00401e30
mov eax, 0xffffffff
jmp 0x401859