joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401072
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a8004]
jne 0x40107c
repz ret
jmp fcn.0040145f

Function at 0x407267
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004019f1
and dword [ebp - 4], 0
cmp dword [0x4b0df0], 0
mov ebx, eax
jne 0x407318
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4073c9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4073c9
push eax
call fcn.0040197f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4b0df0], eax
call esi
push eax
call fcn.0040197f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4b0df4], eax
call esi
push eax
call fcn.0040197f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b0df8], eax
call esi
push eax
call fcn.0040197f
pop ecx
mov dword [0x4b0e00], eax
test eax, eax
je 0x407318
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040197f
pop ecx
mov dword [0x4b0dfc], eax
mov eax, dword [0x4b0dfc]
cmp eax, ebx
je 0x407370
cmp dword [0x4b0e00], ebx
je 0x407370
push eax
call fcn.004019fa
push dword [0x4b0e00]
mov esi, eax
call fcn.004019fa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407370
test edi, edi
je 0x407370
call esi
test eax, eax
je 0x407367
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407367
test byte [ebp - 0xc], 1
jne 0x407370
or dword [ebp + 0x10], 0x200000
jmp 0x4073a9
mov eax, dword [0x4b0df4]
cmp eax, ebx
je 0x4073a9
push eax
call fcn.004019fa
pop ecx
test eax, eax
je 0x4073a9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4073a9
mov eax, dword [0x4b0df8]
cmp eax, ebx
je 0x4073a9
push eax
call fcn.004019fa
pop ecx
test eax, eax
je 0x4073a9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b0df0]
call fcn.004019fa
pop ecx
test eax, eax
je 0x4073c9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4073cb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a4847
Capabilities:
Check for software breakpoints
Get geographical location
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10c4
call fcn.004105f0
mov eax, dword [0x4a8004]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
jmp 0x4a486b
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x365ea9e0
jge 0x4a48b6
cmp dword [0x4b129c], 0xc31
jne 0x4a4886
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
cmp dword [ebp - 4], 0x176afc
jle 0x4a48b4
cmp dword [0x4b129c], 0xa
jne 0x4a48b2
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x4a48b6
jmp 0x4a4864
and dword [ebp - 0x64], 0
jmp 0x4a48c3
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x5f6c74
jge 0x4a48e1
cmp dword [ebp - 0x64], 0x562d05
jne 0x4a48df
mov eax, dword [0x4a8c58]
mov dword [0x4b12fc], eax
jmp 0x4a48bc
cmp dword [0x4b129c], 0x7c
jne 0x4a490d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
cmp dword [0x4b129c], 0x2d
jne 0x4a490d
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [0x4b129c], 0x110a
jne 0x4a49d8
and dword [0x4b1288], 0
and dword [0x4b128c], 0
cmp dword [0x4b129c], 0xcc
jne 0x4a4949
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x4b0f58], 0x14
push 0
lea eax, [ebp - 0x880]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push 0
call fcn.004010e9
pop ecx
pop ecx
push 0
push 0
call fcn.004010e9
pop ecx
pop ecx
mov eax, dword [0x4a6c10]
mov dword [ebp - 0x1088], eax
push 0x7fc
push 0
lea eax, [ebp - 0x1084]
push eax
call fcn.00403500
add esp, 0xc
lea eax, [ebp - 0x888]
mov dword [ebp - 0x884], eax
push 0
push 0
call fcn.004010e9
pop ecx
pop ecx
push 0
call fcn.00401250
pop ecx
push 0
call fcn.00401081
pop ecx
call fcn.004a3ee1
and dword [ebp - 0x1090], 0
jmp 0x4a49f3
mov eax, dword [ebp - 0x1090]
inc eax
mov dword [ebp - 0x1090], eax
mov eax, dword [ebp - 0x1090]
cmp eax, dword [0x4b129c]
jae 0x4a4a4a
mov eax, dword [0x4b12fc]
mov dword [ebp - 0x1094], eax
mov eax, 0xa231
add dword [ebp - 0x1094], eax
mov eax, dword [0x4b11e4]
add eax, dword [ebp - 0x1090]
mov ecx, dword [ebp - 0x1094]
add ecx, dword [ebp - 0x1090]
mov cl, byte [ecx]
mov byte [eax], cl
cmp dword [0x4b129c], 0x5ab
jne 0x4a4a48
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualLock]
jmp 0x4a49e6
call fcn.004a4699
call fcn.004a3ef6
mov eax, 0x4a8c60
call fcn.004a4817
and dword [ebp - 0x1098], 0
jmp 0x4a4a74
mov eax, dword [ebp - 0x1098]
inc eax
mov dword [ebp - 0x1098], eax
cmp dword [ebp - 0x1098], 0x15a63d
jge 0x4a4a9d
cmp dword [ebp - 0x1098], 0xbd9cb
jne 0x4a4a9b
mov eax, dword [0x4b11e4]
add eax, 0
mov dword [0x4b11e4], eax
jmp 0x4a4a67
jmp dword [0x4b11e4]
Function at 0x416160
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 0x4161b0
cmp esi, edi
ja 0x416218
cmp edi, dword [esp + 0x1c]
ja 0x416226
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x4161b2
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x4161a0
jmp 0x41620f
ja 0x4161b8
cmp eax, edx
mov esi, edi
jne 0x416173
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 0x4161f0
mov ebp, esi
sub ecx, edx
jns 0x416207
jmp 0x416211
cmp esi, edi
je 0x416236
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x416211
xor al, 1
cmp ebp, edi
jne 0x4161d0
jmp 0x416211
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0xc77218
call fcn.00449ab0
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0xc77218
call fcn.004498c0
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_b6a8c762eed0ae0383658c38d65cb91bbd9800a1librarycore_srcio_borrowed_buf.rs_rustc_b6a8c762eed0ae0383658c38d65cb91bbd9800a1library_alloc_srccollections_btree_navigate.rs
mov edx, 0x2b
push 0xc77208
call fcn.00449920
int3
Function at 0x41f300
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0xc8704c]
test eax, eax
je 0x41f328
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x41f33e
cmp dword [eax + 4], 0
mov edi, eax
je 0x41f33e
add edi, 8
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xc8704c
call fcn.0044a450
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x41f318
mov eax, dword [0xc8704c]
test eax, eax
je 0x41f3f2
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x41f40c
mov esi, eax
test eax, eax
jne 0x41f3b9
movzx eax, byte [0xc87948]
mov eax, dword [0xc879c8]
test eax, eax
jne 0x41f385
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x41f41f
mov dword [0xc879c8], eax
push 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41f41f
mov dword [eax], 0xc8704c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0xc8704c]
test eax, eax
je 0x41f413
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 0x41f323
test ecx, ecx
je 0x41f323
lock dec dword [ecx]
jne 0x41f323
call fcn.00410ef0
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xc8704c
call fcn.0044a450
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x41f35c
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xc8704c
call fcn.0044a450
jmp 0x41f3b1
mov ecx, 4
mov edx, 0xc
call fcn.00449730
int3

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

