joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401580
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x418
mov eax, dword [0x444e3c]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x428]
push edi
push 0x1ff
lea eax, [esp + 0x29]
push 0
xor bl, bl
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 4
mov byte [esp + 0x30], bl
call fcn.00421410
add esp, 0xc
push str.RegPath_VHLD
call fcn.004139e0
mov ecx, eax
call fcn.004136d0
push eax
lea ecx, [esp + 0x28]
push str.Software_sMACHINE_ID
push ecx
call fcn.00420f5a
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x30]
push eax
push closesocket
call edi
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4016c3
push 0x1ff
lea ecx, [esp + 0x229]
push 0
push ecx
mov byte [esp + 0x230], bl
call fcn.00421410
add esp, 0xc
push str.RegPath_Installer
call fcn.004139e0
mov ecx, eax
call fcn.004136d0
mov esi, eax
push esi
lea edx, [esp + 0x228]
push str._sMACHINE_ID
push edx
call fcn.00420f5a
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
mov bl, 1
call ebp
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push esi
push closesocket
call edi
test eax, eax
je 0x4016bf
mov edx, dword [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.Software_reefclubinstallerMACHINE_ID
push closesocket
call edi
test eax, eax
je 0x4016bf
mov ecx, dword [esp + 0x10]
push ecx
call ebp
call fcn.00401460
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
jmp 0x401755
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.MACHINE_ID
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4016f4
mov eax, dword [esp + 0x10]
push eax
call ebp
call fcn.00401460
mov dword [esi], eax
jmp 0x401755
test bl, bl
je 0x40174e
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov ecx, dword [esp + 0x10]
je 0x40172a
push ecx
jmp 0x401753
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push esi
push eax
push 0
push str.MACHINE_ID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40174e
mov edx, dword [esp + 0x10]
push edx
jmp 0x401753
mov eax, dword [esp + 0x10]
push eax
call ebp
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004213c3
add esp, 0x418
ret
Function at 0x401770
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x436cd8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x444e3c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00403ac0
xor edi, edi
push 0x3ae0
mov dword [esp + 0x1c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
call fcn.00416c38
push 0x3ae0
mov dword [esi + 0x20], eax
call fcn.00416c38
push 0x64
mov dword [esi + 0x1c], eax
call fcn.00416c38
push 0x3ae0
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x20]
push edi
push eax
call fcn.00421410
mov ecx, dword [esi + 0x1c]
push 0x3ae0
push edi
push ecx
call fcn.00421410
mov edx, dword [esi + 0x24]
push 0x64
push edi
push edx
call fcn.00421410
add esp, 0x30
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4018d0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0
push edi
lea edi, [esi + 0x28]
jne 0x401940
push edi
call fcn.0040e3a0
add esp, 4
test al, al
jne 0x4018fc
push str.Failed_in_CClientReq::CreateTcpSocket__
call fcn.00405da0
add esp, 4
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x24]
push 0x2710
push eax
push ecx
push edi
call fcn.0040e560
add esp, 0x10
test al, al
jne 0x401940
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2748
je 0x401940
push str.Failed_in_CClientReq::SyncConnectWithTimeOut__
call fcn.00405da0
add esp, 4
push str.ERROR_:_Cant_connect_to_SDL___ClientReq_line_110_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor al, al
pop esi
ret
pop edi
mov al, 1
pop esi
ret

Function at 0x401950
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push edi
push 4
lea eax, [esp + 0xc]
push eax
mov esi, ecx
mov ecx, dword [esi + 0x28]
push 0x1005
lea edi, [esi + 0x28]
push 0xffff
push ecx
mov dword [esp + 0x1c], 0x1388
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x401985
pop edi
xor al, al
pop esi
pop ecx
ret
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x20]
push edx
push eax
push edi
call fcn.0040e3f0
add esp, 0xc
test al, al
pop edi
setne al
pop esi
pop ecx
ret
Function at 0x4019a0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push ebp
push 4
lea eax, [esp + 0xc]
push eax
mov ebx, ecx
mov ecx, dword [ebx + 0x28]
push 0x1006
lea ebp, [ebx + 0x28]
push 0xffff
push ecx
mov dword [esp + 0x1c], 0x2710
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x4019d5
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
xor esi, esi
push edi
lea esp, [esp]
mov eax, dword [ebx + 0x1c]
mov edx, 0x3ae0
sub edx, esi
push edx
add eax, esi
push eax
push ebp
call fcn.0040e3c0
add esp, 0xc
test al, al
je 0x401a2c
mov ecx, dword [ebx + 0x1c]
add ecx, esi
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401a05
sub eax, edi
push 0x439738
push ecx
add esi, eax
call fcn.00421ce2
add esp, 8
test eax, eax
je 0x4019e0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret

Function at 0x403550
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
mov eax, dword [0x444e3c]
xor eax, esp
mov dword [esp + 0x128], eax
push ebp
mov ebp, dword [esp + 0x138]
push edi
mov edi, dword [esp + 0x138]
test edi, edi
je 0x40363f
cmp byte [edi], 0
je 0x40363f
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403590
push ebx
push esi
sub eax, edx
push 0x124
mov ebx, eax
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0
call fcn.00421410
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4035e6
xor al, al
pop esi
pop ebx
pop edi
pop ebp
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004213c3
add esp, 0x12c
ret
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x403634
lea ecx, [ecx]
lea edx, [esp + 0x34]
test edx, edx
je 0x403625
push ebx
mov eax, edx
push edi
push eax
call fcn.0042292d
add esp, 0xc
test eax, eax
jne 0x403625
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00403470
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403600
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4035cd
mov ecx, dword [esp + 0x130]
pop edi
pop ebp
xor ecx, esp
xor al, al
call fcn.004213c3
add esp, 0x12c
ret
Function at 0x403720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x436e58
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x444e3c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [esp + 0x78]
xor esi, esi
cmp eax, esi
je 0x4038e9
cmp byte [eax], 0
je 0x4038e9
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x2c]
push ecx
push eax
mov dword [esp + 0x78], esi
call fcn.00403550
add esp, 8
test al, al
jne 0x40378b
mov eax, dword [esp + 0x30]
cmp eax, esi
jmp 0x4038de
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.00403700
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 8
push 0x20
call edi
mov ebx, eax
push 0x21
add ebx, ebx
call edi
mov esi, eax
push 4
add esi, esi
call edi
add eax, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x24]
cmp esi, eax
jbe 0x4037de
call fcn.004225ea
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
lea esp, [esp]
cmp dword [esp + 0x20], eax
mov edi, eax
jbe 0x4037fd
call fcn.004225ea
test ebp, ebp
je 0x403809
lea ecx, [esp + 0x1c]
cmp ebp, ecx
je 0x40380e
call fcn.004225ea
cmp esi, edi
je 0x4038b5
test ebp, ebp
jne 0x40381f
call fcn.004225ea
cmp esi, dword [ebp + 8]
jb 0x403829
call fcn.004225ea
mov eax, dword [esi]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowPlacement]
cmp eax, 1
jne 0x40385f
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x7c]
sub ecx, ebx
cmp ecx, dword [eax]
jne 0x40385f
mov edx, dword [esp + 0x64]
sub edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x78]
cmp edx, dword [eax + 4]
je 0x403875
cmp esi, dword [ebp + 8]
jb 0x403869
call fcn.004225ea
mov eax, dword [esp + 0x24]
add esi, 4
jmp 0x4037f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], esi
call fcn.00401ec0
mov eax, dword [eax]
mov ecx, dword [esp + 0x80]
mov dword [ecx], eax
lea ecx, [esp + 0x1c]
call fcn.00402860
lea ecx, [esp + 0x2c]
call fcn.00402860
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x18], esi
je 0x4038ca
push eax
call fcn.00416c3d
add esp, 4
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
cmp eax, ecx
je 0x4038e9
push eax
call fcn.00416c3d
add esp, 4
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
Function at 0x403990
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push esi
mov esi, 1
jne 0x4039a5
mov eax, 2
pop esi
ret
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40399e
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40399e
cmp eax, 0xffffffff
jne 0x4039c1
mov eax, 7
pop esi
ret
push edi
mov edi, dword [esp + 0x18]
push 0
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop edi
jne 0x4039dc
mov esi, 2
mov eax, esi
pop esi
ret

