joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468fec
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46901a
mov eax, ebx
call fcn.00469aa0
cmp dword [ebx + 0x40], 0
je 0x469013
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46908b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46907d
cmp dword [ebx + 8], 0
je 0x46903c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46904e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46907d
cmp dword [ebx + 8], 0
je 0x46902f
cmp eax, 3
je 0x469061
dec eax
jne 0x46902f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46902f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46902f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4690a9
cmp dword [ebx + 0x14], 0xcc
je 0x4690a9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004690b4
pop ebx
ret
Function at 0x4160e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, edx
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
xor esi, esi
lea edx, [eax + edx*2]
movzx ebx, byte [eax + 1]
cmp byte [eax], ch
lea eax, [eax + 2]
lea edi, [esi + ebx]
jne 0x416130
cmp esi, edi
ja 0x416198
cmp edi, dword [esp + 0x1c]
ja 0x4161a6
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x416132
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x416120
jmp 0x41618f
ja 0x416138
cmp eax, edx
mov esi, edi
jne 0x4160f3
mov edi, dword [esp + 0x24]
movzx ecx, cx
mov al, 1
add edi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x416170
mov ebp, esi
sub ecx, edx
jns 0x416187
jmp 0x416191
cmp esi, edi
je 0x4161b6
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x416191
xor al, 1
cmp ebp, edi
jne 0x416150
jmp 0x416191
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0xc3c624
call fcn.004497c0
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0xc3c624
call fcn.004495d0
mov ecx, 0xc3c614
call fcn.004498f0
Function at 0x41e420
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, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x43afa0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0xc4c9d8]
test al, al
je 0x41e5f1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41e46c
cmp eax, 3
jne 0x41e5ea
mov ebx, dword [0xc4c9dc]
test ebx, ebx
je 0x41e5ea
mov dword [ebp - 0x20], 0
jmp 0x41e497
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x41e4c8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41e63b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e490
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x41e490
test byte [ebp - 0x20], 1
je 0x41e5ea
mov ebx, dword [0xc4c9dc]
test ebx, ebx
je 0x41e5ea
mov dword [ebp - 0x20], 0
jmp 0x41e4f7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x41e528
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41e63b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e4f0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x41e4f0
test byte [ebp - 0x20], 1
je 0x41e5ea
mov ebx, dword [0xc4c9dc]
test ebx, ebx
je 0x41e5ea
mov dword [ebp - 0x20], 0
jmp 0x41e557
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x41e588
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41e63b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e550
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x41e550
test byte [ebp - 0x20], 1
je 0x41e5ea
mov ebx, dword [0xc4c9dc]
test ebx, ebx
je 0x41e5ea
mov dword [ebp - 0x20], 0
jmp 0x41e5b7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x41e5e4
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41e63b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e5b0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x41e5b0
test byte [ebp - 0x20], 1
jne 0x41e604
movzx eax, byte [0xc48300]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0xc4c9dc]
jmp 0x41e60f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x41e5ea
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41e63b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e60c
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x41e60c
mov ecx, 0xc42f40
mov dword [ebp - 0x10], 0
call fcn.004498f0
ud2
Function at 0x41f230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0xc4c04c]
test eax, eax
je 0x41f258
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x41f26e
cmp dword [eax + 4], 0
mov edi, eax
je 0x41f26e
add edi, 8
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xc4c04c
call fcn.0044a180
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x41f248
mov eax, dword [0xc4c04c]
test eax, eax
je 0x41f322
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x41f33c
mov esi, eax
test eax, eax
jne 0x41f2e9
movzx eax, byte [0xc4c948]
mov eax, dword [0xc4c9c8]
test eax, eax
jne 0x41f2b5
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x41f34f
mov dword [0xc4c9c8], eax
push 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41f34f
mov dword [eax], 0xc4c04c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0xc4c04c]
test eax, eax
je 0x41f343
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x41f253
test ecx, ecx
je 0x41f253
lock dec dword [ecx]
jne 0x41f253
call fcn.0041ef30
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xc4c04c
call fcn.0044a180
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x41f28c
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xc4c04c
call fcn.0044a180
jmp 0x41f2e1
mov ecx, 4
mov edx, 0xc
call fcn.00449440
int3

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

