joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d3eb
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
sub dword [0x49323c], 1
jne 0x44d3fa
call fcn.004451e8
mov ecx, dword [0x4a4d04]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4a4d04], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [esp], edx
fild dword [esp]
test edx, edx
jge 0x44d443
fadd qword [0x48d260]
fmul qword [0x48d268]
pop ecx
ret

Function at 0x44d892
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x44d8a4
push eax
call fcn.0044d73d
mov eax, dword [esi + 0x24]
pop esi
test eax, eax
je 0x44d8b5
mov dword [esp + 4], eax
jmp fcn.0044d73d
ret 4

Function at 0x44d8b8
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x20], 0
jne 0x44d8e2
push esi
call fcn.00437241
test al, al
je 0x44d8e2
mov eax, dword [esi + 8]
push eax
call fcn.00445651
add esp, 4
push eax
mov dword [esi + 0x20], eax
call fcn.0044d7aa
cmp dword [esi + 0x24], 0
jne 0x44d915
push esi
call fcn.00437225
test al, al
je 0x44d915
push esi
call fcn.00437215
test al, al
jne 0x44d915
mov ecx, dword [esi + 0x10]
push ecx
call fcn.00445651
add esp, 4
mov dword [esi + 0x24], eax
pop esi
mov dword [esp + 4], eax
jmp fcn.0044d7aa
pop esi
ret 4