Disassembly:
push esi
mov eax, dword [0xc8705c]
test eax, eax
je 0x41fd64
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x41fce3
cmp byte [eax + 4], 0
mov esi, eax
jne 0x41fd5d
mov eax, dword [0xc8705c]
test eax, eax
je 0x41fd83
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x41fd9d
mov esi, eax
test eax, eax
jne 0x41fd57
movzx eax, byte [0xc87948]
mov eax, dword [0xc879c8]
test eax, eax
jne 0x41fd2a
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x41fdaf
mov dword [0xc879c8], eax
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41fdaf
mov dword [eax], 0xc8705c
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0xc8705c]
test eax, eax
je 0x41fda3
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, 0xc8705c
call fcn.0044a450
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x41fcdb
jmp 0x41fce3
mov ecx, 0xc8705c
call fcn.0044a450
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x41fd01
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0xc8705c
call fcn.0044a450
jmp 0x41fd4f
mov ecx, 4
mov edx, 8
call fcn.00449730
int3
Function at 0x4204b0
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 0x420504
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0x103
je 0x420527
test eax, eax
js 0x420513
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov al, 4
jmp 0x42051f
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], 0xc7d428
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.0041eb00
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.0041ec60
mov ecx, 7
int 0x29
ud2
Function at 0x420db0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0xc8703c]
test eax, eax
je 0x420dd2
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x420de8
cmp dword [eax + 4], 0
je 0x420de8
add eax, 8
pop esi
ret
mov ecx, 0xc8703c
call fcn.0044a450
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x420dc7
mov eax, dword [0xc8703c]
test eax, eax
je 0x420e6e
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x420e88
mov esi, eax
test eax, eax
jne 0x420e57
movzx eax, byte [0xc87948]
mov eax, dword [0xc879c8]
test eax, eax
jne 0x420e27
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x420e98
mov dword [0xc879c8], eax
push 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x420e98
mov dword [eax], 0xc8703c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0xc8703c]
test eax, eax
je 0x420e8c
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, 0xc8703c
call fcn.0044a450
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x420e02
xor eax, eax
pop esi
ret
mov ecx, 0xc8703c
call fcn.0044a450
jmp 0x420e4f
mov ecx, 4
mov edx, 0x10
call fcn.00449730
int3
Function at 0x428570
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 0x4285bd
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0xc0000011
jne 0x4285cd
mov dword [esi + 4], 0
jmp 0x4285df
cmp eax, 0x103
je 0x4285fb
test eax, eax
js 0x4285e8
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], 0xc7d428
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.0041eb00
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.0041ec60
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push edi
push esi
mov eax, dword [0xc8706c]
test eax, eax
je 0x42be78
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x42be8e
cmp dword [eax + 4], 0
mov edi, eax
je 0x42be8e
add edi, 8
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xc8706c
call fcn.0044a450
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x42be68
mov eax, dword [0xc8706c]
test eax, eax
je 0x42bf42
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x42bf5c
mov esi, eax
test eax, eax
jne 0x42bf09
movzx eax, byte [0xc87948]
mov eax, dword [0xc879c8]
test eax, eax
jne 0x42bed5
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x42bf6f
mov dword [0xc879c8], eax
push 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42bf6f
mov dword [eax], 0xc8706c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0xc8706c]
test eax, eax
je 0x42bf63
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 0x42be73
test ecx, ecx
je 0x42be73
lock dec dword [ecx]
jne 0x42be73
call fcn.0042bf80
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xc8706c
call fcn.0044a450
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x42beac
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xc8706c
call fcn.0044a450
jmp 0x42bf01
mov ecx, 4
mov edx, 0xc
call fcn.00449730
int3
Function at 0x4332a0
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.004215c0
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp edx, 0x80000000
jne 0x4332de
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], 0x80000000
jmp 0x433300
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.004331d0
mov ebx, dword [esp]
cmp ebx, 0x80000000
jne 0x433315
mov ecx, esp
call fcn.004217b0
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 0x433333
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], ebp
jmp 0x43330d
test ebx, ebx
mov dword [esi], 0x80000000
je 0x43330d
push edi
push 0
push dword [0xc879c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x43330d
Function at 0x435220
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], 0x43b6b0
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 [0xc87948]
mov eax, dword [0xc879c8]
test eax, eax
jne 0x435273
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x43532e
mov dword [0xc879c8], eax
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x43532e
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 0x435400
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4352b5
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x43531d
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 0x435302
cmp dword [eax + 8], 9
jae 0x4352ed
mov eax, dword [ebp - 0x20]
jmp 0x4352f3
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0xc879c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
push dword [0xc879c8]
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.00449730
ud2
Function at 0x435870
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.0043ba90
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x43b6e0
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.0043c9d0
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 0x42ce80
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x4359c4
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 0x4358fa
cmp dword [ebp - 0x2c], 0
jne 0x4359d5
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4359d5
cmp esi, 0x1000
ja 0x435a11
xor edi, edi
nop dword [eax]
mov eax, esi
sub eax, edi
jb 0x4359f7
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 0x42ce80
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 0x4359cc
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x435970
cmp dword [ebp - 0x2c], 0
jne 0x4359d2
add edi, dword [ebp - 0x28]
cmp edi, esi
jne 0x435930
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x42ce80
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 0x4358fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4359d5
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 0xc7d6c4
call fcn.00449ab0
add esp, 4
jmp 0x435a2c
mov dword [ebp - 0x10], 0
mov ecx, esi
mov edx, 0x1000
push 0xc7d6c4
call fcn.004498c0
add esp, 4
ud2
Function at 0x435b20
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], 0x43b700
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 0x435b84
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], 0xc7d7e8
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, 0xc7d814
mov dword [esi + 0xc], 0x426790
mov dword [esi + 0x2c], 1
call fcn.004497d0
ud2

Function at 0x437390
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x43745f
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx]
test edx, edx
jne 0x4373b9
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x43742e
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x437449
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 0x4373f4
mov eax, dword [esp]
mov ecx, 2
test eax, eax
jne 0x437412
jmp 0x437406
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x43740d
cmp eax, 0x6d
jne 0x437423
mov word [esi], 4
jmp 0x43741c
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 0x43741c
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.004496a0
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x4373c4
mov ecx, ebx
push 1
call fcn.004496a0
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x4373c4
mov edx, esp
mov ecx, edi
mov dword [esp], 0
call fcn.0044a890
int3