joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x9b0
mov eax, dword [0x42cc20]
xor eax, esp
mov dword [esp + 0x9a8], eax
mov eax, dword [esp + 0x9b8]
push ebx
xor ebx, ebx
lea ecx, [esp + 0x1a8]
cmp eax, ebx
je 0x403e3b
mov ecx, eax
xor eax, eax
mov word [ecx], ax
lea ecx, [esp + 0x18]
push ecx
push 0x101
mov dword [esp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403e70
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.0040ec45
add esp, 0x9b0
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403e58
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x403eac
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
push 4
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
cmp eax, ebx
je 0x403f05
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x9b8]
mov eax, 2
push ecx
mov dword [esp + 0x10], edx
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0xc]
mov word [esp + 0xe], ax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403f05
mov ebx, 1
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.0040ec45
add esp, 0x9b0
ret
mov eax, dword [esi]
cmp eax, ebx
je 0x403f14
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], ebx
mov ecx, dword [esp + 0x9ac]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040ec45
add esp, 0x9b0
ret

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

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0xc], eax
cmp dword [ecx], eax
je 0x4040f2
cmp edi, eax
jle 0x40409d
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x404090
lea ebx, [edi + 7]
push ebx
call fcn.004047e2
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [str.AS101]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x42df98]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.004167a0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
add esp, 0x10
push 0
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4040f6
cmp eax, ebx
jne 0x4040f6
mov dword [esp + 0xc], 1
jmp 0x4040f6
mov esi, dword [esp + 0x14]
test esi, esi
je 0x404103
push esi
call fcn.00404811
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4042d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8d8
mov eax, dword [0x42cc20]
xor eax, esp
mov dword [esp + 0x8d4], eax
mov eax, dword [esp + 0x8e0]
push ebp
mov ebp, dword [esp + 0x8e0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x8e8]
push esi
push edi
mov dword [esp + 0x10], edx
lea ecx, [esp + 0xe0]
test eax, eax
je 0x404311
mov ecx, eax
xor eax, eax
mov word [ecx], ax
mov esi, dword [ebp]
xor edi, edi
mov dword [esp + 0xc], edi
test esi, esi
je 0x40442d
test edx, edx
je 0x40442d
push 0xc7
lea ecx, [esp + 0x1d]
push edi
push ecx
mov byte [esp + 0x24], al
call fcn.00410cd0
add esp, 0xc
push edi
push 2
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x404445
test eax, eax
je 0x404445
movzx edi, word [esp + 0x18]
lea eax, [edi + 2]
push ebx
push eax
xor esi, esi
call fcn.004047e2
add esp, 4
mov ebx, eax
test edi, edi
jle 0x40441b
mov eax, dword [ebp]
push 0
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4043f9
test eax, eax
je 0x4043f9
add esi, eax
cmp edi, esi
jg 0x404384
cmp esi, 5
jl 0x40441b
mov ecx, dword [str.AS101]
sub esi, 5
cmp ecx, dword [ebx]
jne 0x40441b
mov dl, byte [ebx + 4]
cmp dl, byte [0x42df98]
jne 0x40441b
test esi, esi
jle 0x4043dc
lea eax, [ebx + 5]
mov edi, esi
mov edi, edi
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
sub edi, 1
jne 0x4043d0
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
cmp eax, esi
jl 0x404401
mov eax, dword [esp + 0x14]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.004167a0
mov dword [edi], esi
jmp 0x404410
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x40441b
mov edx, dword [esp + 0x14]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.004167a0
add esp, 0xc
mov dword [esp + 0x10], 1
test ebx, ebx
je 0x404428
push ebx
call fcn.00404811
add esp, 4
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x8d4]
xor ecx, esp
call fcn.0040ec45
add esp, 0x8d8
ret
mov ecx, dword [esp + 0x8e0]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040ec45
add esp, 0x8d8
ret
Function at 0x404460
Capabilities:
Get common file path

Disassembly:
sub esp, 0xe28
mov eax, dword [0x42cc20]
xor eax, esp
mov dword [esp + 0xe24], eax
mov eax, dword [esp + 0xe30]
push ebx
push ebp
mov ebp, dword [esp + 0xe34]
push esi
push edi
push 0x400
lea ecx, [esp + 0x234]
push 0
push ecx
mov dword [esp + 0x30], eax
call fcn.00410cd0
add esp, 0xc
push ebp
lea edx, [esp + 0x234]
push 0x1ff
push edx
call fcn.0040ecd1
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4044c0
sub eax, edx
sar eax, 1
lea edi, [esp + eax*2 + 0x232]
mov ecx, 0x80
mov esi, 0x4317f0
mov eax, ebp
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4044e7
sub eax, edx
sar eax, 1
push 0x10000
lea ebx, [eax + eax + 0x202]
call fcn.0040f96c
add esp, 4
push 0x10000
xor esi, esi
mov ebp, eax
push esi
push ebp
call fcn.00410cd0
add esp, 0xc
push 0x7fe
lea ecx, [esp + 0x636]
xor eax, eax
push esi
push ecx
mov dword [esp + 0x28], 0x10000
mov word [esp + 0x63c], ax
call fcn.00410cd0
add esp, 0xc
push 0x206
lea eax, [esp + 0x2e]
xor edx, edx
push esi
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
mov word [esp + 0x34], dx
call fcn.00410cd0
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esp + 0xe44]
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x630]
push edx
push eax
lea esi, [esp + 0x20]
call fcn.00403e10
add esp, 8
test eax, eax
je 0x404659
lea ecx, [esp + 0x630]
push ecx
push ebx
push 0xbba
lea ecx, [esp + 0x23c]
mov edx, esi
call fcn.00403f30
add esp, 0xc
test eax, eax
je 0x404659
lea edx, [esp + 0x630]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
mov edx, esi
call fcn.00404110
add esp, 0xc
test eax, eax
je 0x404659
mov edx, 0xbba
cmp word [esp + 0x20], dx
jne 0x404659
cmp dword [esp + 0x1c], 0
je 0x404659
cmp byte [ebp], 0
jne 0x404659
push 0x4319f0
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.0040ec54
add esp, 0xc
push 0x427ef0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0
call fcn.0040efa6
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x404651
lea eax, [esp + 0x14]
push eax
mov edi, esi
call fcn.004046a0
add esp, 4
mov dword [esp + 0x14], 1
test ebp, ebp
je 0x404666
push ebp
call fcn.0040fa36
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404675
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0xe34]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ec45
add esp, 0xe28
ret
Function at 0x4046a0
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00413180
mov eax, dword [0x42cc20]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x1010]
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x4046f8
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0040ec45
add esp, 0x100c
ret
cmp dword [esp + 8], ebx
jbe 0x404737
push esi
nop
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x404736
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.0040f50b
add ebx, esi
add esp, 0x10
cmp ebx, dword [esp + 0xc]
jb 0x404700
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.0040f32d
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp ebx, dword [esp + 8]
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.0040ec45
add esp, 0x100c
ret

Function at 0x40ec45
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42cc20]
jne 0x40ec4f
repz ret
jmp fcn.004131ab
Function at 0x41e512
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.0041762e
and dword [ebp - 4], 0
cmp dword [0x430a1c], 0
mov ebx, eax
jne 0x41e5c3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41e674
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41e674
push eax
call fcn.004175bc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x430a1c], eax
call esi
push eax
call fcn.004175bc
mov dword [esp], 0x426db4
push edi
mov dword [0x430a20], eax
call esi
push eax
call fcn.004175bc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x430a24], eax
call esi
push eax
call fcn.004175bc
pop ecx
mov dword [0x430a2c], eax
test eax, eax
je 0x41e5c3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004175bc
pop ecx
mov dword [0x430a28], eax
mov eax, dword [0x430a28]
cmp eax, ebx
je 0x41e61b
cmp dword [0x430a2c], ebx
je 0x41e61b
push eax
call fcn.00417637
push dword [0x430a2c]
mov esi, eax
call fcn.00417637
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41e61b
test edi, edi
je 0x41e61b
call esi
test eax, eax
je 0x41e612
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41e612
test byte [ebp - 0xc], 1
jne 0x41e61b
or dword [ebp + 0x10], 0x200000
jmp 0x41e654
mov eax, dword [0x430a20]
cmp eax, ebx
je 0x41e654
push eax
call fcn.00417637
pop ecx
test eax, eax
je 0x41e654
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41e654
mov eax, dword [0x430a24]
cmp eax, ebx
je 0x41e654
push eax
call fcn.00417637
pop ecx
test eax, eax
je 0x41e654
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x430a1c]
call fcn.00417637
pop ecx
test eax, eax
je 0x41e674
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41e676
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43bad0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push edi
mov edi, ecx
mov al, byte [edi + 4]
test al, al
jne 0x43bafa
push 0x4b8070
lea ecx, [esp + 8]
call fcn.0044df24
push 0x4b0b38
lea eax, [esp + 8]
push eax
call fcn.0044d9a9
mov eax, dword [edi + 0x3cc]
xor edx, edx
test eax, eax
jle 0x43bb27
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
mov cl, byte [esi]
mov bl, byte [eax]
xor bl, cl
inc esi
mov byte [eax], bl
mov ecx, dword [edi + 0x3cc]
inc eax
inc edx
cmp edx, ecx
jl 0x43bb10
pop esi
pop ebx
pop edi
add esp, 0xc
ret 8
Function at 0x402be0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0xc]
mov byte [esp + 0xc], 1
test ebx, ebx
je 0x402c13
test eax, eax
jl 0x402c13
test ebp, ebp
jl 0x402c13
cmp dword [esp + 0x10], 0
je 0x402c13
push 2
neg eax
push eax
push ebx
call fcn.0042463f
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402c1a
pop ebp
xor al, al
pop ebx
ret 8
push esi
push edi
lea edi, [ebp + 1]
push edi
call fcn.0042330e
push edi
mov esi, eax
push 0
push esi
call fcn.00427fc0
push ebx
push ebp
push 1
push esi
call fcn.00424337
add esp, 0x20
test eax, eax
jne 0x402c45
xor bl, bl
jmp 0x402c58
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
call fcn.004235c0
mov bl, byte [esp + 0x20]
add esp, 0xc
test esi, esi
je 0x402c65
push esi
call fcn.0042408c
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 8
Function at 0x4034b0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x438700
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x444600]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
push edi
mov eax, dword [0x444600]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x4035d0
lea eax, [esp + 0x14]
push eax
call fcn.0040bca0
mov dword [esp + 0x58], ebx
mov eax, dword [esi + 4]
add eax, 0x3c
push eax
lea eax, [esp + 0x18]
call fcn.0040bb50
mov ecx, 0x446bec
lea eax, [esp + 0x10]
call fcn.00401100
push str._t.txt
mov byte [esp + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
je 0x40353e
push str._t.txt
mov esi, eax
lea edi, [esp + 0x14]
call fcn.00401c20
push ecx
lea ecx, [esp + 0x14]
mov eax, esp
mov dword [esp + 0x30], esp
call fcn.00401100
lea edi, [esp + 0x34]
call fcn.00421e26
mov eax, dword [esp + 0x38]
add esp, 4
cmp dword [esp + 0x48], 0x10
jae 0x403569
lea eax, [esp + 0x34]
push 0x43d1d8
push eax
call fcn.00423fa7
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x4035d4
cmp dword [esp + 0x48], 0x10
jb 0x403591
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00423319
add esp, 4
mov eax, dword [esp + 0x10]
lea edx, [eax - 0xc]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
cmp edx, 0x445438
je 0x4035c7
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4035c7
push esi
call fcn.0042408c
add esp, 4
lea esi, [esp + 0x14]
call fcn.00404120
xor al, al
jmp 0x40364f
mov edi, dword [esp + 0x24]
sub edi, dword [esp + 0x20]
jne 0x4035e3
call fcn.00423e72
mov eax, dword [esp + 0x20]
push esi
push 1
push edi
push eax
call fcn.00424533
push esi
call fcn.0042478c
add esp, 0x14
cmp dword [esp + 0x48], 0x10
jb 0x40360e
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00423319
add esp, 4
mov eax, dword [esp + 0x10]
lea edx, [eax - 0xc]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
cmp edx, 0x445438
je 0x403644
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403644
push esi
call fcn.0042408c
add esp, 4
lea esi, [esp + 0x14]
call fcn.00404120
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00423324
add esp, 0x4c
ret
Function at 0x403900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x437b08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x444600]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x444600]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
mov dword [esp + 0x30], 0
test eax, eax
je 0x4039ed
mov eax, dword [eax + 0x18]
test eax, eax
je 0x403974
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
test eax, eax
je 0x403974
mov ecx, dword [eax + 0x20]
add ecx, 8
jne 0x4039d5
push 0
push 0x43c01f
lea ecx, [esp + 0x10]
call fcn.00404250
mov eax, dword [esp + 0xc]
mov esi, 0x10
cmp dword [esp + 0x20], esi
jae 0x403997
lea eax, [esp + 0xc]
push eax
call fcn.00423b43
add esp, 4
mov dword [edi], eax
cmp dword [esp + 0x20], esi
jb 0x4039b5
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00423319
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00423324
add esp, 0x2c
ret 4
mov eax, ecx
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4039e0
sub eax, esi
push eax
push ecx
jmp 0x40397b
xor al, al
jmp 0x4039b7

Function at 0x404f20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x404f30
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x404f40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404f70
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x444600]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x404fea
xor eax, eax
cmp ecx, ebp
je 0x404fd2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x404ff8
cmp ecx, ebp
je 0x40508b
push ecx
jmp 0x405085
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40505a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00404f70
mov ebx, eax
cmp ebx, ebp
jne 0x4050a8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x405020
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40506d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00404e30
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40508b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423324
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4050b7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40508d
Function at 0x405580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4385d0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x444600]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x4055ff
call fcn.00404c00
mov esi, eax
jmp 0x4056e1
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40561b
call fcn.00404c00
jmp 0x4056d8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x405634
call fcn.00404c00
jmp 0x4056d8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x405668
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x405656
lea eax, [ebp]
call fcn.00407d00
lea esi, [ebp - 0x1c]
call fcn.00407ad0
mov eax, 0x8007000e
jmp 0x4056f3
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00407bb0
mov dword [ebp - 4], 1
jmp 0x405691
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40569f
mov esi, 0x8007000e
jmp 0x4056da
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x4056bd
call fcn.00404c00
jmp 0x4056d8
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.004063d0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x4056f1
lea eax, [ebp]
call fcn.00407d00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00423324
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4078c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x438b4e
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x444600]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esp + 0x14], eax
mov dword [esi], vtable.CLoaderDlg.0
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov ecx, dword [0x445448]
mov dword [esi + 0x30], ecx
mov byte [esi + 0x34], 1
mov edx, dword [0x445448]
mov dword [esi + 0x38], edx
mov ecx, dword [0x445448]
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x44], eax
lea edx, [esi + 0x48]
push edx
mov byte [esp + 0x18], 2
call fcn.00409ff0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x408160
Capabilities:
Hide graphical window

Disassembly:
push ecx
cmp dword [esp + 8], 0
push edi
jle 0x408195
lea edi, [esi + 0x24]
push edi
call fcn.00403670
test al, al
je 0x408195
cmp byte [esi + 0x34], 0
je 0x408188
call fcn.00403a00
xor eax, eax
pop edi
pop ecx
ret 4
push esi
call fcn.00408280
xor eax, eax
pop edi
pop ecx
ret 4
mov eax, dword [esi + 4]
push 0
push 0x43ce1c
push 0x43ce28
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 4]
push 0
push 0x1388
push 0x1388
push edx
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
pop edi
pop ecx
ret 4

Function at 0x4081e0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
jle 0x40820d
lea eax, [esi + 0x24]
push eax
call fcn.00403b20
test al, al
je 0x4081ff
push esi
call fcn.00408280
xor eax, eax
ret 4
push 0
push 0x43ce50
push 0x43ce58
jmp 0x408219
push 0
push 0x43ce80
push str.Failed_to_Get_Info_
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
push 0
push 0x1388
push 0x1388
push eax
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
ret 4

Function at 0x408250
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push 0
push 0x1388
push 0x1388
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
ret