joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f820
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov dword [esp], esi
call sym._strlen
mov ebx, eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x40]
lea ecx, [ebx + 0x30]
shr eax, 4
mov dword [ebp - 0x20], ecx
shl eax, 4
call fcn.0040ce70
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], ebx
lea edi, [esp + 0xc]
mov dword [esp + 4], esi
mov dword [esp], eax
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [ebx + 0x10]
add eax, edi
mov dword [eax], 0x61616161
mov dword [eax + 4], 0x61616161
mov dword [eax + 8], 0x61616161
mov dword [eax + 0xc], 0x61616161
mov dword [eax + 0x10], 0x61616161
mov dword [eax + 0x14], 0x61616161
mov dword [eax + 0x18], 0x61616161
mov dword [eax + 0x1c], 0x61616161
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [edi + ebx + 0xf], 0x2d
sub esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x41f914
int3
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
je 0x41f960
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call sym._get_ptr_from_atom_1
mov ebx, eax
mov edi, dword [ebp - 0x24]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
add ebx, edi
mov dword [esp], eax
call sym._malloc
mov edx, 0x20
mov esi, eax
lea esi, [esi]
bt esi, edx
jae 0x41f986
mov eax, edx
neg eax
mov byte [ebx + eax + 0x30], 0x41
sub edx, 1
jne 0x41f978
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
jne 0x41f99d
int3
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call sym._get_ptr_from_atom_1
mov ebx, eax
cmp esi, eax
je 0x41f9c3
mov dword [esp], esi
call sym._free
jmp 0x41f93a
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41f93a
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x41f93a
Function at 0xb7e860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x521000]
push edi
jmp 0xb7e87a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb7e881
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb7e870
mov eax, 1
add ebx, ebx
jne 0xb7e893
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb7e8a4
jne 0xb7e8c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb7e8c3
dec eax
add ebx, ebx
jne 0xb7e8b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xb7e888
add ebx, ebx
jne 0xb7e8bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb7e915
xor ecx, ecx
sub eax, 3
jb 0xb7e8db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb7e94a
sar eax, 1
mov ebp, eax
jmp 0xb7e8e6
add ebx, ebx
jne 0xb7e8e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb7e8b4
inc ecx
add ebx, ebx
jne 0xb7e8f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb7e8b4
add ebx, ebx
jne 0xb7e901
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb7e8f6
jne 0xb7e912
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb7e8f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb7e934
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb7e926
jmp 0xb7e876
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb7e934
add edi, ecx
jmp 0xb7e876
pop esi
mov edi, esi
mov ecx, 0x1aada
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb7e952
cmp byte [edi], 0x79
jne 0xb7e952
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 0xb7e957
lea edi, [esi + 0x760000]
mov eax, dword [edi]
or eax, eax
je 0xb7e9cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x788764]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7887b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb7e984
mov ecx, edi
jns 0xb7e9b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7887b8]
or eax, eax
je 0xb7e9c9
mov dword [ebx], eax
add ebx, 4
jmp 0xb7e9a1
call dword [esi + 0x7887c8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xb7ea00
cmp al, 0xef
ja 0xb7e9f3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xb7e9d5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xb7e9e2
mov ebp, dword [esi + 0x7887bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0xb7ea34
sub esp, 0xffffff80
jmp 0x67e157
Function at 0x4095d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41e510
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x2c], 0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 0
cmp esi, 0x201
jae 0x409660
jmp 0x40964e
jbe 0x4096f4
cmp esi, 0x201
jae 0x409660
lea ebx, [ebp - 0x448]
mov dword [ebp - 0x28], 0x200
mov edi, esi
jmp 0x40969b
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x40968c
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
mov edx, edi
push esi
call fcn.00439160
add esp, 4
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x4096bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x409757
cmp esi, edi
jne 0x409640
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x409776
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x40964e
jmp 0x409660
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x409793
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.0040bf40
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x409741
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00402a20
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi], 0
mov byte [esi + 0xc], 2
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x409731
jmp 0x409741
mov dword [ebp - 0x10], 0
push 0x43e0a4
push 0x28
push str.internal_error:_entered_unreachable_codeH
call fcn.00439dd0
add esp, 0xc
jmp 0x4097a2
push 0x43e0b4
push eax
push esi
call fcn.0043a110
add esp, 0xc
ud2
Function at 0x4105f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1048
call fcn.0042ac60
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41e710
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], edx
lea edi, [ebp - 0x1054]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], edx
push 0x1000
push 0
push edi
call fcn.0042d550
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x4162e0
push eax
push 0x1000
push edi
mov dword [ebp - 0x2c], esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x410753
mov ebx, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x28], 0
je 0x410680
cmp dword [ebp - 0x24], 0
jne 0x410759
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x54], 4
test edi, edi
mov dword [ebp - 0x50], edi
je 0x410759
cmp edi, 0x1000
ja 0x410795
xor esi, esi
nop dword [eax]
mov eax, edi
sub eax, esi
jb 0x41077d
xorps xmm0, xmm0
lea edx, [ebp - 0x28]
lea ecx, [ebp + esi - 0x1054]
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x4162e0
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x410753
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x28], 0
je 0x410700
cmp dword [ebp - 0x24], 0
jne 0x410759
add esi, dword [ebp - 0x20]
cmp esi, edi
jne 0x4106c0
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x4162e0
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1054]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x410680
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x30]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1048
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x43db78
push edi
push esi
call fcn.0043a130
add esp, 0xc
jmp 0x4107af
mov dword [ebp - 0x10], 0
push 0x43db78
push 0x1000
push edi
call fcn.0043a110
add esp, 0xc
ud2
Function at 0x412d00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41e810
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x449024]
test eax, eax
je 0x412d54
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x412d6d
cmp dword [eax], 0
mov ebx, eax
je 0x412d6d
add ebx, 4
jmp 0x412e30
push 0x449024
call fcn.00439600
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x412d45
mov eax, dword [0x449024]
test eax, eax
je 0x412e11
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x412e2e
mov edi, eax
test eax, eax
jne 0x412dd6
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0x449024
push 4
push 0xc
call fcn.00402a10
add esp, 8
test eax, eax
je 0x412e55
mov edi, eax
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [edi + 8], eax
movsd qword [edi], xmm0
mov eax, dword [0x449024]
test eax, eax
je 0x412e43
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x412deb
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x412ded
mov eax, dword [esi + 4]
jmp 0x412ded
xor eax, eax
mov ecx, dword [edi + 4]
cmp dword [edi], 0
lea ebx, [edi + 4]
mov dword [edi], 1
mov dword [edi + 4], eax
je 0x412e30
test ecx, ecx
je 0x412e30
lock dec dword [ecx]
jne 0x412e30
call fcn.00408090
jmp 0x412e30
push 0x449024
call fcn.00439600
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x412d8b
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x449024
call fcn.00439600
add esp, 4
jmp 0x412dce
mov dword [ebp - 0x10], 0
push 4
push 0xc
call fcn.00439c90
add esp, 8
ud2
Function at 0x412f70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x449034]
mov esi, ecx
test eax, eax
je 0x412f96
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x412faf
cmp byte [eax + 4], 0
je 0x412faf
add eax, 5
pop esi
pop edi
ret
push 0x449034
call fcn.00439600
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x412f8a
mov eax, dword [0x449034]
test eax, eax
je 0x41301b
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x413034
mov edi, eax
test eax, eax
jne 0x412ff9
push 4
push 8
call fcn.00402a10
add esp, 8
test eax, eax
je 0x413048
mov dword [eax], 0x449034
mov byte [eax + 4], 0
mov edi, eax
mov eax, dword [0x449034]
test eax, eax
je 0x413039
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test esi, esi
je 0x41300e
cmp byte [esi], 0
mov byte [esi], 0
movzx eax, byte [esi + 1]
cmove eax, ecx
mov ecx, eax
mov byte [edi + 4], 1
lea eax, [edi + 5]
mov byte [edi + 5], cl
pop esi
pop edi
ret
push 0x449034
call fcn.00439600
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x412fc5
xor eax, eax
pop esi
pop edi
ret
push 0x449034
call fcn.00439600
add esp, 4
jmp 0x412ff1
push 4
push 8
call fcn.00439c90
add esp, 8
ud2

