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

Disassembly:
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4092b5
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040a5be
add esp, 0x20c
ret
cmp word [esi], 0
mov ecx, dword [esp + 0x214]
je 0x4092cc
add esi, 2
dec ecx
cmp word [esi], 0
jne 0x4092c2
cmp word [esp + 4], 0
je 0x4092f7
lea edx, [esp + 4]
sub edx, esi
nop word [eax + eax]
cmp ecx, 1
jb 0x409314
mov ax, word [edx + esi]
dec ecx
mov word [esi], ax
add esi, 2
cmp word [edx + esi], 0
jne 0x4092e0
mov ecx, dword [esp + 0x20c]
xor eax, eax
mov word [esi], ax
mov al, 1
pop esi
xor ecx, esp
call fcn.0040a5be
add esp, 0x20c
ret
call fcn.0040d951
int3
Function at 0x409910
Capabilities:
Create directory

Disassembly:
mov eax, 0x200c
call fcn.0041d440
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2004], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [0x428480]
mov ebp, ecx
test edi, edi
jne 0x409977
push 0x1000
mov edx, str.HOME
lea ecx, [esp + 0x14]
call fcn.00409320
add esp, 4
test al, al
je 0x409a54
lea eax, [esp + 0x10]
push eax
call fcn.004116b9
mov edi, dword [0x428480]
add esp, 4
mov dword [edi*4 + 0x43d4b0], eax
inc edi
mov dword [0x428480], edi
xor esi, esi
test edi, edi
jle 0x4099c4
nop dword [eax]
mov eax, dword [esi*4 + 0x43d4b0]
mov ecx, ebp
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4099b6
test dx, dx
je 0x4099b2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4099b6
add ecx, 4
add eax, 4
test dx, dx
jne 0x409990
xor eax, eax
jmp 0x4099bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4099eb
inc esi
cmp esi, edi
jl 0x409980
mov ecx, ebp
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4099d0
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x4099ef
cmp word [ebp + 2], 0x3a
jne 0x4099ef
mov al, 1
jmp 0x409a3b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x409a10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409a39
mov bl, 1
cmp dword [0x428480], 0x400
jge 0x409a39
push ebp
call fcn.004116b9
mov ecx, dword [0x428480]
add esp, 4
mov dword [ecx*4 + 0x43d4b0], eax
inc ecx
mov dword [0x428480], ecx
mov al, bl
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a5be
add esp, 0x200c
ret
mov ecx, str.HOME
call fcn.00409810
int3

Function at 0x409b60
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
mov eax, dword [0x428484]
sub esp, 0x20
test eax, eax
je 0x409b96
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x409b8a
push 0
push dword [0x428484]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x428484]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x42848c], 0
je 0x409c6b
push ebx
push ebp
push esi
mov eax, 0x414
mov dword [esp + 0xc], 0
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x43acb0
mov dword [esp + 0x20], 0x423c90
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x423c90
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x43acb0
call ebp
cmp eax, 0xffffffff
je 0x409c67
test al, 0x10
je 0x409c67
push 0x64
call ebx
mov eax, 0x414
mov dword [esp + 0x10], 0
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x43acb0
mov dword [esp + 0x20], 0x423c90
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x423c90
call edi
inc esi
cmp esi, 0x14
jl 0x409c04
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x409cb0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0x1000
mov ebp, eax
xor eax, eax
push 0x43e4b0
push eax
mov word [0x428cb0], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409f5d
xor ebx, ebx
mov dword [ebp], 0x43e4b0
cmp dword [esp + 0x10], ebx
jle 0x409f52
nop dword [eax]
cmp ebx, 1
jl 0x409d39
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409d33
nop dword [eax]
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409d20
cmp ecx, 1
jb 0x409f5d
mov dword [eax], 0x20
mov edi, dword [ebp + ebx*4]
mov esi, str.__t_n_v_
mov ecx, 0x20
push ecx
push edi
call fcn.0040b24e
add esp, 8
test eax, eax
jne 0x409db9
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x409d47
mov edx, 0x8000
mov esi, dword [ebp + ebx*4]
mov ecx, 0x428cb0
cmp word [0x428cb0], ax
je 0x409d8a
nop word [eax + eax]
add ecx, 2
dec edx
cmp word [ecx], 0
jne 0x409d80
movzx eax, word [esi]
mov edi, eax
test ax, ax
je 0x409daf
cmp edx, 1
jb 0x409f5d
add esi, 2
mov word [ecx], ax
add ecx, 2
dec edx
movzx eax, word [esi]
test ax, ax
jne 0x409d94
xor eax, eax
mov word [ecx], ax
jmp 0x409f47
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409de3
nop dword [eax]
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409dd0
cmp ecx, 1
jb 0x409f5d
mov dword [eax], 0x22
mov edi, dword [ebp + ebx*4]
nop dword [eax]
movzx eax, word [edi]
xor edx, edx
mov ecx, eax
cmp eax, 0x5c
jne 0x409e0f
nop dword [eax]
movzx eax, word [edi + 2]
add edi, 2
inc edx
cmp eax, 0x5c
je 0x409e00
mov ecx, eax
xor esi, esi
test cx, cx
je 0x409ee4
cmp word [edi], 0x22
jne 0x409e64
lea edx, [edx*2 + 1]
test edx, edx
jle 0x409ea2
nop dword [eax + eax]
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409e57
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409e44
cmp ecx, 1
jb 0x409f5d
inc esi
mov dword [eax], 0x5c
cmp esi, edx
jl 0x409e30
jmp 0x409ea2
test edx, edx
jle 0x409ea2
nop dword [eax + eax]
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409e97
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409e84
cmp ecx, 1
jb 0x409f5d
inc esi
mov dword [eax], 0x5c
cmp esi, edx
jl 0x409e70
cmp word [0x428cb0], 0
mov ecx, 0x8000
movzx edx, word [edi]
mov eax, 0x428cb0
je 0x409ed3
nop dword [eax]
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409ec0
cmp ecx, 1
jb 0x409f5d
xor ecx, ecx
mov word [eax], dx
mov word [eax + 2], cx
add edi, 2
jmp 0x409df0
add edx, edx
test edx, edx
jle 0x409f1e
nop word [eax + eax]
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409f13
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409f04
cmp ecx, 1
jb 0x409f5d
inc esi
mov dword [eax], 0x5c
cmp esi, edx
jl 0x409ef0
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409f41
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409f32
cmp ecx, 1
jb 0x409f5d
mov dword [eax], 0x22
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x409d00
pop edi
pop esi
pop ebp
mov eax, 0x428cb0
pop ebx
pop ecx
ret
call fcn.0040d951
int3
Function at 0x40adbe
Capabilities:
Parse pe header

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

Function at 0x412cd3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41fafc
push 0x41faf4
push str.FlsAlloc
push 0x1f
call fcn.00412bb1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412d07
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e154]
call esi
jmp 0x412d0d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412d51
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41fb0c
push 0x41fb04
push str.FlsGetValue
push 0x21
call fcn.00412bb1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412d88
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x412d90
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41fb14
push 0x41fb0c
push str.FlsSetValue
push 0x22
call fcn.00412bb1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412dca
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41e154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x414c90
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
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 0x414cdb
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00414e2b
test al, al
jne 0x414cd5
sub edx, 2
cmp edx, edi
jne 0x414cbb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x414cfd
lea eax, [edi + 2]
cmp edx, eax
je 0x414cfd
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00414bdc
add esp, 0x10
jmp 0x414df7
push esi
lea ecx, [ebp - 0x255]
call fcn.00414e2b
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 0x414d40
push dword [ebp - 0x25c]
jmp 0x414ced
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 0x414d7d
cmp word [ebp - 0x226], 0
je 0x414d9e
cmp word [ebp - 0x226], ax
jne 0x414d7d
cmp word [ebp - 0x224], 0
je 0x414d9e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00414bdc
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x414dea
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x414d57
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x414dd2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x414df7
push 0x414a0c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00419d70
add esp, 0x10
jmp 0x414dc7
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.0040a5be
leave
ret

