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

Disassembly:
push 0x2c
mov eax, 0x298419c9
call fcn.29802291
mov edi, ecx
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
cmp ebx, esi
jne 0x29805ef6
xor eax, eax
jmp 0x29806008
call dword [sym.imp.MSVCP120.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
test eax, eax
je 0x29805f28
mov eax, dword [edi + 0x30]
mov ecx, edi
mov edx, dword [edi + 0x20]
mov esi, dword [eax]
add esi, dword [edx]
call dword [sym.imp.MSVCP120.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp eax, esi
jae 0x29805f25
mov ecx, edi
call dword [sym.imp.MSVCP120.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
jmp 0x29806006
or esi, 0xffffffff
cmp dword [edi + 0x50], 0
jne 0x29805f35
mov eax, esi
jmp 0x29806008
mov ecx, edi
call fcn.298054c7
xor eax, eax
cmp dword [edi + 0x40], eax
jne 0x29805f55
push dword [edi + 0x50]
push ebx
call fcn.298157b2
test al, al
pop ecx
pop ecx
cmovne esi, ebx
jmp 0x29805f2e
push eax
push 8
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.298157b2
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::out_int___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x29805ff5
cmp eax, 1
jg 0x2980603d
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov ebx, dword [ebp - 0x34]
cmovae eax, edx
sub ebx, eax
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp + 8]
je 0x29806010
push dword [edi + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x30]
cmovae eax, edx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
mov ecx, dword [ebp - 0x30]
add esp, 0x10
cmp ecx, eax
je 0x29806013
mov ebx, esi
push 0
push 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.298157b2
mov eax, ebx
call fcn.29802ba0
ret 4
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov byte [edi + 0x45], 1
cmp dword [ebp - 0x38], eax
jne 0x29805ff7
test ecx, ecx
jne 0x29805f74
cmp dword [ebp - 0x18], 0x20
jae 0x29805ff5
push ecx
push 8
lea ecx, [ebp - 0x28]
call fcn.298157b2
jmp 0x29805f74
cmp eax, 3
jne 0x29805ff5
push dword [edi + 0x50]
push dword [ebp - 0x2c]
call fcn.298157b2
pop ecx
pop ecx
test al, al
mov ecx, esi
cmovne ecx, ebx
mov ebx, ecx
jmp 0x29805ff7
Function at 0x29820bb2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x29843a83
call fcn.29840da1
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x29820d90
push edi
call dword [sym.imp.MSVCR120.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.298157b2
add esp, 0x10
test eax, eax
js 0x29820d8a
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x29820c4e
push esi
call fcn.29821d9a
pop ecx
test al, al
je 0x29820c4e
mov eax, esi
call fcn.29841250
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x29820c5a
push esi
lea ecx, [ebp - 0x428]
call fcn.298157b2
push 3
push esi
push edi
push eax
call fcn.298157b2
mov esi, eax
test esi, esi
je 0x29820d8a
push 0x60
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], edi
test edi, edi
jne 0x29820ca6
push 2
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], eax
test edi, edi
jne 0x29820ca6
call fcn.2981e72e
mov esi, eax
jmp 0x29820d6f
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x29820cc9
call fcn.2981e72e
jmp 0x29820d62
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x29820cbf
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x29820cf9
mov esi, 0x8007000e
jmp 0x29820d64
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.298157b2
jmp 0x29820d1f
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x29820cf2
push esi
push dword [ebp - 0x420]
push esi
push dword [ebp - 0x418]
call fcn.298157b2
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
add esp, 0x10
mov byte [eax + esi], bl
push dword [ebp + 0x14]
push dword [ebp - 0x418]
call fcn.298157b2
mov esi, eax
test edi, edi
je 0x29820d6f
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x29820daa
lea ecx, [ebp - 0x418]
call fcn.2981f38a
jmp 0x29820daa
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x29820da5
lea ecx, [ebp - 0x418]
call fcn.2981f38a
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.2981d929
mov eax, esi
lea esp, [ebp - 0x440]
call fcn.29840d5c
ret 0x10
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x427b60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x21000]
push edi
or ebp, 0xffffffff
jmp 0x427b82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x427b89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x427b78
mov eax, 1
add ebx, ebx
jne 0x427b9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x427b90
jne 0x427bac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427b90
xor ecx, ecx
sub eax, 3
jb 0x427bc0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x427c32
mov ebp, eax
add ebx, ebx
jne 0x427bcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x427bd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x427bfc
inc ecx
add ebx, ebx
jne 0x427be8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x427bdd
jne 0x427bf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427bdd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x427c1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x427c0d
jmp 0x427b7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x427c1c
add edi, ecx
jmp 0x427b7e
pop esi
mov edi, esi
mov ecx, 0x43b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x427c3a
cmp byte [edi], 0
jne 0x427c3a
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 0x427c3f
lea edi, [esi + 0x25000]
Function at 0x409140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov ebx, eax
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
mov edx, dword [ebx + 0x134]
sub edi, eax
test edx, edx
mov ecx, edx
jne 0x409167
mov ecx, 0x20000
cmp edi, ecx
ja 0x409193
lea edx, [ebp - 8]
push 0
push edx
push edi
push eax
push dword [ebx + 0xdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x409208
mov ecx, 1
jmp 0x409208
mov dword [ebp - 0x18], edi
mov ecx, edi
mov dword [ebp - 0x14], esi
test edx, edx
jne 0x4091a4
mov edx, 0x20000
mov edi, eax
mov esi, ecx
mov dword [ebp - 4], edx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4091d2
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov ecx, 0xffffffff
jmp 0x409208
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x134]
add edi, eax
sub esi, eax
test edx, edx
jne 0x4091e8
mov edx, 0x20000
cmp esi, edx
jae 0x4091f5
mov dword [ebp - 4], esi
test esi, esi
jne 0x4091f9
jmp 0x4091fd
test esi, esi
je 0x4091fd
test eax, eax
ja 0x4091ab
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov ecx, 1
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf0]
and byte [ebx + 0x165], 0xfb
mov dword [ebx + 0x40], edx
add edx, eax
mov dword [ebx + 0x44], edx
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
adc edx, dword [ebx + 0xc4]
mov dword [ebx + 0xc0], edi
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xc4], edx
mov dword [ebx + 0xbc], edx
cmp ecx, 0xffffffff
je 0x409268
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x10]
mov dword [ebx + 0xe0], eax
mov ebx, dword [ebp - 0xc]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
Function at 0x40e7d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov ebx, eax
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
mov edx, dword [ebx + 0x134]
sub edi, eax
test edx, edx
mov ecx, edx
jne 0x40e7f7
mov ecx, 0x20000
cmp edi, ecx
ja 0x40e823
lea edx, [ebp - 8]
push 0
push edx
push edi
push eax
push dword [ebx + 0xdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x40e898
mov ecx, 1
jmp 0x40e898
mov dword [ebp - 0x18], edi
mov ecx, edi
mov dword [ebp - 0x14], esi
test edx, edx
jne 0x40e834
mov edx, 0x20000
mov edi, eax
mov esi, ecx
mov dword [ebp - 4], edx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40e862
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov ecx, 0xffffffff
jmp 0x40e898
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x134]
add edi, eax
sub esi, eax
test edx, edx
jne 0x40e878
mov edx, 0x20000
cmp esi, edx
jae 0x40e885
mov dword [ebp - 4], esi
test esi, esi
jne 0x40e889
jmp 0x40e88d
test esi, esi
je 0x40e88d
test eax, eax
ja 0x40e83b
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov ecx, 1
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf0]
and byte [ebx + 0x165], 0xfb
mov dword [ebx + 0x40], edx
add edx, eax
mov dword [ebx + 0x44], edx
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
adc edx, dword [ebx + 0xc4]
mov dword [ebx + 0xc0], edi
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xc4], edx
mov dword [ebx + 0xbc], edx
cmp ecx, 0xffffffff
je 0x40e8f8
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x10]
mov dword [ebx + 0xe0], eax
mov ebx, dword [ebp - 0xc]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
Function at 0x410970
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
mov ebx, 1
mov dword [ebp - 0xc], 0
push 1
push 0x4e3af0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4109fc
mov eax, 0x51eb851f
imul ebx
mov ecx, ebx
sar ecx, 0x1f
sar edx, 5
sub edx, ecx
imul esi, edx, 0x64
mov eax, ebx
sub eax, esi
jne 0x4109fc
cmp ebx, 0x15f90
jge 0x4109c5
xor eax, eax
jmp 0x4109f5
cmp ebx, 0x1d4c0
jge 0x4109d4
mov eax, 0x32
jmp 0x4109f5
cmp ebx, 0x2bf20
jge 0x4109e3
mov eax, 0x64
jmp 0x4109f5
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x4109f5
mov eax, 0xfa
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x410a10
inc ebx
cmp ebx, 0x57e40
jl 0x410988
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x410a28
mov dword [ebp - 0x10], 0x98
lea eax, [ebp - 0x10]
push eax
call fcn.00429360
pop ecx
mov eax, dword [0x4e3af4]
test eax, eax
jne 0x410a5e
cmp dword [0x4e1720], 1
je 0x410ae2
xor ebx, ebx
xor esi, esi
cmp dword [0x4e3aec], 0
je 0x410aa2
cmp dword [0x4e1720], 1
mov dword [0x4e3af4], 1
je 0x410a8d
push dword [0x4e3ae8]
mov dword [0x4e3af0], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x410b00
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.00455fc0
push ebx
push 0x16
call fcn.00455fc0
add esp, 0x10
jmp 0x410a5e
mov dword [0x4e3aec], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4e3ae8], eax
cmp eax, 0xffffffff
jne 0x410ac6
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x410a4b
push 0x410900
call fcn.004569e0
push 0x4108d0
call fcn.004569e0
add esp, 8
jmp 0x410a4b
push 1
push 2
call fcn.00455fc0
mov esi, eax
push 1
push 0x16
call fcn.00455fc0
add esp, 0x10
mov ebx, eax
jmp 0x410a42
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x70
call fcn.00419250
add esp, 0xc
test eax, eax
je 0x410b2a
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov edx, 0x70
mov ecx, dword [edx + 0x4e167c]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4e1678]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4e1674]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4e1670]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x410b32
push dword [ebp - 0xc]
push dword [0x4e3ae8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0xc]
jmp 0x410a7c
Function at 0x410b80
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
mov ebx, 1
mov dword [ebp - 0xc], 0
push 1
push 0x4e3af0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x410c0c
mov eax, 0x51eb851f
imul ebx
mov ecx, ebx
sar ecx, 0x1f
sar edx, 5
sub edx, ecx
imul esi, edx, 0x64
mov eax, ebx
sub eax, esi
jne 0x410c0c
cmp ebx, 0x15f90
jge 0x410bd5
xor eax, eax
jmp 0x410c05
cmp ebx, 0x1d4c0
jge 0x410be4
mov eax, 0x32
jmp 0x410c05
cmp ebx, 0x2bf20
jge 0x410bf3
mov eax, 0x64
jmp 0x410c05
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x410c05
mov eax, 0xfa
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x410c20
inc ebx
cmp ebx, 0x57e40
jl 0x410b98
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x410c38
mov dword [ebp - 0x10], 0x98
lea eax, [ebp - 0x10]
push eax
call fcn.00429360
pop ecx
mov eax, dword [0x4e3af4]
test eax, eax
jne 0x410c6e
cmp dword [0x4e1720], 1
je 0x410d07
xor ebx, ebx
xor esi, esi
cmp dword [0x4e3aec], 0
je 0x410cc4
cmp dword [0x4e1720], 1
mov dword [0x4e3af4], 1
je 0x410caf
push dword [0x4e3ae8]
mov dword [0x4e3af0], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x410d45
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp dword [0x4e1720], 1
je 0x410d25
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.00455fc0
push ebx
push 0x16
call fcn.00455fc0
add esp, 0x10
jmp 0x410c6e
mov dword [0x4e3aec], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4e3ae8], eax
cmp eax, 0xffffffff
jne 0x410ceb
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x410c5b
push 0x410900
call fcn.004569e0
push 0x4108d0
call fcn.004569e0
add esp, 8
jmp 0x410c5b
push 1
push 2
call fcn.00455fc0
mov esi, eax
push 1
push 0x16
call fcn.00455fc0
add esp, 0x10
mov ebx, eax
jmp 0x410c52
push 1
push 2
call fcn.00455fc0
push 1
push 0x16
mov dword [ebx + 0x64], eax
call fcn.00455fc0
add esp, 0x10
mov dword [ebx + 0x68], eax
jmp 0x410ca3
lea eax, [ebp - 0xc]
push eax
push 0
push 0x70
call fcn.00419250
add esp, 0xc
test eax, eax
je 0x410d6c
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov edx, 0x70
mov ecx, dword [edx + 0x4e167c]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4e1678]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4e1674]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4e1670]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x410d74
push dword [ebp - 0xc]
push dword [0x4e3ae8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp - 0xc]
jmp 0x410c91
Function at 0x417290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov ebx, eax
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
mov edx, dword [ebx + 0x134]
sub edi, eax
test edx, edx
mov ecx, edx
jne 0x4172b7
mov ecx, 0x20000
cmp edi, ecx
ja 0x4172e3
lea edx, [ebp - 8]
push 0
push edx
push edi
push eax
push dword [ebx + 0xdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x417358
mov ecx, 1
jmp 0x417358
mov dword [ebp - 0x18], edi
mov ecx, edi
mov dword [ebp - 0x14], esi
test edx, edx
jne 0x4172f4
mov edx, 0x20000
mov edi, eax
mov esi, ecx
mov dword [ebp - 4], edx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x417322
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov ecx, 0xffffffff
jmp 0x417358
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x134]
add edi, eax
sub esi, eax
test edx, edx
jne 0x417338
mov edx, 0x20000
cmp esi, edx
jae 0x417345
mov dword [ebp - 4], esi
test esi, esi
jne 0x417349
jmp 0x41734d
test esi, esi
je 0x41734d
test eax, eax
ja 0x4172fb
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov ecx, 1
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf0]
and byte [ebx + 0x165], 0xfb
mov dword [ebx + 0x40], edx
add edx, eax
mov dword [ebx + 0x44], edx
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
adc edx, dword [ebx + 0xc4]
mov dword [ebx + 0xc0], edi
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xc4], edx
mov dword [ebx + 0xbc], edx
cmp ecx, 0xffffffff
je 0x4173b8
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x10]
mov dword [ebx + 0xe0], eax
mov ebx, dword [ebp - 0xc]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
Function at 0x41aba0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x41ca70
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x429190
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x429272
mov eax, dword [0x4e1720]
mov ebx, dword [esi + 0x14]
lea edx, [ebx*4]
shl ebx, 5
sub ebx, edx
cmp eax, 2
lea edx, [ebx + 0x4e9308]
jge 0x4291e3
mov edx, dword [edx]
test edx, edx
jne 0x42922d
mov eax, dword [0x4e1720]
mov dword [ebx + 0x4e9308], 1
jmp 0x42922d
push edx
mov dword [ebp - 0x10], edx
call fcn.00410e10
mov edx, dword [ebp - 0x10]
add esp, 4
test eax, eax
jne 0x429228
cmp dword [ebx + 0x4e9304], 0
je 0x429336
mov dword [ebx + 0x4e9308], 0
push 0xffffffffffffffff
push dword [ebx + 0x4e9304]
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x10]
push edx
call fcn.00410e10
pop ecx
mov eax, dword [0x4e1720]
cmp eax, 1
je 0x429324
mov eax, dword [esi + 0x18]
dec eax
mov dword [esi + 0x18], eax
test eax, eax
jle 0x42929c
mov eax, dword [0x4e1720]
cmp eax, 1
je 0x429281
cmp eax, 2
jge 0x42925c
mov dword [ebx + 0x4e9308], 0
jmp 0x429272
push dword [ebx + 0x4e9304]
mov dword [ebx + 0x4e9308], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
push dword [ebx + 0x4e9318]
push dword [ebx + 0x4e9314]
call fcn.00410df0
add esp, 8
mov eax, dword [0x4e1720]
jmp 0x42924b
mov edx, dword [esi]
test edx, edx
je 0x4292aa
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
test eax, eax
je 0x4292b5
mov dword [eax], edx
jmp 0x4292bb
mov dword [ebx + 0x4e9300], edx
mov eax, dword [0x4e1720]
mov dword [edi + 0x7c], 0
cmp eax, 1
je 0x429309
cmp eax, 2
jge 0x4292dd
mov dword [ebx + 0x4e9308], 0
jmp 0x4292f3
push dword [ebx + 0x4e9304]
mov dword [ebx + 0x4e9308], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 8]
call fcn.00419310
push esi
call fcn.00419310
add esp, 8
jmp 0x429272
push dword [ebx + 0x4e9318]
push dword [ebx + 0x4e9314]
call fcn.00410df0
add esp, 8
mov eax, dword [0x4e1720]
jmp 0x4292cc
lea eax, [ebx + 0x4e9314]
push eax
call fcn.00410dc0
pop ecx
jmp 0x429236
mov dword [ebp - 0x10], edx
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x10]
mov dword [ebx + 0x4e9308], 0
mov dword [ebx + 0x4e9304], eax
jmp 0x42920d