Function at 0x413bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov edi, edx
xor edx, edx
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [esp], 0x103
mov dword [esp + 4], 0
mov ebx, esp
test ecx, ecx
setne dl
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
cmove edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x413c38
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
cmp eax, 0xc0000011
jne 0x413c48
mov dword [esi + 4], 0
jmp 0x413c5a
cmp eax, 0x103
je 0x413c77
test eax, eax
js 0x413c65
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x413c5d
lea eax, [esp + 0x10]
mov dword [esp + 0x44], 0x43c334
mov dword [esp + 0x48], 2
mov dword [esp + 0x3c], 0
lea esi, [esp + 0x34]
mov dword [esp + 8], 0
mov dword [esp + 0x18], 0x43d8e0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0x43ba78
mov byte [esp + 0xc], 0
mov dword [esp + 0x24], 0
lea ecx, [esp + 8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], 0x426f10
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x50], 1
push eax
push ecx
push esi
call fcn.0040b970
add esp, 0xc
cmp byte [esp + 0x34], 4
je 0x413d0b
push esi
call fcn.00403fe0
add esp, 4
mov ecx, 7
int 0x29
ud2
Function at 0x413d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov edi, edx
xor edx, edx
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [esp], 0x103
mov dword [esp + 4], 0
mov ebx, esp
test ecx, ecx
setne dl
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
cmove edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x413d9f
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
cmp eax, 0x103
je 0x413dc7
test eax, eax
js 0x413daf
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x413dbf
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov dword [esi], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x44], 0x43c334
mov dword [esp + 0x48], 2
mov dword [esp + 0x3c], 0
lea esi, [esp + 0x34]
mov dword [esp + 8], 0
mov dword [esp + 0x18], 0x43d8e0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0x43ba78
mov byte [esp + 0xc], 0
mov dword [esp + 0x24], 0
lea ecx, [esp + 8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], 0x426f10
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x50], 1
push eax
push ecx
push esi
call fcn.0040b970
add esp, 0xc
cmp byte [esp + 0x34], 4
je 0x413e5b
push esi
call fcn.00403fe0
add esp, 4
mov ecx, 7
int 0x29
ud2
Function at 0x416770
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x41683f
mov ebx, dword [edi + 0x14]
mov esi, ecx
mov edx, dword [ebx]
test edx, edx
jne 0x416799
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x41680e
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x416829
mov ecx, dword [edi + 0x10]
sub edx, eax
add eax, dword [ebx + 4]
mov dword [esp], 0
mov ebx, esp
push ecx
push ebx
push edx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4167d4
mov eax, dword [esp]
mov ecx, 2
test eax, eax
jne 0x4167f2
jmp 0x4167e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4167ed
cmp eax, 0x6d
jne 0x416803
mov word [esi], 4
jmp 0x4167fc
mov ecx, 1
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
add esp, 0x18
pop esi
pop edi
pop ebx
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x4167fc
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.00439200
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x4167a4
mov ecx, ebx
push 1
call fcn.00439200
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x4167a4
mov edx, esp
mov ecx, edi
mov dword [esp + 8], 0
call fcn.004390a0
ud2
Function at 0x41a910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41e8f0
mov eax, dword [ebp + 8]
mov ebx, ecx
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
lea ecx, [ebp - 0x34]
push eax
call fcn.00413540
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x41a9a3
cmp byte [ebp - 0x30], 3
jne 0x41a9cc
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ebx
mov eax, dword [ecx]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x10], 0
push eax
call dword [ecx]
add esp, 4
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41a991
push dword [eax + 8]
push ecx
push dword [esi]
call fcn.00402a20
add esp, 0xc
push 4
push 0xc
push esi
call fcn.00402a20
add esp, 0xc
mov ebx, dword [ebp - 0x24]
jmp 0x41a9cc
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x41a9cc
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a9e4
mov eax, dword [ebp - 0x20]
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov dword [ebx + 8], eax
jmp 0x41a9d3
mov dword [ebx + 4], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
test edi, edi
mov dword [ebx + 4], 0
je 0x41a9d3
add edi, edi
push 2
push edi
push esi
call fcn.00402a20
add esp, 0xc
jmp 0x41a9d3

Function at 0x41b370
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x41e910
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x41b3ee
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
mov dword [esi + 0x38], 0x43dca4
mov dword [esi + 0x3c], 1
mov dword [esi + 8], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x2c], 0x40a020
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 1
lea eax, [esi + 0x30]
push 0x43dcd0
push eax
call fcn.00439d10
add esp, 8
ud2
Function at 0x41bb80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41e930
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
push 4
push 8
call fcn.00402a10
add esp, 8
test eax, eax
je 0x41bc62
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax], edi
mov dword [eax + 4], esi
push 0
push 0x10000
mov dword [ebp - 0x20], eax
push eax
push 0x41bcd0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41bbfd
mov dword [ebx + 4], eax
mov byte [ebx], 4
jmp 0x41bc4f
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], 1
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push eax
call dword [ecx]
add esp, 4
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41bc33
push dword [eax + 8]
push ecx
push dword [edx]
call fcn.00402a20
mov edx, dword [ebp - 0x20]
add esp, 0xc
push 4
push 8
push edx
call fcn.00402a20
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
mov dword [ebx], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 4
push 8
call fcn.00439c90
add esp, 8
ud2