Function at 0x4039e0
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push edi
mov edi, dword [esp + 0x14]
test edi, edi
mov dword [esp + 8], 0
mov ebx, 1
jne 0x403a01
pop edi
mov eax, 2
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, ebp
sub eax, 1
je 0x403a34
sub eax, 1
je 0x403a28
sub eax, 1
je 0x403a21
pop ebp
pop edi
mov eax, 5
pop ebx
pop ecx
ret
mov eax, 0x40000000
jmp 0x403a39
mov eax, 0x40000000
mov ecx, 2
jmp 0x403a3e
mov eax, closesocket
mov ecx, 3
push esi
push 0
push 0x80
push ecx
push 0
push 3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x18]
mov dword [esi], eax
jne 0x403a71
push 2
push edi
push esi
call fcn.00403900
mov ebx, eax
add esp, 0xc
cmp ebx, 1
jne 0x403ab6
cmp ebp, 3
jne 0x403ab6
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x403a9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
pop edi
mov eax, 7
pop ebx
pop ecx
ret
mov edx, dword [esi]
push 0
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x403ab6
mov ebx, 7
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x403d20
Capabilities:
Connect to http server

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
push eax
push esi
call fcn.00422d57
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push 3
push 0x43985e
push 0x43985e
push ecx
mov byte [edi + esi], 0
mov edx, dword [esi + 0x108]
push esi
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 0x10c], eax
jne 0x403d7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x110], eax
pop edi
mov eax, 0xd
pop esi
ret 0xc
pop edi
mov eax, 1
pop esi
ret 0xc
Function at 0x403dc0
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push edi
mov edi, dword [esp + 0x44]
test edi, edi
jne 0x403dd6
mov eax, 0xa
pop edi
add esp, 0x3c
ret
push esi
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00421410
mov esi, dword [esp + 0x58]
mov eax, dword [esi]
add esp, 0xc
test eax, eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0x1c], 1
je 0x403e06
mov dword [esp + 0x18], eax
push edi
call fcn.00422f43
add esp, 4
lea ecx, [esp + 8]
push ecx
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x403e2d
pop esi
mov eax, 0xa
pop edi
add esp, 0x3c
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x54]
mov cx, word [esp + 0x20]
mov dword [esi], edx
mov edx, dword [esp + 0x50]
mov word [eax], cx
mov eax, dword [esp + 0x1c]
pop esi
mov dword [edx], eax
mov eax, 1
pop edi
add esp, 0x3c
ret

Function at 0x403e60
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push edi
mov edi, dword [esp + 0x44]
test edi, edi
jne 0x403e76
mov eax, 0xa
pop edi
add esp, 0x3c
ret
push esi
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00421410
mov esi, dword [esp + 0x58]
mov eax, dword [esi]
add esp, 0xc
test eax, eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0x38], 1
je 0x403ea6
mov dword [esp + 0x34], eax
push edi
call fcn.00422f43
add esp, 4
lea ecx, [esp + 8]
push ecx
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x403ecd
pop esi
mov eax, 0xa
pop edi
add esp, 0x3c
ret
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
mov dword [esi], edx
pop esi
mov dword [eax], ecx
mov eax, 1
pop edi
add esp, 0x3c
ret

Function at 0x404000
Capabilities:
Check http status code

Disassembly:
sub esp, 0x108
mov eax, dword [0x444e3c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
lea edx, [esp]
push edx
push 0x13
push eax
call fcn.00403f10
cmp eax, 1
jne 0x404050
lea eax, [esp]
push eax
call fcn.00420fd5
add esp, 4
cmp eax, 0xc8
je 0x40404b
cmp eax, 0xce
mov eax, 0x14
jne 0x404050
mov eax, 1
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004213c3
add esp, 0x108
ret 4
Function at 0x404070
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0x414
mov eax, dword [0x444e3c]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x41c]
push esi
push edi
mov edi, dword [esp + 0x420]
push 2
push eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.004039e0
mov esi, eax
add esp, 0xc
cmp esi, 1
jne 0x40413b
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0xc]
push ecx
push 0x400
lea edx, [esp + 0x24]
push edx
push edi
call ebx
test eax, eax
je 0x40413a
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40413a
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00403990
mov esi, eax
add esp, 0x10
cmp esi, 1
jne 0x40413a
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00403ef0
test eax, eax
je 0x404135
lea edx, [esp + 0xc]
push edx
push 0x400
lea eax, [esp + 0x24]
push eax
push edi
call ebx
test eax, eax
jne 0x4040e4
jmp 0x40413a
mov esi, 0x12
pop ebx
lea ecx, [esp + 0xc]
push ecx
call fcn.00403960
mov ecx, dword [esp + 0x41c]
add esp, 4
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004213c3
add esp, 0x414
ret 8

Function at 0x404170
Capabilities:
Send data
Send http request

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
push ebx
lea eax, [esp + 0x10]
mov ebx, ecx
push eax
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x14], 0x7530
mov dword [esp + 0x10], 0
call fcn.00403e60
add esp, 0xc
cmp eax, 1
jne 0x40426f
mov eax, dword [esp + 4]
mov ecx, dword [ebx + 0x10c]
push esi
push 0
push 0x4480000
push 0
push 0
push 0
push eax
push 0x439898
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x4041ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x110], eax
pop esi
mov eax, 0xf
pop ebx
add esp, 8
ret 0xc
push edi
push 4
lea edx, [esp + 0x14]
push edx
push 6
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x404221
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x110], eax
mov edi, 0xf
jmp 0x40424d
push esi
mov ecx, ebx
call fcn.00404000
mov edi, eax
cmp edi, 1
jne 0x40424d
cmp dword [esp + 0x20], 0
jne 0x40423e
mov eax, dword [esp + 0x1c]
push eax
jmp 0x404243
mov ecx, dword [esp + 0x1c]
push ecx
push esi
mov ecx, ebx
call fcn.00404070
mov edi, eax
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestA]
cmp edi, 7
je 0x40426b
cmp edi, 8
je 0x40426b
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
Function at 0x406090
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x21], 0
je 0x4060a1
xor al, al
pop esi
pop ecx
ret 4
push edi
lea edi, [esi + 0x24]
push edi
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
push 0
lea eax, [esp + 0xc]
push eax
push 0x64
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4060e9
mov eax, dword [esi + 8]
test eax, eax
je 0x4060e5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov byte [esi + 0x21], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 0x21], 0
pop edi
sete al
pop esi
pop ecx
ret 4
Function at 0x406a20
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x78], ecx
mov ecx, esi
mov dword [esi + 0x6c], eax
call fcn.00406740
test eax, eax
jne 0x406a48
xor al, al
pop esi
add esp, 0xc
ret 8
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call edi
push 0xfffffffffffffff6
mov dword [esi + 0x18], eax
call edi
push 0
lea edx, [esp + 0x10]
push edx
lea edi, [esi + 0x10]
push edi
lea ebx, [esi + 0xc]
push ebx
mov dword [esi + 0x14], eax
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x406a9a
pop edi
pop ebx
xor al, al
pop esi
add esp, 0xc
ret 8
push ebp
push 0
lea ecx, [esp + 0x14]
push ecx
lea ebp, [esi + 8]
lea eax, [esi + 4]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x406b6d
mov edx, dword [edi]
mov edi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push edx
push 0xfffffffffffffff5
call edi
test eax, eax
je 0x406b6d
mov eax, dword [esi + 4]
push eax
push 0xfffffffffffffff6
call edi
test eax, eax
je 0x406b6d
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
push 0
call edi
mov ecx, dword [ebx]
push eax
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x406b6d
push 2
push 0
push 0
push 0
call edi
mov edx, dword [ebp]
push eax
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0
mov edi, eax
mov eax, dword [ebp]
mov ebp, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 1
push eax
call ebp
mov ecx, dword [ebx]
push 0
push 1
push ecx
call ebp
test edi, edi
je 0x406b6d
push esi
push esi
push 0x406820
call fcn.0040dc20
add esp, 0xc
test eax, eax
mov dword [esi + 0x3c], eax
je 0x406b6d
lea edx, [esp + 0x20]
push edx
push esi
push 0x406920
mov dword [esp + 0x2c], 0
call fcn.0040dc20
add esp, 0xc
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x406b79
pop ebp
pop edi
pop ebx
xor al, al
pop esi
add esp, 0xc
ret 8
add esi, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop ebp
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0xc
ret 8
Function at 0x407110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407129
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407164
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x407160
lea ebx, [ebx]
cmp esi, eax
jae 0x407164
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407150
cmp esi, eax
jb 0x40716a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4072a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x436ffe
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x444e3c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
mov eax, 1
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], al
mov byte [esi + 0x31], al
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov byte [esi + 0x8c], al
mov byte [esi + 0x8d], al
mov dword [esi + 0x90], eax
lea ecx, [esi + 0xdc]
mov dword [esi + 0xd8], ebx
call fcn.0040d700
push 0x3a98
mov dword [esp + 0x1c], ebx
call fcn.00416c38
push 0x3a98
mov dword [esi + 0x80], eax
call fcn.00416c38
push 0x3a98
mov dword [esi + 0x88], eax
call fcn.00416c38
push 0x3a98
mov dword [esi + 0x4c], eax
call fcn.00416c38
push 0x3a98
mov dword [esi + 0x84], eax
call fcn.00416c38
push 0x16
mov dword [esi + 0x94], eax
call fcn.00416c38
push 0x14
mov dword [esi + 0xc8], eax
call fcn.00416c38
push 0x14
mov dword [esi + 0xec], eax
call fcn.00416c38
push 0x3a98
mov dword [esi + 0xf0], eax
mov eax, dword [esi + 0x80]
push ebx
push eax
call fcn.00421410
mov ecx, dword [esi + 0x88]
push 0x3a98
push ebx
push ecx
call fcn.00421410
mov edx, dword [esi + 0x84]
push 0x3a98
push ebx
push edx
call fcn.00421410
mov eax, dword [esi + 0x94]
add esp, 0x44
push 0x3a98
push ebx
push eax
call fcn.00421410
mov ecx, dword [esi + 0xc8]
add esp, 0xc
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov word [ecx + 0x14], ax
mov dword [esi + 0xf4], ebx
call fcn.00401d20
cmp dword [eax], ebx
mov eax, dword [esi + 0xec]
jne 0x407452
mov ecx, dword [str.exep]
mov dword [eax], ecx
movzx edx, byte [0x43a148]
mov byte [eax + 4], dl
mov eax, dword [esi + 0xf0]
mov ecx, dword [str.smdp]
mov dword [eax], ecx
movzx edx, byte [0x43a140]
mov byte [eax + 4], dl
jmp 0x407464
mov dword [eax], 0x657865
mov ecx, dword [esi + 0xf0]
mov dword [ecx], 0x646d73
mov byte [esi + 0xb0], bl
mov dword [0x44b094], ebx
call fcn.00401d20
mov dword [eax + 4], 0x9c40
call fcn.00401d20
cmp dword [eax], ebx
jne 0x407491
call fcn.00401d20
mov dword [eax + 4], 0x4e20
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret