joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101de6f0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10248fa8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
jne 0x101de72b
mov esi, dword [edi]
mov ecx, ebx
call fcn.101db3c0
push eax
mov ecx, edi
call dword [esi + 0x90]
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x84]
mov ecx, ebx
call fcn.101db730
push eax
mov ecx, ebx
call fcn.101db350
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x101de790
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2734
je 0x101de790
cmp esi, 0x2733
je 0x101de790
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.101db890
push eax
push esi
mov dword [ebp - 4], 0
call fcn.101de860
add esp, 8
lea ecx, [ebp - 0x24]
call fcn.10008004
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x101df190
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10249900
push eax
mov dword fs:[0], esp
sub esp, 0x360
push ebx
push esi
mov esi, dword [ecx + 8]
push edi
cmp esi, 0xffffffff
je 0x101df342
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x164], 0
test al, 1
je 0x101df1f2
mov dword [ebp - 0x368], esi
mov dword [ebp - 0x36c], 1
test al, 2
je 0x101df206
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x268], 1
test al, 4
je 0x101df21a
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x164], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.101e1a70
lea eax, [esi + 1]
xor ebx, ebx
mov dword [ebp + 0xc], eax
nop dword [eax]
push dword [0x1024fc0c]
mov esi, dword [ebp - 0x10]
push dword [0x1024fc08]
mov edi, dword [ebp - 0x14]
push esi
push edi
call fcn.101e5340
push 0
push 0xf4240
push esi
push edi
mov dword [ebp - 0x34], eax
call fcn.101e5340
imul eax, eax, 0xf4240
lea ecx, [ebp - 0x2c]
sub edi, eax
mov dword [ebp - 0x30], edi
call fcn.101e1a20
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x36c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x101df302
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2714
jne 0x101df302
lea ecx, [ebp - 0x24]
call fcn.101e1a20
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
sbb eax, dword [ebp - 0x28]
push eax
push ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.10084060
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jg 0x101df2ee
jl 0x101df2e0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jae 0x101df2ee
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.101e1a90
jmp 0x101df2fa
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.10084060
lea ecx, [ebp - 0x24]
call fcn.10005500
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10005500
test esi, esi
jns 0x101df32c
cmp ebx, 0x2714
je 0x101df230
push ebx
call fcn.101de7d0
add esp, 4
test esi, esi
mov ecx, dword [ebp - 0xc]
setg al
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0
lea ecx, [ebp - 0x60]
call fcn.101d9f30
push 0x102bf53c
lea eax, [ebp - 0x60]
push eax
call fcn.101fc366
int3
Function at 0x101df363
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
cmp byte [esi + 0x21], 0
je 0x101df38b
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
or eax, dword [ecx + 4]
je 0x101df38b
mov eax, dword [esi]
push 1
push ecx
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x101df41c
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov ebp, dword [esp + 0x44]
push edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x101df402
push ebp
push dword [esp + 0x48]
push dword [esp + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp byte [esi + 0x20], 0
mov edi, eax
je 0x101df3c5
test edi, edi
jns 0x101df3f6
call ebx
cmp eax, 0x2714
je 0x101df398
test edi, edi
jns 0x101df3f6
call ebx
cmp eax, 0x2733
jne 0x101df3da
cmp byte [esi + 0x20], 0
jne 0x101df436
jmp 0x101df3f6
cmp eax, 0x274c
je 0x101df436
push eax
call fcn.101de7d0
add esp, 4
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x2c
ret 0xc
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x2c
ret 0xc
push 0
lea ecx, [esp + 0x14]
call fcn.101d9f30
push 0x102bf53c
lea eax, [esp + 0x14]
push eax
call fcn.101fc366
push 0
lea ecx, [esp + 8]
call fcn.101e0920
push 0x102bff18
lea eax, [esp + 8]
push eax
call fcn.101fc366
push eax
lea ecx, [esp + 0x14]
call fcn.101e0920
push 0x102bff18
lea eax, [esp + 0x14]
push eax
call fcn.101fc366
int3
Function at 0x101df450
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10249918
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x21], 0
je 0x101df498
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
or eax, dword [ecx + 4]
je 0x101df498
mov eax, dword [esi]
push 1
push ecx
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x101df56a
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], 0x80
nop word [eax + eax]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x101df552
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xe8]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp byte [esi + 0x20], 0
mov edi, eax
je 0x101df4ec
test edi, edi
jns 0x101df4f0
call ebx
cmp eax, 0x2714
je 0x101df4b0
test edi, edi
js 0x101df51c
push dword [ebp - 0x10]
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp + 0x14]
call fcn.101db090
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ebp - 4], 0
call fcn.101db230
lea ecx, [ebp + 0x14]
call fcn.101da9e0
jmp 0x101df53d
call ebx
cmp eax, 0x2733
jne 0x101df52d
cmp byte [esi + 0x20], 0
jne 0x101df582
jmp 0x101df53d
cmp eax, 0x274c
je 0x101df582
push eax
call fcn.101de7d0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push 0
lea ecx, [ebp - 0x3c]
call fcn.101d9f30
push 0x102bf53c
lea eax, [ebp - 0x3c]
push eax
call fcn.101fc366
push 0
lea ecx, [ebp - 0x3c]
call fcn.101e0920
push 0x102bff18
lea eax, [ebp - 0x3c]
push eax
call fcn.101fc366
push eax
lea ecx, [ebp - 0x68]
call fcn.101e0920
push 0x102bff18
lea eax, [ebp - 0x68]
push eax
call fcn.101fc366
int3

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

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
cmp byte [esi + 0x21], 0
je 0x101df5c7
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x18]
or eax, dword [ecx + 4]
je 0x101df5c7
mov eax, dword [esi]
push 2
push ecx
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x101df630
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov ebp, dword [esp + 0x44]
push edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x101df616
push ebp
push dword [esp + 0x48]
push dword [esp + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp byte [esi + 0x20], 0
mov edi, eax
je 0x101df601
test edi, edi
jns 0x101df60a
call ebx
cmp eax, 0x2714
je 0x101df5d4
test edi, edi
jns 0x101df60a
call fcn.101dee30
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x2c
ret 0xc
push 0
lea ecx, [esp + 0x14]
call fcn.101d9f30
push 0x102bf53c
lea eax, [esp + 0x14]
push eax
call fcn.101fc366
push 0
lea ecx, [esp + 8]
call fcn.101e0920
push 0x102bff18
lea eax, [esp + 8]
push eax
call fcn.101fc366
int3
Function at 0x101e7f32
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x1021a3a3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1021a222

Function at 0x1021fdfe
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1021fabe
Function at 0x402d28
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
call sub.kernel32.dll_WriteFile
test eax, eax
setne al
movsx eax, al
push eax
call fcn.00402bc8
mov esi, eax
cmp dword [0x407dc8], 0xffffffff
je 0x402d89
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x407dc4]
jne 0x402d89
lea eax, [ebp - 0x1c]
push eax
push dword [0x407dc4]
call sub.kernel32.dll_GetConsoleScreenBufferInfo
movsx eax, word [ebp - 0x18]
mov dword [0x407dd0], eax
movsx eax, word [ebp - 0x16]
mov dword [0x407dd4], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402ea0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push esi
push edi
mov edi, 3
push 0x4088e0
call fcn.00406008
mov esi, dword [eax]
push 0x4088e0
call fcn.00406008
mov dword [eax], 0x40
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x38c]
push eax
push 0
call fcn.00405870
call fcn.004056ec
lea eax, [ebp - 0x150]
push eax
push 1
call fcn.00405778
call fcn.0040432c
test eax, eax
jne 0x402fe1
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 0x40
push 0
call fcn.00405850
call fcn.0040432c
test eax, eax
jne 0x402f57
cmp word [ebp - 0x190], 0x5a4d
jne 0x402f57
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405794
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 2
push 0
call fcn.00405850
jmp 0x402f61
mov dword [ebp - 0x154], 0
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405794
call fcn.0040432c
test eax, eax
jne 0x402fc5
cmp word [ebp - 0x190], 0x4550
jne 0x402fc5
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x288]
push eax
push 0xf8
push 0
call fcn.00405850
call fcn.0040432c
test eax, eax
jne 0x402fc5
cmp dword [ebp - 0x288], 0x4550
jne 0x402fc5
cmp word [ebp - 0x22c], 3
jne 0x402fc5
mov edi, 2
lea eax, [ebp - 0x150]
push eax
call fcn.004057c4
push 0x4088d8
call fcn.00406008
mov dword [eax], 0
push 0x4088e0
call fcn.00406008
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403038
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
call sub.kernel32.dll_CreateThread
mov esi, eax
push esi
call sub.kernel32.dll_CloseHandle
test esi, esi
setne al
movsx eax, al
push eax
call fcn.00402bc8
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4030dc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
cmp dword [0x407e68], 0
je 0x4030fe
mov eax, dword [0x407e68]
mov dword [ebp - 4], eax
jmp 0x403193
push 0x104
call fcn.00404400
mov dword [ebp - 4], eax
push 0x104
push dword [ebp - 4]
push 0
call sub.kernel32.dll_GetModuleFileNameA
push dword [ebp - 4]
call fcn.00403ec8
inc eax
mov ebx, eax
call sub.kernel32.dll_GetCommandLineA
mov esi, eax
mov al, byte [esi]
dec al
cmp al, 0x1f
jbe 0x403143
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00403074
mov esi, eax
inc esi
push esi
call fcn.00403ec8
inc eax
mov edi, eax
lea eax, [ebp - 4]
push eax
mov eax, ebx
add eax, edi
inc eax
push eax
call fcn.00404460
call sub.kernel32.dll_AreFileApisANSI
test eax, eax
jne 0x403174
push edi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push esi
call sub.user32.dll_CharToOemBuffA
jmp 0x403181
push esi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push edi
call fcn.00404c40
mov eax, dword [ebp - 4]
add eax, ebx
add eax, edi
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov dword [0x407e68], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403270
Capabilities:
Contain obfuscated stackstrings
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov dword [ebp - 0x24], 0x52414853
mov dword [ebp - 0x20], 0x454d4445
mov dword [ebp - 0x1c], 0x5356354d
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0xb
call fcn.00404bb4
xor eax, eax
mov bl, 0
cmp dword [0x407e0c], 0
jne 0x4032be
push 0x407b5c
push 1
call fcn.00402ad4
mov dword [0x407e0c], eax
cmp dword [0x407e0c], 0
jne 0x4032d7
push 0x8000
call fcn.00404400
mov esi, eax
mov bl, 1
jmp 0x403311
lea eax, [ebp - 0x24]
push eax
push 0
push 6
call dword [0x407e0c]
test eax, eax
jne 0x403301
lea eax, [ebp - 0x24]
push eax
push 0x8000
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov bl, 1
push 0
push 0
push 0
push 6
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test bl, bl
je 0x40333a
push esi
push 0x8000
push 0xff
call fcn.00404c9c
push esi
push 0x24
push 0
call fcn.00404c9c
mov eax, esi
add eax, 0xc
push eax
call fcn.004044e8
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4036e8
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
call fcn.00403674
lea edx, [ebp - 0x400]
movzx ecx, word [ebp + 0x14]
dec ecx
xor esi, esi
jmp 0x403720
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov word [edx + 2], ax
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax]
mov word [edx], ax
inc dword [ebp + 0x18]
add edx, 4
inc esi
cmp ecx, esi
jge 0x403706
mov ax, word [ebp + 0x14]
mov word [ebp - 0x404], ax
mov word [ebp - 0x402], 1
mov word [ebp - 0x408], 0
mov word [ebp - 0x406], 0
mov ax, word [ebp + 0x10]
mov word [ebp - 0x410], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40e], ax
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0x14]
add ecx, eax
dec ecx
mov word [ebp - 0x40c], cx
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40a], ax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
push dword [ebp - 0x404]
lea eax, [ebp - 0x400]
push eax
push dword [0x407dc4]
call sub.kernel32.dll_WriteConsoleOutputA
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403ac8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x403ae8
mov al, byte [ebp - 4]
jmp 0x403aeb
mov al, byte [ebp + 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405b28
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
or edi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
xor esi, esi
mov edx, dword [0x4081bc]
add edx, 0x24
mov esi, edx
cmp dword [edx], 0xffffffff
je 0x405b66
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405b61
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 8]
jbe 0x405b61
mov esi, edx
add edx, 0x10
jmp 0x405b4a
mov edx, esi
cmp dword [edx], 0xffffffff
je 0x405c7a
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405c7a
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405c78
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
je 0x405c78
mov cl, byte [edx]
sub cl, 0x3c
jne 0x405bae
jmp 0x405c78
sub cl, 3
jne 0x405bc8
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x405c73
inc cl
jne 0x405bdc
movzx ecx, word [edx + 1]
add edi, ecx
add edx, 3
jmp 0x405c73
inc cl
jne 0x405bf0
movzx ecx, word [edx + 1]
add edi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x405c03
movzx ecx, byte [edx]
shr ecx, 6
add edi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x405c0d
mov esi, eax
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp + 0x10]
jl 0x405c6a
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x405c20
cmp byte [ebp - 0x25], 0
jne 0x405c68
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x14]
jle 0x405c56
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + ecx]
xor dl, 0xaa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], dl
jmp 0x405c31
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esi, dword [ebp - 0x18]
mov eax, esi
jmp 0x405c7a
jmp 0x405c78
mov esi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x25], 0
jmp 0x405ba0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406150
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.0040612c
call fcn.00403270
mov dword [0x4081bc], eax
lea edx, [eax + 0x18]
mov dword [0x40821c], edx
pop edx
call fcn.00405fac
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x4081e8], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4081fc], eax
mov dword [0x408224], eax
call fcn.00402ea0
cmp eax, 3
setb byte [0x4081c5]
call fcn.00403ec0
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x4063dc
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]
Function at 0x401cd5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x81407c]
jne 0x401cdf
repz ret
jmp fcn.00402a42