Function at 0x44dc0e
Capabilities:
Delete directory
Delete file

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x22c
lea eax, [esp + 0x20]
call fcn.00411390
lea eax, [esp + 0x20]
push eax
call fcn.00438634
add esp, 4
test al, al
jne 0x44dc39
add esp, 0x22c
ret
push ebx
xor ebx, ebx
cmp byte [esp + 0x238], bl
jne 0x44dc5d
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
setne al
pop ebx
add esp, 0x22c
ret
lea edx, [esp + 0x24]
push edx
call fcn.004127e5
xor ecx, ecx
mov word [esp + eax*2 + 0x2a], cx
add esp, 4
lea ecx, [esp + 4]
lea edx, [esp + 0x24]
mov eax, 0x614
push ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
mov word [esp + 0x18], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
pop ebx
add esp, 0x22c
ret
Function at 0x44dcb7
Capabilities:
Copy file
Move file

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x438
push ebx
mov bl, byte [esp + 0x448]
lea eax, [esp + 0x230]
call fcn.00411390
mov ecx, dword [esp + 0x444]
lea eax, [esp + 0x24]
call fcn.00411390
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x44dd36
test bl, bl
je 0x44dd5f
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x234]
push eax
call fcn.004148f4
add esp, 8
test eax, eax
je 0x44dd2c
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x234]
push edx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
mov al, 1
pop ebx
add esp, 0x438
ret
lea eax, [esp + 0x230]
push eax
call fcn.00438634
add esp, 4
test al, al
je 0x44dd5f
lea ecx, [esp + 0x24]
push ecx
call fcn.00438634
add esp, 4
test al, al
je 0x44dd69
test bl, bl
jne 0x44dd8b
xor al, al
pop ebx
add esp, 0x438
ret
lea edx, [esp + 0x24]
push edx
call fcn.0043822e
add esp, 4
test al, al
je 0x44dd5f
lea eax, [esp + 0x24]
push eax
call fcn.00438634
add esp, 4
test al, al
je 0x44dd5f
lea ecx, [esp + 0x230]
push str..
push ecx
call fcn.00412b73
lea edx, [esp + 0x238]
push edx
call fcn.004127e5
lea edx, [esp + 0x30]
xor ecx, ecx
push edx
mov word [esp + eax*2 + 0x242], cx
call fcn.004127e5
xor ecx, ecx
mov word [esp + eax*2 + 0x36], cx
lea edx, [esp + 0x240]
lea eax, [esp + 0x34]
mov dword [esp + 0x1c], edx
add esp, 0x10
mov dword [esp + 0x10], eax
xor eax, eax
lea edx, [esp + 4]
mov ecx, 0x614
push edx
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
pop ebx
add esp, 0x438
ret
Function at 0x44de17
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10b4
call fcn.00426a60
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [esp + 0x438]
xor bl, bl
call fcn.00411390
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x648]
call fcn.00411390
lea eax, [esp + 0x648]
push eax
lea ecx, [esp + 0x43c]
push ecx
call fcn.0043858d
lea edx, [esp + 0x440]
push edx
mov byte [esp + 0x1b], al
call fcn.00438634
add esp, 0xc
test al, al
je 0x44de8c
lea eax, [esp + 0x438]
push str..
push eax
call fcn.00412b73
add esp, 8
lea ecx, [esp + 0x648]
push ecx
call fcn.00438634
add esp, 4
test al, al
je 0x44deb5
lea edx, [esp + 0x648]
push str..
push edx
call fcn.00412b73
add esp, 8
lea eax, [esp + 0xcb0]
push eax
lea ecx, [esp + 0xebc]
push ecx
lea edx, [esp + 0xab0]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x448]
push ecx
call fcn.004152b0
add esp, 0x14
lea edx, [esp + 0x858]
push edx
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
mov byte [esp + 0xe], 1
cmp esi, 0xffffffff
je 0x44e06b
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
cmp byte [esp + 0xe], 1
jne 0x44e06b
test byte [esp + 0x858], 0x10
jne 0x44e04b
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x64c]
push edx
lea eax, [esp + 0xcb8]
push eax
lea ecx, [esp + 0xec4]
push ecx
lea edx, [esp + 0x894]
push edx
call fcn.004383e9
add esp, 0x14
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00412ba1
lea edx, [esp + 0xab0]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00412b73
lea ecx, [esp + 0x894]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00412b73
lea eax, [esp + 0x240]
push eax
call fcn.00438692
add esp, 0x1c
test al, al
je 0x44dfc9
cmp byte [ebp + 0x10], 0
je 0x44e022
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x44e032
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp + 0x14], 1
jne 0x44e00d
cmp byte [esp + 0xf], 0
jne 0x44dfeb
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
jmp 0x44e01e
push 0
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x20]
push ecx
call edi
test eax, eax
je 0x44e022
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x44e01e
push 0
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x20]
push ecx
call edi
test eax, eax
jne 0x44e049
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x228]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x44e022
mov bl, 1
lea ecx, [esp + 0x858]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x44df0e
mov byte [esp + 0xe], al
jmp 0x44df0e
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e07b
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa88
mov ecx, dword [ebp + 8]
push ebx
push esi
lea eax, [esp + 0x18]
mov byte [esp + 0xf], 0
call fcn.00411390
lea eax, [esp + 0x18]
push eax
call fcn.00438634
add esp, 4
test al, al
je 0x44e0bd
lea ecx, [esp + 0x18]
push str..
push ecx
call fcn.00412b73
add esp, 8
lea edx, [esp + 0x680]
push edx
lea eax, [esp + 0x88c]
push eax
lea ecx, [esp + 0x480]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004152b0
add esp, 0x14
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
mov bl, 1
cmp esi, 0xffffffff
je 0x44e182
cmp bl, 1
jne 0x44e182
test byte [esp + 0x228], 0x10
jne 0x44e15c
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x17], bl
call fcn.00412ba1
lea edx, [esp + 0x480]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00412b73
lea ecx, [esp + 0x264]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00412b73
add esp, 0x18
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
jne 0x44e173
lea ecx, [esp + 0x228]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x44e103
xor bl, bl
jmp 0x44e103
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, byte [esp + 0xf]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456375
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2020
call fcn.00426a60
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.004071d0
lea ecx, [esp + 0x20]
call fcn.004071d0
mov eax, dword [esp + 0x2034]
push eax
xor ebp, ebp
call fcn.0045155e
mov esi, eax
movzx eax, word [esi]
xor bl, bl
test ax, ax
je 0x4564a0
nop
inc ebp
cmp ax, 0x25
jne 0x456475
cmp word [esi + ebp*2], ax
jne 0x4563d9
push 0x25
lea eax, [esp + 0x14]
mov bl, 1
call fcn.00402f80
inc ebp
jmp 0x45647f
push 0x4858e8
lea eax, [esp + 0x24]
call fcn.00401cf0
movzx eax, word [esi + ebp*2]
cmp ax, 0x25
je 0x456413
lea esp, [esp]
test ax, ax
je 0x456413
movzx eax, ax
push eax
lea eax, [esp + 0x24]
call fcn.00402f80
movzx eax, word [esi + ebp*2 + 2]
inc ebp
cmp ax, 0x25
jne 0x4563f5
cmp word [esi + ebp*2], 0
je 0x4564bf
mov eax, dword [esp + 0x20]
push 0xfff
lea edx, [esp + 0x34]
push edx
xor ecx, ecx
push eax
inc ebp
mov word [esp + 0x3c], cx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
lea eax, [esp + 0x10]
je 0x456450
lea edi, [esp + 0x30]
call fcn.004013b0
mov bl, 1
jmp 0x45647f
mov edi, 0x48c550
mov bl, 1
call fcn.004013b0
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x14]
call fcn.004072b0
lea eax, [esp + 0x10]
call fcn.004013b0
jmp 0x45647f
push eax
lea eax, [esp + 0x14]
call fcn.00402f80
movzx eax, word [esi + ebp*2]
test ax, ax
jne 0x4563b5
test bl, bl
je 0x4564a0
mov esi, dword [esp + 0x2034]
lea edi, [esp + 0x10]
call fcn.0040fa60
lea ecx, [esp + 0x20]
call fcn.00402130
lea ecx, [esp + 0x10]
call fcn.00402130
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2020
ret 4
mov edi, 0x48c550
lea eax, [esp + 0x10]
call fcn.004013b0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
call fcn.004072b0
jmp 0x456490
Function at 0x45650d
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
sub esp, 0x264
push ebp
mov ebp, dword [esp + 0x278]
push esi
mov esi, dword [esp + 0x274]
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
call fcn.004071d0
lea ecx, [esp + 0x18]
call fcn.004071d0
lea ecx, [esp + 0x38]
call fcn.004071d0
push str.SOFTWAREClasses_
lea eax, [esp + 0x2c]
call fcn.00401cf0
mov edi, dword [esp + 0x274]
lea eax, [esp + 0x28]
call fcn.004013b0
mov edi, str.CLSID
lea eax, [esp + 0x28]
call fcn.004013b0
push 0x4858e8
lea eax, [esp + 0x1c]
call fcn.00401cf0
test esi, esi
je 0x4565b3
cmp word [esi], 0x5c
je 0x4565b3
cmp word [esi + 2], 0x5c
je 0x4565b3
push 0x48b74c
lea eax, [esp + 0x1c]
call fcn.00401cf0
mov edi, esi
lea eax, [esp + 0x18]
call fcn.004013b0
test ebp, ebp
je 0x456611
push 0x20
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00414700
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea esi, [esp + 0x3c]
mov dword [esp + 0x50], 0
call fcn.0040f400
mov edi, str.IPC_
mov eax, esi
call fcn.004013b0
mov eax, dword [esp + 0x284]
mov edx, dword [esp + 0x38]
push 0
push ebp
push eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x6c], edx
call sub.MPR.dll_WNetAddConnection2W
mov esi, eax
test esi, esi
jne 0x4566c4
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x4566c4
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x4566bd
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x6c]
push edx
push 0
push 0
push 0
push eax
mov dword [esp + 0x28], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4566b6
mov eax, dword [esp + 0x10]
shr eax, 1
xor ecx, ecx
lea edi, [esp + 0x68]
mov dword [esp + 0x10], eax
mov word [esp + eax*2 + 0x68], cx
call fcn.004113d0
mov edx, dword [esp + 0x27c]
mov edi, eax
push edx
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
mov esi, eax
call fcn.00414cd3
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call ebp
lea ecx, [esp + 0x38]
call fcn.00402130
lea ecx, [esp + 0x18]
call fcn.00402130
lea ecx, [esp + 0x28]
call fcn.00402130
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x264
ret
Function at 0x479940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
mov ecx, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x48]
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], ebx
mov edi, ecx
cmp byte [0x4a56e1], bl
je 0x479ad8
mov eax, dword [0x4a56e4]
cmp eax, ebx
je 0x479ad8
mov edx, 3
mov word [eax + 0x38], dx
mov dword [eax + 0x40], ecx
mov word [eax + 0x98], dx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, dword [0x4a56e4]
mov dword [edx + 0xa0], eax
mov eax, 3
mov word [edx + 0xa8], ax
mov ecx, dword [ebp + 0xec]
push ecx
call fcn.004397dc
mov dword [edx + 0xb0], eax
cmp esi, ebx
je 0x479a58
mov ecx, dword [esi + 4]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
mov eax, 8
mov word [esp + 0x20], ax
lea eax, [esp + 0x20]
push eax
add edx, 0x68
push edx
mov dword [esp + 0x30], ecx
call ebx
mov eax, dword [0x4a56e4]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x20]
push edx
add eax, 0x58
push eax
mov dword [esp + 0x30], ecx
call ebx
mov eax, dword [0x4a56e4]
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x20]
push edx
add eax, 0x78
push eax
mov dword [esp + 0x30], ecx
call ebx
mov eax, dword [0x4a56e4]
mov ecx, 3
mov word [eax + 0x88], cx
mov edx, dword [esi + 0x10]
mov dword [eax + 0x90], edx
mov word [eax + 0xb8], cx
movzx ecx, word [esi]
test cx, cx
je 0x479a49
movzx esi, cx
jmp 0x479a4c
mov esi, dword [esi + 0x1c]
mov dword [eax + 0xc0], esi
test esi, esi
je 0x479a58
mov edi, esi
mov eax, dword [esp + 0x50]
test eax, eax
je 0x479a6d
mov edi, eax
lea ebx, [esp + 0x10]
call fcn.0040fb10
jmp 0x479a8c
push edi
lea edx, [esp + 0x34]
push edx
call fcn.0044d05e
mov edi, eax
lea esi, [esp + 0x10]
call fcn.0040fa60
lea ecx, [esp + 0x30]
call fcn.00402130
mov eax, dword [0x4a56e4]
add eax, 0x48
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00478220
mov ecx, dword [0x4a56e4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
add esp, 8
call eax
mov edx, dword [ebp]
mov ecx, dword [esp + 0x48]
mov eax, dword [edx + 4]
push 0
push ecx
add eax, ebp
call fcn.00403c50
lea esi, [esp + 0x10]
call fcn.00404420
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x14
mov eax, dword [ebp]
mov eax, dword [eax + 4]
push ebx
push ecx
add eax, ebp
call fcn.00403c50
cmp byte [esp + 0x54], bl
je 0x479ac3
lea esi, [esp + 0x10]
call fcn.00404420
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30
ret 0x14
Function at 0x404a1d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407360
cmp edx, dword [eax]
je 0x404a3f
add eax, 8
inc ecx
cmp eax, 0x4073f0
jl 0x404a30
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407360]
jne 0x404b6d
mov eax, dword [0x40770c]
cmp eax, 1
je 0x404b47
test eax, eax
jne 0x404a70
cmp dword [0x4072b0], 1
je 0x404b47
cmp edx, 0xfc
je 0x404b6d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404aa7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004052d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405440
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404aea
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405440
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406398
push edi
call fcn.00405880
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004052d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004052e0
lea eax, [ebp - 0xa0]
push 0x406378
push eax
call fcn.004052e0
push dword [esi + 0x407364]
lea eax, [ebp - 0xa0]
push eax
call fcn.004052e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004057f5
add esp, 0x2c
pop edi
jmp 0x404b6d
lea eax, [ebp + 8]
lea esi, [esi + 0x407364]
push 0
push eax
push dword [esi]
call fcn.00405440
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x40aac0
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
sub esp, 0x82c
cmp dword [0x483f04], 0x13f7
mov eax, dword [esp + 0x830]
push ebx
mov ebx, dword [eax + 4]
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x844]
mov eax, dword [edi]
mov ebp, 0xc6ef3720
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], eax
jne 0x40ab12
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
cmp dword [0x483f04], 0x60b
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], eax
jne 0x40ab60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
push 0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
mov dword [esp + 0x1c], 0x20
mov ecx, dword [esp + 0x24]
mov eax, esi
push ecx
shl eax, 4
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
call fcn.0040aa70
lea eax, [esi + ebp]
mov dword [esp + 0x14], eax
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x2c]
cmp dword [0x483f04], 0x1b
mov dword [esp + 0x10], eax
mov dword [0x467364], 0xffcf03fc
jne 0x40abd1
push 0
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
push 0x4013a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x14]
mov dword [0x467364], 0
xor eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add dword [0x467364], eax
sub ebx, dword [esp + 0x10]
mov edi, ebx
shl edi, 4
cmp dword [0x483f04], 0x78c
mov dword [esp + 0x18], ebx
jne 0x40ac1c
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov ecx, ebx
shr ecx, 5
mov dword [0x467368], 0xc5e121b4
mov dword [0x46736c], 0xffffffff
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x34]
add dword [esp + 0x10], eax
mov edx, dword [esp + 0x28]
lea eax, [edi + edx]
xor eax, dword [esp + 0x10]
add ebp, 0x61c88647
xor eax, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
sub esi, eax
sub dword [esp + 0x1c], 1
jne 0x40ab68
mov eax, dword [esp + 0x840]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov dword [eax + 4], ebx
pop ebx
add esp, 0x82c
ret 8
Function at 0x40ac90
Capabilities:
Copy file
Manipulate console buffer
Terminate thread

Disassembly:
sub esp, 0xaa8
push esi
xor esi, esi
cmp dword [0x483f04], 0x516
jne 0x40ace5
push esi
lea eax, [esp + 0x2b0]
push eax
push esi
call sub.KERNEL32.dll_VerLanguageNameA
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
xor ecx, ecx
xor edx, edx
mov word [esp + 6], dx
lea eax, [esp + 8]
push eax
mov word [esp + 8], cx
mov ecx, dword [esp + 8]
push ecx
push esi
lea edx, [esp + 0x6b8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [esp + 0xab4]
shr eax, 3
cmp eax, esi
jbe 0x40ae2c
mov ecx, dword [esp + 0xab0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileExW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x40ad20
cmp dword [0x483f04], 0x29
jne 0x40ad60
xor eax, eax
lea edx, [esp + 0x24]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
push edx
lea eax, [esp + 0x44]
push eax
push esi
mov dword [esp + 0x30], esi
call edi
push esi
push esi
push esi
push esi
push esi
push esi
call ebx
lea ecx, [esp + 0x3c]
push ecx
push 0x4013b0
call ebp
cmp dword [0x483f04], 0xe1b
jne 0x40ad82
lea edx, [esp + 0x2b8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x483f04], 0x1c
jne 0x40adda
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_QueryDepthSList]
push esi
push esi
push esi
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
lea edx, [esp + 0x1a4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov ecx, dword [esp + 0xac4]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.0040aac0
cmp dword [0x483f04], 0x4fa
jne 0x40ae19
xor eax, eax
xor ecx, ecx
lea edx, [esp + 0x38]
push edx
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], cx
mov eax, dword [esp + 0x1c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x40ad20
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xaa8
ret 0xc