Disassembly:
push esi
mov eax, dword [0xc4c05c]
test eax, eax
je 0x41fc94
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x41fc13
cmp byte [eax + 4], 0
mov esi, eax
jne 0x41fc8d
mov eax, dword [0xc4c05c]
test eax, eax
je 0x41fcb3
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x41fccd
mov esi, eax
test eax, eax
jne 0x41fc87
movzx eax, byte [0xc4c948]
mov eax, dword [0xc4c9c8]
test eax, eax
jne 0x41fc5a
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x41fcdf
mov dword [0xc4c9c8], eax
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41fcdf
mov dword [eax], 0xc4c05c
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0xc4c05c]
test eax, eax
je 0x41fcd3
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
mov eax, esi
pop esi
ret
mov ecx, 0xc4c05c
call fcn.0044a180
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x41fc0b
jmp 0x41fc13
mov ecx, 0xc4c05c
call fcn.0044a180
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x41fc31
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0xc4c05c
call fcn.0044a180
jmp 0x41fc7f
mov ecx, 4
mov edx, 8
call fcn.00449440
int3
Function at 0x420410
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x40]
mov esi, ecx
mov ecx, dword [esp + 0x44]
mov edi, edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x420464
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0x103
je 0x420487
test eax, eax
js 0x420473
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov al, 4
jmp 0x42047f
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
add esp, 0x34
pop esi
pop edi
ret
mov eax, esp
mov dword [esp + 0x1c], 0xc42810
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
push ecx
push edx
call fcn.0041ea00
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.0041eb60
mov ecx, 7
int 0x29
ud2
Function at 0x420cc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0xc4c03c]
test eax, eax
je 0x420ce2
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x420cf8
cmp dword [eax + 4], 0
je 0x420cf8
add eax, 8
pop esi
ret
mov ecx, 0xc4c03c
call fcn.0044a180
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x420cd7
mov eax, dword [0xc4c03c]
test eax, eax
je 0x420d7e
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x420d98
mov esi, eax
test eax, eax
jne 0x420d67
movzx eax, byte [0xc4c948]
mov eax, dword [0xc4c9c8]
test eax, eax
jne 0x420d37
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x420da8
mov dword [0xc4c9c8], eax
push 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x420da8
mov dword [eax], 0xc4c03c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0xc4c03c]
test eax, eax
je 0x420d9c
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov byte [esi + 0xc], 0
pop esi
ret
mov ecx, 0xc4c03c
call fcn.0044a180
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x420d12
xor eax, eax
pop esi
ret
mov ecx, 0xc4c03c
call fcn.0044a180
jmp 0x420d5f
mov ecx, 4
mov edx, 0x10
call fcn.00449440
int3
Function at 0x428480
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x40]
mov esi, ecx
mov ecx, dword [esp + 0x44]
mov edi, edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x4284cd
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0xc0000011
jne 0x4284dd
mov dword [esi + 4], 0
jmp 0x4284ef
cmp eax, 0x103
je 0x42850b
test eax, eax
js 0x4284f8
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
add esp, 0x34
pop esi
pop edi
ret
mov eax, esp
mov dword [esp + 0x1c], 0xc42810
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
push ecx
push edx
call fcn.0041ea00
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.0041eb60
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push edi
push esi
mov eax, dword [0xc4c06c]
test eax, eax
je 0x42bd18
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x42bd2e
cmp dword [eax + 4], 0
mov edi, eax
je 0x42bd2e
add edi, 8
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xc4c06c
call fcn.0044a180
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x42bd08
mov eax, dword [0xc4c06c]
test eax, eax
je 0x42bde2
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x42bdfc
mov esi, eax
test eax, eax
jne 0x42bda9
movzx eax, byte [0xc4c948]
mov eax, dword [0xc4c9c8]
test eax, eax
jne 0x42bd75
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x42be0f
mov dword [0xc4c9c8], eax
push 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42be0f
mov dword [eax], 0xc4c06c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0xc4c06c]
test eax, eax
je 0x42be03
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x42bd13
test ecx, ecx
je 0x42bd13
lock dec dword [ecx]
jne 0x42bd13
call fcn.0042be20
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xc4c06c
call fcn.0044a180
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x42bd4c
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xc4c06c
call fcn.0044a180
jmp 0x42bda1
mov ecx, 4
mov edx, 0xc
call fcn.00449440
int3
Function at 0x4330a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [esp + 0xc]
push dword [esp + 0x38]
call fcn.004214a0
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp edx, 0x80000000
jne 0x4330de
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], 0x80000000
jmp 0x433100
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00432fd0
mov ebx, dword [esp]
cmp ebx, 0x80000000
jne 0x433115
mov ecx, esp
call fcn.00421690
mov dword [esi], 0x80000000
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 4]
mov ebp, dword [esp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x433133
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], ebp
jmp 0x43310d
test ebx, ebx
mov dword [esi], 0x80000000
je 0x43310d
push edi
push 0
push dword [0xc4c9c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x43310d
Function at 0x435000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x43b3c0
mov esi, edx
mov edi, ecx
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
movzx eax, byte [0xc4c948]
mov eax, dword [0xc4c9c8]
test eax, eax
jne 0x435053
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x43510e
mov dword [0xc4c9c8], eax
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x43510e
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
push 0
push 0x10000
push ebx
push 0x4351e0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x435095
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x4350fd
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x20], eax
push eax
mov dword [ebp - 0x24], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
cmp dword [eax + 4], 0
je 0x4350e2
cmp dword [eax + 8], 9
jae 0x4350cd
mov eax, dword [ebp - 0x20]
jmp 0x4350d3
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0xc4c9c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
push dword [0xc4c9c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 8
mov dword [ebp - 0x10], 0
call fcn.00449440
ud2
Function at 0x435650
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.0043b7a0
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x43b3f0
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea esi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push esi
call fcn.0043c6e0
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x42cd20
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x4357a4
mov ebx, dword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [ebp - 0x20], edi
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4356da
cmp dword [ebp - 0x2c], 0
jne 0x4357b5
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4357b5
cmp esi, 0x1000
ja 0x4357f1
xor edi, edi
nop dword [eax]
mov eax, esi
sub eax, edi
jb 0x4357d7
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + edi - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x42cd20
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x4357ac
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x435750
cmp dword [ebp - 0x2c], 0
jne 0x4357b2
add edi, dword [ebp - 0x28]
cmp edi, esi
jne 0x435710
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x42cd20
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x4356da
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4357b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, edi
mov edx, esi
push 0xc42abc
call fcn.004497c0
add esp, 4
jmp 0x43580c
mov dword [ebp - 0x10], 0
mov ecx, esi
mov edx, 0x1000
push 0xc42abc
call fcn.004495d0
add esp, 4
ud2
Function at 0x435900
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov esi, esp
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], esp
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x44], 0x43b410
lea eax, [esi + 0x40]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x40], 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 0x435964
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
lea ecx, [esi + 8]
mov dword [esi + 0x20], 0xc42be4
mov dword [esi + 0x24], 1
mov dword [esi + 0x30], 0
mov byte [esi], 0
mov dword [esi + 4], eax
mov dword [esi + 0x48], 0
mov dword [esi + 8], edx
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x20]
mov edx, 0xc42c14
mov dword [esi + 0xc], 0x4266b0
mov dword [esi + 0x2c], 1
call fcn.004494e0
ud2

Function at 0x437160
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x43722f
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx]
test edx, edx
jne 0x437189
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x4371fe
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x437219
mov ecx, dword [edi + 8]
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 + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4371c4
mov eax, dword [esp]
mov ecx, 2
test eax, eax
jne 0x4371e2
jmp 0x4371d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4371dd
cmp eax, 0x6d
jne 0x4371f3
mov word [esi], 4
jmp 0x4371ec
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 0x4371ec
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.004493b0
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x437194
mov ecx, ebx
push 1
call fcn.004493b0
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x437194
mov edx, esp
mov ecx, edi
mov dword [esp], 0
call fcn.0044a5c0
int3
Function at 0x43ad50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x43b530
mov ebx, ecx
mov esi, edx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test edi, edi
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x43adc7
js 0x43ae33
movzx eax, byte [0xc4c948]
mov eax, dword [0xc4c9c8]
test eax, eax
jne 0x43adad
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x43adbb
mov dword [0xc4c9c8], eax
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x43adcc
mov ecx, 1
mov edx, edi
call fcn.00449440
mov eax, 1
push edi
push esi
mov dword [ebp - 0x20], eax
push eax
call fcn.0043c160
add esp, 0xc
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x28]
jne 0x43adfd
lea ecx, [ebx + 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], ebx
call fcn.0043ae70
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
mov esi, dword [ebp - 0x20]
lea ecx, [edx + edx*4]
inc edx
mov dword [eax + ecx*4], 0
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edi
mov byte [eax + ecx*4 + 0x10], 0
mov dword [ebx + 0x30], edx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0040ffe0
nop dword [eax + eax]
push ebp
sub esp, 0xc
add ebp, 0xc
cmp dword [ebp + 8], 0
je 0x43ae5e
push dword [ebp - 0x20]
push 0
push dword [0xc4c9c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0xc
pop ebp
ret

Function at 0x43fd9f
Capabilities:
Parse pe header

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