Function at 0x40831a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x81407c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405dcd
and dword [ebp - 0x14], 0
cmp dword [0x816f6c], 0
mov dword [ebp - 0x18], eax
jne 0x4083cd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408475
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408475
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x816f6c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x816f70], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x816f74], eax
call edi
push eax
call esi
mov dword [0x816f7c], eax
test eax, eax
je 0x4083cd
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x816f78], eax
mov eax, dword [0x816f78]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408426
cmp dword [0x816f7c], ecx
je 0x408426
push eax
call esi
push dword [0x816f7c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408426
test ebx, ebx
je 0x408426
call edi
test eax, eax
je 0x40841d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40841d
test byte [ebp - 8], 1
jne 0x408426
or dword [ebp + 0x10], 0x200000
jmp 0x408459
mov eax, dword [0x816f70]
cmp eax, dword [ebp - 0x18]
je 0x408459
push eax
call esi
test eax, eax
je 0x408459
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408459
mov eax, dword [0x816f74]
cmp eax, dword [ebp - 0x18]
je 0x408459
push eax
call esi
test eax, eax
je 0x408459
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x816f6c]
call esi
test eax, eax
je 0x408475
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408477
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401cd5
leave
ret
Function at 0x715370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x71538e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x73e074
push ecx
mov edi, eax
call fcn.00729198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7153cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0072902e
push esi
call fcn.00728fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x718850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x7188ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x743720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7188ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.007291e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x7188ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x743720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x71892a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.0072a082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x718957
mov word [eax], si
add eax, 2
push eax
call fcn.0072a030
add esp, 4
jmp 0x718959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x7188ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7188b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x718ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret