joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443fb0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
mov dword [edi + 0xc], eax
mov eax, dword [esi]
test eax, eax
je 0x44407b
cmp eax, 0xffffffff
je 0x44407b
mov ecx, dword [0x618fd4]
push 0
push eax
call fcn.00440070
test al, al
jne 0x443fff
push str.Startup__:_Associate_Device_failed_for_pre_created_socket.
call fcn.00444390
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x618fdc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
mov ecx, 0x619034
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], edi
push eax
call fcn.00442650
push 0x618fdc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, edi
call fcn.004438f0
test al, al
jne 0x44410f
push str.Startup__:_Register_Receive_failed.
call fcn.00444390
add esp, 4
push 0x618fdc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov ecx, 0x619034
call fcn.00444c60
push 0x618fdc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4440b1
push str.Startup__:_Socket_Creation_Failure.
call fcn.00444390
add esp, 4
mov dword [esi], 0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x618fd4]
push 0
push eax
call fcn.00440070
test al, al
jne 0x4440da
push str.Startup__:_Associate_Device_failed.
call fcn.00444390
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x618fdc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
mov ecx, 0x619034
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], edi
push eax
call fcn.00442650
push 0x618fdc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
mov ecx, 5
test eax, eax
cmove eax, ecx
mov dword [edi + 0x10], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x444390
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00555090
mov eax, dword [0x616798]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x5ba654
push eax
call fcn.004427b0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.0043d320
push dword [eax + 4]
push dword [eax]
call fcn.00573399
add esp, 0x1c
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret
Function at 0x4476a0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x616798]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x619088], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
je 0x447701
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4476cb
mov eax, dword [esi]
mov ecx, 0x619088
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4476f0
test dl, dl
je 0x4476ec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4476f0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4476d0
xor eax, eax
jmp 0x4476f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x447701
mov edi, dword [0x619080]
jmp 0x447738
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x44770b
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x4477a2
cmp dword [esi + 0x14], 0x10
jb 0x447724
mov esi, dword [esi]
push esi
push 0x619088
call fcn.004473b0
add esp, 8
mov dword [0x619080], edi
push 0x33
push dword [ebx + 8]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x4477a2
mov eax, dword [edi + 0xc]
mov ecx, 2
push dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebx + 4], eax
mov word [ebp - 0x14], cx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x44778d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4477a2
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005548c1
mov esp, ebp
pop ebp
ret 8
Function at 0x4478d0
Capabilities:
Create tcp socket
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x616798]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
mov dword [esi + 0x18], eax
cmp edi, 0xffffffff
jne 0x447907
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, edi
je 0x44799f
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 8], eax
test eax, eax
je 0x44799f
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x44799f
cmp edi, 0xffffffff
je 0x44795f
push 0x23
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x44799f
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x44799f
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x447490
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
test eax, eax
je 0x44799f
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x20], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.005548c1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x447b70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x616798]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
mov eax, 2
push edi
push dword [ebp + 0xc]
mov word [ebp - 0x14], ax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0x14]
push esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
cmp eax, 0xffffffff
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.005548c1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x447c20
Capabilities:
Create thread
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x616798]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
mov byte [esi + 0x24], al
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
jne 0x447c5b
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x447c9b
cmp byte [esi + 0x24], 1
jne 0x447d08
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, 2
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi]
mov dword [ebp - 0x10], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x447caf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret 0x18
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 8], eax
test eax, eax
je 0x447c9b
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x447c9b
push 3
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x447c9b
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x447a40
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
test eax, eax
je 0x447c9b
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x447d10
sub ecx, edx
je 0x447d2c
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 4], eax
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.005548c1
mov esp, ebp
pop ebp
ret 0x18

