joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430e50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x430e6d.4
jmp dword [eax*4 + 0x43106c]
lea eax, [edi + 0x15c]
push eax
call fcn.00430540
movzx ecx, ax
add esp, 4
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
je 0x430ea9
push eax
push ecx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.00421290
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
mov word [edi + 0x40], cx
push 4
push esi
mov dword [edi + 0x18], 0
call fcn.004305a0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00430580
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x430fdf
mov eax, dword [edi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [edi + 0x14c], eax
lea eax, [edi + 0x38]
push eax
setl cl
lea ecx, [ecx*2 + 1]
mov dword [edi], ecx
call fcn.0044908d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
lea esi, [edi + 0x160]
push 4
push esi
mov word [edi + 0x40], ax
mov dword [edi + 0x18], eax
call fcn.004305a0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00430580
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x430fdf
lea eax, [edi + 0x38]
mov dword [edi], 1
push eax
call fcn.0044908d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
movzx eax, word [edi + 0x40]
inc dword [edi + 0x18]
inc eax
push dword [edi + 0x18]
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.00421290
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x430fbb
mov dword [edi + 8], 0xffffff9d
xor eax, eax
mov dword [edi], 3
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x431045
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.00425ad0
push eax
push 0x45be88
push ebx
call fcn.004211f0
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
push 5
push esi
call fcn.004305a0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00430580
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [edi], 3
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push str.tftp_rx:_internal_error
push 0x45be88
push ebx
call fcn.004211f0
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x431530
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x431542
jmp dword [edx*4 + 0x431598]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00431080
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00430e50
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00431740
push str.TFTP_finished
push 0x45b6bc
push eax
call fcn.00421290
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x45be88
push eax
call fcn.004211f0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x433030
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x614394]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax]
or ebx, 0xffffffff
mov edi, dword [eax + 0x134]
push 1
push 0
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x10
call fcn.00421ae0
mov ecx, eax
add esp, 0xc
test ecx, ecx
js 0x4330a5
nop
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push edi
call fcn.0042e330
add esp, 0xc
cmp eax, 0xffffffff
je 0x433159
test eax, eax
jne 0x4330c9
push 1
push eax
push esi
call fcn.00421ae0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jns 0x433070
push str.Timeout_while_waiting_for_server_connect
push esi
call fcn.004211f0
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041597d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4330f4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
mov edi, dword [ebp - 0x1c]
push edi
call fcn.004217e0
add esp, 8
cmp ebx, 0xffffffff
jne 0x43312a
push str.Error_accept__ing_server_connect
push esi
call fcn.004211f0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041597d
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push esi
call fcn.00421290
push 1
push ebx
mov dword [edi + 0x134], ebx
call fcn.0043a590
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041597d
mov esp, ebp
pop ebp
ret
push str.Error_while_waiting_for_server_connect
push esi
call fcn.004211f0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x1e
pop edi
pop esi
pop ebx
call fcn.0041597d
mov esp, ebp
pop ebp
ret

Function at 0x435420
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x43544f
push str.Couldnt_set_desired_mode
push edx
call fcn.004211f0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x435466
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.00421290
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x43547d
push edi
call fcn.00434f60
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x435491
push edi
call fcn.00434a50
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x4354a5
push edi
call fcn.00434ec0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x4354b5
push edi
call fcn.00434f40
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4385f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x614394]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0044cdb8
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x438654
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [ebp - 0x108], 0
je 0x438654
lea eax, [ebp - 0x108]
push eax
call dword [0x6143c0]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0041597d
mov esp, ebp
pop ebp
ret

Function at 0x438670
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004385f0
Function at 0x43b800
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x43c4b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x6143b4]
mov edi, eax
add esp, 4
test edi, edi
jne 0x43c4dd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x43c524
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x43c52a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x43c58b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x43c550
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x43c5b7
mov eax, dword [esi + 4]
push 1
push 0x461764
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x461765
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x43c590
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43c5e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x43c613
push 0x2e
push edi
call fcn.00440340
add esp, 8
test eax, eax
je 0x43c611
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x43d010
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x614394]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0043f9d0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jg 0x43d082
cmp dword [ebp - 0x118], 2
jg 0x43d082
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041597d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0041597d
mov esp, ebp
pop ebp
ret

Function at 0x43d0e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x43d10c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x43d0fd
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x43d140
cmp dword [esi + 8], 0
jne 0x43d130
push 0x46190c
push dword [eax + 8]
call fcn.004438a1
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x43d130
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00449327
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x43d162
mov eax, dword [esi + 8]
test eax, eax
je 0x43d15c
push eax
call fcn.0044360e
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x44d239
Capabilities:
Read file on windows

Disassembly:
add byte [eax], al
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44d304
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044c172
add esp, 0x10
test edx, edx
jg 0x44d277
jl 0x44d304
test eax, eax
jb 0x44d304
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1010]
test ebx, ebx
jl 0x44d291
jg 0x44d304
cmp dword [ebp - 0x1008], eax
ja 0x44d304
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44d2af
test ebx, ebx
je 0x44d2eb
cmp ecx, edi
jae 0x44d2eb
mov al, byte [ecx]
cmp al, 0xd
jne 0x44d2cc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44d2d8
lea eax, [ecx + 1]
cmp byte [eax], 0xa
jne 0x44d2d8
mov ecx, eax
jmp 0x44d2d8
movzx eax, al
movsx eax, byte [eax + 0x614b98]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44d2af
cmp edx, ebx
jne 0x44d2af
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x100c]
adc edx, dword [ebp - 0x1014]
jmp 0x44d309
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041597d
mov esp, ebp
pop ebp
ret

Function at 0x44f5cb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044f28b
Function at 0x452653
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004524d2
Function at 0x40bb27
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x410438], eax
je 0x40bb49
cmp dword [0x410438], ebx
jne 0x40bbdd
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x410438
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x410438
push 4
push edi
mov dword [0x410438], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x410438]
not eax
mov dword [0x4120c0], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401e2a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x458
mov eax, 0x4330a9
call fcn.0041d526
mov ebx, edx
cmp dword [ebx + 0x14], 8
mov esi, ecx
jb 0x401e47
mov eax, dword [ebx]
jmp 0x401e49
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401e59
test al, 0x10
je 0x401e98
mov edi, 0x439890
push edi
call fcn.0041a174
pop ecx
add esi, 0x10
mov ecx, edi
call fcn.0040b47a
mov edi, str.File_not_found:
push edi
call fcn.0041a174
pop ecx
push edi
mov edi, eax
mov eax, esi
call fcn.00404e14
push 0
push ebx
or eax, 0xffffffff
call fcn.00404d77
xor al, al
call fcn.0041d5a9
ret
xor edi, edi
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x464], edi
jb 0x401ea8
mov ebx, dword [ebx]
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x254]
call fcn.0040b4f5
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x464]
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x460]
push eax
call fcn.0040239e
xor eax, eax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], edi
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x238]
push eax
lea edx, [ebp - 0x254]
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0040204f
test al, al
jne 0x401f5b
xor bl, bl
push 1
xor edi, edi
lea esi, [ebp - 0x238]
call fcn.0040b70b
lea eax, [ebp - 0x460]
push eax
call fcn.004023bf
push 1
lea esi, [ebp - 0x254]
call fcn.0040b70b
mov al, bl
jmp 0x401e92
push edi
push edi
lea eax, [ebp - 0x238]
push eax
mov ecx, esi
call fcn.00401750
mov bl, al
jmp 0x401f2c
Function at 0x409f77
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4412dc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor ebx, ebx
lea edi, [ebp - 0x218]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call fcn.00409f30
mov edi, eax
cmp edi, ebx
je 0x409fe5
cmp dword [ebp - 0x218], ebx
je 0x409fde
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40a0a8
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40a009
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00409f77
mov dword [ebp - 0x224], eax
cmp eax, ebx
jne 0x40a072
lea eax, [ebp - 0x22c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call edi
test eax, eax
je 0x409fed
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], ebx
je 0x40a054
push dword [ebp - 0x218]
call edi
mov dword [ebp - 0x218], ebx
mov eax, dword [esi + 8]
push dword [ebp - 0x220]
mov dword [ebp - 0x214], ebx
push dword [esi]
cmp eax, ebx
je 0x40a08e
mov esi, eax
call fcn.0040a10a
jmp 0x40a094
cmp dword [ebp - 0x218], ebx
je 0x40a086
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x40a0a8
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp dword [ebp - 0x218], ebx
je 0x40a0a6
push dword [ebp - 0x218]
call edi
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419542
leave
ret 4
Function at 0x40a9c5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x432eb0
call fcn.0041d55c
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x40aa1d
call fcn.00409449
mov esi, eax
jmp 0x40ab27
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x40aa36
call fcn.00409449
jmp 0x40ab19
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x40aa2c
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x40aa73
mov esi, 0x8007000e
jmp 0x40ab1b
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x40aa88
cmp eax, 0xffffffff
jbe 0x40aa92
push 0x80070216
call fcn.00409df5
cmp eax, 0x400
jbe 0x40aabf
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004099aa
jmp 0x40aacb
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x40aa69
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40aa2c
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.0040a865
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40ab40
lea eax, [ebp - 0x418]
call fcn.004099a1
mov eax, esi
call fcn.0041d5b8
ret 0xc
Function at 0x40b9d9
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x432e7f
call fcn.0041d4bd
mov edi, dword [ebp + 8]
lea esi, [edi + 4]
mov ebx, ecx
mov dword [edi], vtable.BugsplatReport.0
call fcn.004101c7
mov ebx, dword [ebp + 0xc]
and dword [ebp - 4], 0
lea esi, [edi + 8]
call fcn.004101c7
mov ebx, dword [ebp + 0x10]
lea esi, [edi + 0xc]
mov byte [ebp - 4], 1
call fcn.004101c7
mov eax, dword [0x442d10]
mov dword [edi + 0x10], eax
mov eax, dword [0x442d10]
mov dword [edi + 0x14], eax
mov eax, dword [0x442d10]
mov dword [edi + 0x18], eax
mov eax, dword [0x442d10]
mov dword [edi + 0x1c], eax
mov eax, dword [0x442d10]
mov dword [edi + 0x20], eax
mov eax, dword [0x442d10]
mov dword [edi + 0x24], eax
push 0x439944
add edi, 0x28
mov byte [ebp - 4], 8
call fcn.0040ffb9
mov eax, dword [0x442d10]
mov esi, dword [ebp + 8]
mov dword [esi + 0x2c], eax
xor ebx, ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov eax, dword [0x442d10]
mov dword [esi + 0x3c], eax
mov eax, dword [0x442d10]
mov dword [esi + 0x40], eax
mov byte [esi + 0x44], bl
mov word [esi + 0x46], bx
mov byte [esi + 0x48], bl
mov eax, dword [0x442d10]
mov dword [esi + 0x4c], eax
mov eax, dword [0x442d10]
mov dword [esi + 0x50], eax
mov eax, dword [0x442d10]
lea edi, [esi + 0x54]
push edi
mov dword [esi + 0x25c], eax
push 0x104
mov byte [esi + 0x260], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.bugsplat.log
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x439968
lea eax, [ebp - 0x10]
push edi
push eax
mov dword [ebp - 0x10], ebx
call fcn.0041aecc
add esp, 0xc
cmp dword [ebp - 0x10], ebx
je 0x40bae6
push dword [ebp - 0x10]
call fcn.0041af80
pop ecx
mov eax, esi
call fcn.0041d595
ret 0xc