joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x74
call sub.ntdll.dll__chkstk
cmp dword [ebp + 0x18], 0
jne 0x4023d4
push 0x405c8c
push 0x2d
push 0x405c98
push 0x405ca4
push 0x405cb4
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0x14
int 0x2c
xor eax, eax
jne 0x4023ad
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.00402ad0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x402413
push 0x405cdc
push 0x30
push 0x405ce8
push 0x405cf4
push 0x405d08
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0x14
int 0x2c
xor ecx, ecx
jne 0x4023ec
cmp dword [ebp - 8], 0
jge 0x402424
xor eax, eax
jmp 0x40250e
mov eax, dword [ebp - 0x70]
shl eax, 1
call sub.ntdll.dll__alloca_probe_16
mov dword [ebp - 0x74], esp
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00402a80
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x402476
push 0x405d30
push 0x39
push 0x405d3c
push 0x405d48
push 0x405d5c
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0x14
int 0x2c
xor ecx, ecx
jne 0x40244f
cmp dword [ebp - 8], 0
jge 0x402487
xor eax, eax
jmp 0x40250e
push 0x60
push 0
lea edx, [ebp - 0x68]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x68], 0x60
mov dword [ebp - 0x5c], 0x1008
mov eax, dword [0x406654]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x50], edx
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.COMCTL32.dll_Ordinal_345]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x402507
push str.MessageBoxV
push 0x50
push str.msgbox.c
push 0x405d9c
push 0x405db0
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0x14
int 0x2c
xor edx, edx
jne 0x4024e0
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x74]
mov esp, ebp
pop ebp
ret

Function at 0x402660
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call sub.ntdll.dll__chkstk
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
mov eax, dword [0x405c2c]
push eax
push 0xfffe
push 0
call fcn.004023a0
add esp, 0x18
push 0
call dword [sym.imp.kernelbase.dll_ExitProcess]
Function at 0x402ad0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call sub.ntdll.dll__chkstk
cmp dword [ebp + 0xc], 0
jne 0x402b04
push str.StringCchVPrintfBufferLengthW
push 0x55
push str.C:Users_vxiiduuDocumentsVisual_Studio_2010ProjectsVxKex00_Common_HeadersKexStrSafe.h
push 0x406080
push 0x406058
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0x14
int 0x2c
xor eax, eax
jne 0x402add
cmp dword [ebp + 8], 0
jne 0x402b2f
push str.StringCchVPrintfBufferLengthW
push 0x56
push str.C:Users_vxiiduuDocumentsVisual_Studio_2010ProjectsVxKex00_Common_HeadersKexStrSafe.h
push str.BufferCch___NULL
push 0x406058
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0x14
int 0x2c
xor ecx, ecx
jne 0x402b08
cmp dword [ebp + 8], 0
je 0x402b42
mov edx, dword [ebp + 8]
mov dword [edx], 0
cmp dword [ebp + 0xc], 0
je 0x402b4e
cmp dword [ebp + 8], 0
jne 0x402b55
mov eax, 0x80070057
jmp 0x402bac
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ntdll.dll__vscwprintf]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x402b9f
xor edx, edx
jne 0x402b94
push str.StringCchVPrintfBufferLengthW
push 0x63
push str.C:Users_vxiiduuDocumentsVisual_Studio_2010ProjectsVxKex00_Common_HeadersKexStrSafe.h
push str.__Invalid_parameters_passed_to__vscprintf___FALSE_
push 0x406058
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0x14
int 0x2c
xor eax, eax
jne 0x402b6f
mov eax, 0x80070057
jmp 0x402bac
mov ecx, dword [ebp - 4]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403060
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
call sub.ntdll.dll__chkstk
cmp dword [ebp + 8], 0
jne 0x403094
push str.SetWindowIcon
push 0x67
push 0x4063dc
push 0x4063e8
push 0x4063f8
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0x14
int 0x2c
xor eax, eax
jne 0x40306d
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
push 0
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 1
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xc
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 1
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
push 1
push 0x80
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esp, ebp
pop ebp
ret
Function at 0x408ac0
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 0x408b10
cmp edi, esi
jb 0x408b78
cmp edi, dword [esp + 0x1c]
ja 0x408b8b
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x408b12
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x408b00
jmp 0x408b6f
ja 0x408b18
cmp eax, edx
mov esi, edi
jne 0x408ad3
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 0x408b50
mov ebp, esi
sub ecx, edx
jns 0x408b67
jmp 0x408b71
cmp esi, edi
je 0x408ba0
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x408b71
xor al, 1
cmp ebp, edi
jne 0x408b30
jmp 0x408b71
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x43be64
call fcn.00439990
add esp, 4
ud2
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0x43be64
call fcn.004397e0
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_90c541806f23a127002de5b4038be731ba1458calibrary_alloc_srccollections_btreemapentry.rs
mov edx, 0x2b
push 0x43be74
call fcn.004397f0
add esp, 4
ud2
Function at 0x411ae0
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 eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x42ab80
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x411b1e
test eax, eax
jne 0x411c9a
mov ebx, dword [0x4489d0]
test ebx, ebx
je 0x411c9a
mov dword [ebp - 0x20], 0
jmp 0x411b47
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x411b78
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x411ceb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411b40
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 0x411b40
test byte [ebp - 0x20], 1
je 0x411c9a
mov ebx, dword [0x4489d0]
test ebx, ebx
je 0x411c9a
mov dword [ebp - 0x20], 0
jmp 0x411ba7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x411bd8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x411ceb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411ba0
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 0x411ba0
test byte [ebp - 0x20], 1
je 0x411c9a
mov ebx, dword [0x4489d0]
test ebx, ebx
je 0x411c9a
mov dword [ebp - 0x20], 0
jmp 0x411c07
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x411c38
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x411ceb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411c00
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 0x411c00
test byte [ebp - 0x20], 1
je 0x411c9a
mov ebx, dword [0x4489d0]
test ebx, ebx
je 0x411c9a
mov dword [ebp - 0x20], 0
jmp 0x411c67
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x411c94
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x411ceb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411c60
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 0x411c60
test byte [ebp - 0x20], 1
jne 0x411cb4
movzx eax, byte [0x444740]
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 [0x4489d0]
jmp 0x411cbf
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x411c9a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x411ceb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411cbc
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x411cbc
mov dword [ebp - 0x10], 0
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_90c541806f23a127002de5b4038be731ba1458calibrary_alloc_srccollections_btreemapentry.rs
mov edx, 0x2b
push 0x43f3d8
call fcn.004397f0
add esp, 4
ud2
Function at 0x412560
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, 0x10
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x42ac00
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x448058]
test eax, eax
je 0x4125b2
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x4125c8
cmp dword [eax], 0
mov edi, eax
je 0x4125c8
add edi, 4
jmp 0x412687
mov ecx, 0x448058
call fcn.0043a2b0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x4125a3
mov eax, dword [0x448058]
test eax, eax
je 0x41266b
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x412685
mov esi, eax
test eax, eax
jne 0x41263c
mov eax, dword [0x4489c0]
test eax, eax
jne 0x412608
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4126a6
mov dword [0x4489c0], eax
push 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4126a6
mov dword [eax], 0
mov dword [eax + 0xc], 0x448058
mov esi, eax
mov eax, dword [0x448058]
test eax, eax
je 0x41269a
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi], 0
lea edi, [esi + 4]
mov dword [esi], 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
je 0x412687
test ecx, ecx
je 0x412687
lock dec dword [ecx]
jne 0x412687
call fcn.004126f0
jmp 0x412687
mov ecx, 0x448058
call fcn.0043a2b0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x4125e6
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x448058
call fcn.0043a2b0
jmp 0x412634
mov ecx, 0x10
mov edx, 4
mov dword [ebp - 0x10], 0
call fcn.00439680
ud2
Function at 0x414040
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
sub esp, 0x50
mov eax, dword [esp + 0x5c]
mov esi, ecx
mov ecx, dword [esp + 0x60]
mov edi, edx
mov dword [esp], 0x103
mov dword [esp + 4], 0
mov edx, esp
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 0x414090
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
cmp eax, 0x103
je 0x4140ba
test eax, eax
js 0x4140a4
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x50
pop esi
pop edi
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov dword [esi], 0
add esp, 0x50
pop esi
pop edi
ret
lea eax, [esp + 0x38]
mov dword [esp + 0x28], 0x43da94
mov dword [esp + 0x2c], 2
mov dword [esp + 0x20], 0
lea esi, [esp + 0x18]
mov dword [esp + 8], 0
mov dword [esp + 0x40], 0x43ecdc
mov dword [esp + 0x44], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], str._rustc_90c541806f23a127002de5b4038be731ba1458calibrarycore_src_strpattern.rs
mov byte [esp + 0xc], 0
mov dword [esp + 0x4c], 0
lea ecx, [esp + 8]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x4071f0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x34], 1
push eax
push ecx
push esi
call fcn.00412100
add esp, 0xc
cmp byte [esp + 0x18], 4
je 0x41414e
push esi
call fcn.00412260
add esp, 4
mov ecx, 7
int 0x29
ud2
Function at 0x414740
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x448068]
test eax, eax
je 0x414761
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x414777
cmp dword [eax], 0
je 0x414777
add eax, 4
pop esi
ret
mov ecx, 0x448068
call fcn.0043a2b0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x414757
mov eax, dword [0x448068]
test eax, eax
je 0x4147ed
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x414803
mov esi, eax
test eax, eax
jne 0x4147db
mov eax, dword [0x4489c0]
test eax, eax
jne 0x4147ab
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x414813
mov dword [0x4489c0], eax
push 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x414813
mov dword [eax], 0
mov dword [eax + 8], 0x448068
mov esi, eax
mov eax, dword [0x448068]
test eax, eax
je 0x414807
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], 1
lea eax, [esi + 4]
mov dword [esi + 4], 0
pop esi
ret
mov ecx, 0x448068
call fcn.0043a2b0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x41478d
xor eax, eax
pop esi
ret
mov ecx, 0x448068
call fcn.0043a2b0
jmp 0x4147d3
mov ecx, 0xc
mov edx, 4
call fcn.00439680
ud2
Function at 0x41cd00
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, 0x10
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x42ae10
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x448024]
test eax, eax
je 0x41cd52
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x41cd68
cmp dword [eax], 0
mov edi, eax
je 0x41cd68
add edi, 4
jmp 0x41ce20
mov ecx, 0x448024
call fcn.0043a2b0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x41cd43
mov eax, dword [0x448024]
test eax, eax
je 0x41ce04
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x41ce1e
mov esi, eax
test eax, eax
jne 0x41cddc
mov eax, dword [0x4489c0]
test eax, eax
jne 0x41cda8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x41ce3f
mov dword [0x4489c0], eax
push 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41ce3f
mov dword [eax], 0
mov dword [eax + 8], 0x448024
mov esi, eax
mov eax, dword [0x448024]
test eax, eax
je 0x41ce33
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 4]
cmp dword [esi], 0
lea edi, [esi + 4]
mov dword [esi], 1
mov dword [esi + 4], 0
je 0x41ce20
test ecx, ecx
je 0x41ce20
lock dec dword [ecx]
jne 0x41ce20
call fcn.0041ce80
jmp 0x41ce20
mov ecx, 0x448024
call fcn.0043a2b0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x41cd86
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x448024
call fcn.0043a2b0
jmp 0x41cdd4
mov ecx, 0xc
mov edx, 4
mov dword [ebp - 0x10], 0
call fcn.00439680
ud2
Function at 0x423b80
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], 0x42aeb0
mov eax, dword [ebp + 8]
mov edi, 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.00423a60
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x423c20
cmp byte [ebp - 0x30], 3
jne 0x423c49
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edi
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 edi, dword [ebp - 0x24]
mov ecx, dword [esi + 4]
cmp dword [ecx + 4], 0
je 0x423c0f
mov eax, dword [esi]
cmp dword [ecx + 8], 9
jb 0x423c00
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x4489c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
push dword [0x4489c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x423c49
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x423c49
mov ebx, 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 0x423c61
mov eax, dword [ebp - 0x20]
mov dword [edi], ebx
mov dword [edi + 4], esi
mov dword [edi + 8], eax
jmp 0x423c50
mov dword [edi + 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 ebx, ebx
mov dword [edi + 4], 0
je 0x423c50
push esi
push 0
push dword [0x4489c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x423c50
Function at 0x425ed0
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.0042b2a0
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x42af20
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], edx
lea esi, [ebp - 0x1054]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edx
push 0x1000
push 0
push esi
call fcn.0042d850
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x41d910
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x426034
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [ebp - 0x20], edi
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x2c], 0
je 0x425f60
cmp dword [ebp - 0x28], 0
jne 0x426045
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x54], 4
test ebx, ebx
mov dword [ebp - 0x50], ebx
je 0x426045
cmp ebx, 0x1000
ja 0x426081
xor edi, edi
nop dword [eax]
mov eax, ebx
sub eax, edi
jb 0x426067
xorps xmm0, xmm0
lea edx, [ebp - 0x2c]
lea ecx, [ebp + edi - 0x1054]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x41d910
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 0x42603c
nop dword [eax]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x2c], 0
je 0x425fe0
cmp dword [ebp - 0x28], 0
jne 0x426042
add edi, dword [ebp - 0x24]
cmp edi, ebx
jne 0x425fa0
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x41d910
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1054]
push eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x425f60
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x426045
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 - 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
mov ecx, edi
mov edx, ebx
push 0x43ef74
call fcn.00439990
add esp, 4
jmp 0x42609c
mov dword [ebp - 0x10], 0
mov ecx, ebx
mov edx, 0x1000
push 0x43ef74
call fcn.004397e0
add esp, 4
ud2
Function at 0x4260e0
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], 0x42af30
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 0x426144
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 + 0x28], 0x43f084
mov dword [esi + 0x2c], 1
mov dword [esi + 0x20], 0
mov dword [esi + 4], eax
mov dword [esi], 0
mov dword [esi + 0x48], 0
mov dword [esi + 8], edx
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x20]
mov edx, 0x43f0b0
mov dword [esi + 0xc], 0x418630
mov dword [esi + 0x34], 1
call fcn.00439730
ud2

Function at 0x42b7e2
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x432a46
push ebx
push esi
call fcn.00432972
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004328bb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4329f3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x432a45
push edi
push eax
call fcn.004335a9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x432a13
call fcn.004314e4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x432a44
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004328bb
add esp, 0x20
test eax, eax
jne 0x432a32
push edi
call fcn.004314e4
jmp 0x432a3a
push ebx
call fcn.004314e4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x433d2c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x441918
push 0x441910
push str.FlsAlloc
push 0x1e
call fcn.00433bed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x433d60
push dword [ebp + 8]
mov ecx, esi
call dword [0x43b1b4]
call esi
jmp 0x433d66
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x433daa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x441928
push 0x441920
push str.FlsGetValue
push 0x20
call fcn.00433bed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x433de1
push dword [ebp + 8]
mov ecx, esi
call dword [0x43b1b4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]