Function at 0x449ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x616798]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x449f81
cmp byte [esi + 0x3d], 0
je 0x449f81
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x449f37
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x449f49
sub eax, 1
je 0x449f4d
sub eax, 2
je 0x449f81
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x449f6a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005822c5
add esp, 0x10
cmp edi, eax
jne 0x449f37
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.005548c1
mov esp, ebp
pop ebp
ret
Function at 0x44afd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x616798]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x44b000
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x44b03c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x44b03c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x44b121
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x44b064
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x44b097
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00581889
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x44b121
cmp eax, 1
jle 0x44b0f4
cmp eax, 3
jne 0x44b121
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.004485c0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x44b111
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005822c5
add esp, 0x10
cmp edi, eax
jne 0x44b121
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x44b027
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005548c1
mov esp, ebp
pop ebp
ret 4
Function at 0x44ba20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x44ba44
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044bb10
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x44ba65
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x44ba67
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x44baef
jg 0x44ba7a
test esi, esi
je 0x44baef
test ecx, ecx
jl 0x44babc
jg 0x44ba84
test eax, eax
je 0x44babc
cmp ebx, ecx
jg 0x44ba96
jl 0x44ba8e
cmp esi, eax
jae 0x44ba96
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00556a60
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x44bac2
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x44baef
jg 0x44bacc
test esi, esi
je 0x44baef
cmp dword [edi + 0x4c], 0
je 0x44baef
mov ecx, edi
call fcn.0044a4c0
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.00581b9d
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44bbe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x44bc04
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044bcc0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x44bc25
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x44bc27
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x44bca4
jg 0x44bc3a
test esi, esi
je 0x44bca4
test ecx, ecx
jl 0x44bc7e
jg 0x44bc44
test eax, eax
je 0x44bc7e
cmp edi, ecx
jg 0x44bc56
jl 0x44bc4e
cmp esi, eax
jae 0x44bc56
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00556a60
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x44bc81
mov edx, dword [ebp + 8]
test edi, edi
jl 0x44bca4
jg 0x44bc8b
test esi, esi
je 0x44bca4
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x44bca4
push eax
push esi
push 1
push edx
call fcn.005822c5
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x44c2e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x616798]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.0043d320
push dword [eax + 4]
push dword [eax]
call fcn.00573399
add esp, 0x1c
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret
Function at 0x44caa0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x616798]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
push 0x100
mov ecx, eax
call fcn.0044c540
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
push dword [ebp - 0x10]
call fcn.00554c77
add esp, 4
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov esi, edi
test edi, edi
je 0x44cb81
cmp dword [esi + 0x1a0], 6
jne 0x44cb7b
cmp dword [esi + 0x190], 6
jne 0x44cb7b
movzx eax, byte [esi + 0x199]
mov ecx, dword [ebp - 0x1c]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
mov eax, dword [ebp - 0x18]
push str._02X__02X__02X__02X__02X__02X
sub eax, ecx
push eax
push ecx
call fcn.0043dcc0
add esp, 0x24
mov esi, dword [esi]
test esi, esi
jne 0x44cb22
push dword [ebp - 0x1c]
call fcn.00449e50
push edi
mov esi, eax
call fcn.00554c80
mov ecx, dword [ebp - 0x1c]
add esp, 8
test ecx, ecx
je 0x44cbc4
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x44cbba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44cbd7
push edx
push ecx
call fcn.005548b3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00580f37
int3

Function at 0x44e8f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x616798]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0x20e], 0
movsx eax, byte [esi]
push eax
call fcn.005848e6
mov byte [ebp - 0x210], al
movsx eax, al
push eax
call fcn.00583f57
movzx ecx, byte [ebp - 0x210]
test eax, eax
movsx eax, byte [esi + 1]
mov ebx, 0x7a
cmove ecx, ebx
push eax
mov byte [ebp - 0x210], cl
call fcn.005848e6
mov byte [ebp - 0x20f], al
movsx eax, al
push eax
call fcn.00583f57
movzx ecx, byte [ebp - 0x20f]
test eax, eax
lea eax, [ebp - 0x210]
push eax
push str.names_s_names.dat
cmove ecx, ebx
push 4
push edi
mov byte [ebp - 0x20f], cl
call fcn.0043dcc0
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00584da7
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s_names_
push eax
call fcn.0044e680
add esp, 0x34
lea eax, [ebp - 0x20c]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005548c1
mov esp, ebp
pop ebp
ret
Function at 0x455a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x616798]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [edi + 0x7c], eax
mov dword [edi + 0x80], 0
cmp eax, 1
jne 0x455b75
test esi, esi
jne 0x455a60
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
test eax, eax
je 0x455a75
push eax
call fcn.00554c80
add esp, 4
mov dword [edi], 0
push 0x10000
push 0
push esi
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [edi + 4], eax
test eax, eax
jne 0x455b33
push str.WAVE
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x455ab8
push 0x5bcc18
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x455b8a
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x455b8a
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x455b8a
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x455b8a
push ebx
call fcn.00554c77
push ebx
push dword [ebp - 0x50]
mov esi, eax
push esi
call fcn.00556a60
push 0x48
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.00556fe0
add esp, 0x1c
mov dword [ebp - 0x48], 0x204d454d
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
push 0x10000
push eax
push 0
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [edi + 4], eax
mov ecx, edi
call fcn.00455e30
mov esi, eax
test esi, esi
jns 0x455b60
push 0
push dword [edi + 4]
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret 0xc
mov ecx, edi
call fcn.00456060
mov ecx, eax
test ecx, ecx
js 0x455bbd
mov eax, dword [edi + 0xc]
mov dword [edi + 0x30], eax
jmp 0x455bbd
push 0x11002
push 0
push esi
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [edi + 4], eax
test eax, eax
jne 0x455ba2
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret 0xc
push ebx
mov ecx, edi
call fcn.00456350
mov esi, eax
test esi, esi
js 0x455b40
mov ecx, edi
call fcn.00456060
mov ecx, eax
test ecx, ecx
js 0x455bbf
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005548c1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x456680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x104
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftDirectX
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x456704
push esi
lea eax, [ebp - 8]
push eax
push 0x619170
lea eax, [ebp - 0xc]
push eax
push 0
push str.DX8SDK_Samples_Path
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x456704
mov edx, 0x619170
dec edx
mov cl, byte [edx + 1]
lea edx, [edx + 1]
test cl, cl
jne 0x4566e0
mov ecx, dword [str.Media_]
mov eax, 0x619170
mov dword [edx], ecx
mov ecx, dword [0x5bcc74]
mov dword [edx + 4], ecx
mov esp, ebp
pop ebp
ret
mov eax, 0x61916c
mov esp, ebp
pop ebp
ret