Function at 0x415871
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x415882
pop esi
ret
push ebx
push edi
push esi
call fcn.0041583a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004137a4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4158aa
push ebx
push esi
push edi
call fcn.0040c140
add esp, 0xc
push 0
call fcn.00412a5e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x415c7a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004158bf
Function at 0x41d030
Capabilities:
Parse pe header

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

Function at 0x50c5f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
jmp 0x50c60a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50c611
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50c600
mov eax, 1
add ebx, ebx
jne 0x50c623
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50c618
jne 0x50c634
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50c618
xor ecx, ecx
sub eax, 3
jb 0x50c648
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50c6ba
mov ebp, eax
add ebx, ebx
jne 0x50c653
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50c660
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50c684
inc ecx
add ebx, ebx
jne 0x50c670
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50c665
jne 0x50c681
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50c665
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50c6a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50c695
jmp 0x50c606
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50c6a4
add edi, ecx
jmp 0x50c606
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x50c703
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xeacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xeb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50c6c1
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xeb2c]
or eax, eax
je 0x50c6fd
mov dword [ebx], eax
add ebx, 4
jmp 0x50c6de
call dword [esi + 0xeb28]
mov ebp, dword [esi + 0xeb30]
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 0x50c737
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x1002a34
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
push 0xa
push dword [ebp + 8]
xor edi, edi
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, dword [ebp + 0x10]
ja 0x1002a9d
cmp dword [ebp + 0xc], edi
je 0x1002a9d
cmp ebx, edi
je 0x1002a7d
push 0xa
push dword [ebp + 8]
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
jne 0x1002a81
xor eax, eax
jmp 0x1002a9f
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x100370f
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x100371b
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1003716
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1003700
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1003708
cmp edx, ebx
jne 0x1003856
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x10036d7
add eax, dword [eax + 4]
jmp 0x10036c4
mov dword [ebp + 0xc], ebx
jmp 0x1003726
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x100373e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x100375c
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
Function at 0x10038cc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax - 0x3a]
test dword [eax + 0x56fffffc], edi
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.01003077
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0100302c
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.01003077
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0100302c
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.01003077
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0100302c
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.01003067
mul ebp
xor ebx, dword [esi]
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.01003077
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0100302c
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.01003067
fimul dword [esp + ecx*2 - 0x635a7fcf]
stc
invalid
Function at 0x4093a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4093d6
mov dword [0x447570], eax
mov edx, sym.get_globals_dtor_void_
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [0x43f040], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x43f040], eax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.___gxx_personality_sj0
mov dword [ebp - 0x24], 0x43e764
mov dword [ebp - 0x1c], 0x409580
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x43f040], 0
mov dword [ebp - 0x44], 0x447580
je 0x409560
jl 0x4095a0
mov dword [ebp - 0x3c], 1
mov eax, dword [0x447570]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x409643
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x447b60]
mov eax, 0xffffffff
test edx, edx
je 0x4095ba
mov eax, dword [0x43f044]
test eax, eax
je 0x4095fa
xor eax, eax
test eax, eax
jne 0x4095f0
mov edi, dword [0x43f040]
test edi, edi
js 0x4095f0
mov dword [ebp - 0x44], 0x447580
mov ebx, dword [0x43f040]
test ebx, ebx
je 0x409560
jmp 0x40950e
xor esi, esi
mov dword [0x43f040], esi
jmp 0x4095c8
mov dword [esp], 0x43f048
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x409681
mov eax, dword [0x43f044]
test eax, eax
jne 0x4095b8
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x43f044]
test eax, eax
je 0x40961d
jmp 0x4095b8
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x409675
mov dword [esp + 4], eax
mov eax, dword [0x447570]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x4096aa
test edx, edx
je 0x409695
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x43f044], eax
jmp 0x4095b8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x409556
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x409671
Function at 0x410af0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init

Function at 0x411460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sym._fread
test eax, eax
mov edx, eax
jle 0x4114b0
movzx eax, byte [esi + eax - 1]
mov dword [ebx + 0x24], eax
mov ebx, dword [ebp - 8]
mov eax, edx
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x24], 0xffffffff
mov eax, edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x447c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, fcn.00401000
call 0x447c40
lcall 0x5de5, 0x8b10c483
jmp loc.00efe824