joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440a40
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x482bac], 0
jne 0x440bc7
push esi
push str.advapi32.dll
mov dword [0x482bac], 1
call fcn.0043b980
add esp, 4
mov dword [0x482bb4], eax
test eax, eax
je 0x440bbe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSecurityInfo
push eax
call esi
mov dword [0x4836f0], eax
test eax, eax
je 0x440bbe
mov eax, dword [0x482bb4]
test eax, eax
je 0x440bb4
push str.SetSecurityInfo
push eax
call esi
mov dword [0x4836ec], eax
test eax, eax
je 0x440bbe
mov eax, dword [0x482bb4]
test eax, eax
je 0x440ba1
push str.OpenProcessToken
push eax
call esi
mov dword [0x483700], eax
test eax, eax
je 0x440bbe
mov eax, dword [0x482bb4]
test eax, eax
je 0x440b8e
push str.GetTokenInformation
push eax
call esi
mov dword [0x4836fc], eax
test eax, eax
je 0x440bbe
mov eax, dword [0x482bb4]
test eax, eax
je 0x440b7b
push 0x47367c
push eax
call esi
mov dword [0x4836f8], eax
test eax, eax
je 0x440bbe
mov eax, dword [0x482bb4]
test eax, eax
je 0x440b68
push 0x47369c
push eax
call esi
mov dword [0x4836f4], eax
test eax, eax
je 0x440bbe
mov eax, dword [0x482bb4]
test eax, eax
je 0x440b55
push str.SetEntriesInAclA
push eax
call esi
mov dword [0x4836e8], eax
test eax, eax
je 0x440bbe
mov eax, 1
mov dword [0x482bb0], eax
pop esi
ret
xor eax, eax
mov dword [0x4836e8], 0
mov dword [0x482bb0], eax
pop esi
ret
xor eax, eax
mov dword [0x4836f4], 0
mov dword [0x482bb0], eax
pop esi
ret
xor eax, eax
mov dword [0x4836f8], 0
mov dword [0x482bb0], eax
pop esi
ret
xor eax, eax
mov dword [0x4836fc], 0
mov dword [0x482bb0], eax
pop esi
ret
xor eax, eax
mov dword [0x483700], 0
mov dword [0x482bb0], eax
pop esi
ret
mov dword [0x4836ec], 0
xor eax, eax
mov dword [0x482bb0], eax
pop esi
ret
mov eax, dword [0x482bb0]
ret
Function at 0x441ce0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov al, byte [esi]
test al, al
je 0x441d4f
mov edx, dword [ebp + 0xc]
cmp al, 0x20
je 0x441d17
cmp al, 0x5c
je 0x441d17
cmp al, 0x2a
je 0x441d17
cmp al, 0x3f
je 0x441d17
cmp al, 0x25
je 0x441d17
lea ecx, [eax - 0x20]
cmp cl, 0x5e
ja 0x441d17
cmp al, 0x2e
jne 0x441d3a
test edi, edi
jne 0x441d3a
mov byte [edx], 0x25
movzx eax, byte [esi]
shr eax, 4
movzx eax, byte [eax + str.0123456789ABCDEFIsBold]
mov byte [edx + 1], al
add edx, 2
movzx eax, byte [esi]
and eax, 0xf
movzx eax, byte [eax + str.0123456789ABCDEFIsBold]
inc esi
mov byte [edx], al
inc edx
mov edi, 1
mov al, byte [esi]
test al, al
jne 0x441cf3
pop edi
mov byte [edx], al
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov byte [eax], 0
pop ebp
ret

Function at 0x441e10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x481180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 1
call fcn.00441910
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x441e9b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x408]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
je 0x441e93
nop dword [eax]
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x441e93
push eax
lea eax, [ebp - 0x404]
push eax
call ebx
add esp, 8
lea eax, [ebp - 0x408]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
jne 0x441e60
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00443ced
mov esp, ebp
pop ebp
ret

Function at 0x442020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x44209d
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44209d
cmp dword [ebp + 8], 1
jne 0x44209d
mov eax, dword [ebp - 4]
push esi
inc eax
push 1
push eax
call fcn.00404e60
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44208c
cmp dword [ebp + 8], 1
jne 0x44208c
mov eax, dword [ebp - 4]
mov byte [esi + eax], 0
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00404e40
add esp, 4
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4420b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4420c0
sub ecx, edx
mov edx, dword [ebp + 0x10]
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4420d0
sub edx, esi
push 1
lea eax, [edx + 5]
add eax, ecx
lea eax, [eax + eax*2]
push eax
call fcn.00404e60
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push edi
push esi
call fcn.00441c60
add esp, 0x18
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamqwertSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x442145
mov edx, dword [ebp + 0x14]
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442120
sub ecx, edi
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00404e40
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x442160
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4421ac
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x44219f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x44219f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043ba40
push eax
push dword [ebp + 8]
push str.Unable_to_delete__s:__s
call fcn.0043fea0
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
xor eax, eax
pop ebp
ret
xor eax, eax
mov edx, 0x80
push 0
cmp ecx, 2
cmove eax, edx
push eax
xor eax, eax
cmp ecx, 2
setne al
xor edx, edx
add eax, 2
cmp ecx, 2
push eax
push 0
mov eax, 3
cmove eax, edx
mov edx, 0x40000000
push eax
mov eax, 0x80000000
cmove eax, edx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0x10]
mov edx, eax
xor eax, eax
cmp edx, 0xffffffff
setne al
mov dword [ecx], edx
pop ebp
ret
Function at 0x4424e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
call fcn.00441910
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x442510
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4446c8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x444707
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x444707
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x444707
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x444707
cmp dword [ecx + 0x74], 0xe
jbe 0x444707
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x455ef6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4789e0
push 0x4789d8
push str.FlsAlloc
push 0x1f
call fcn.00455db5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x455f2a
push dword [ebp + 8]
mov ecx, esi
call dword [0x463244]
call esi
jmp 0x455f30
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x455f74
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4789f0
push 0x4789e8
push str.FlsGetValue
push 0x21
call fcn.00455db5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x455fab
push dword [ebp + 8]
mov ecx, esi
call dword [0x463244]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x455fb3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.am_pm
push 0x4789f0
push str.FlsSetValue
push 0x22
call fcn.00455db5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x455fed
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x463244]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x458b77
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x483160]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x458bb7
cmp byte [ebx], 0xa
jne 0x458bb7
or byte [edi + eax + 0x28], 4
jmp 0x458bbc
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x458cbb
mov dl, byte [eax]
cmp dl, 0x1a
je 0x458c9e
inc eax
cmp dl, 0xd
je 0x458be8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x458c0e
cmp eax, ecx
jae 0x458c1c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x458bd0
jmp 0x458cbb
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x458c99
cmp dword [ebp - 0x10], 0
je 0x458c99
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x483160]
test byte [eax + edi + 0x28], 0x48
je 0x458c73
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x458c5e
mov byte [esi], dl
jmp 0x458c6f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x483160]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x458cbb
cmp byte [ebp - 1], 0xa
jne 0x458c82
cmp esi, ebx
jne 0x458c82
mov byte [esi], 0xa
jmp 0x458cba
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004598e1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x458cbb
mov byte [esi], 0xd
jmp 0x458cba
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x483160]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x458cb8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x458cbb
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x458cc4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x483160]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x458d0a
cmp word [ebx], dx
jne 0x458d0a
or byte [eax + edi + 0x28], 4
jmp 0x458d0f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x458e72
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x458e52
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x458d50
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x458d86
cmp eax, edx
jae 0x458d94
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x458d2b
jmp 0x458e72
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x458e4d
cmp dword [ebp - 0x18], 0
je 0x458e4d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x483160]
test byte [eax + edi + 0x28], 0x48
je 0x458e23
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x458de7
mov word [esi], cx
jmp 0x458e1e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x483160]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x483160]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x483160]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x458e72
pop eax
cmp word [ebp - 4], ax
jne 0x458e33
cmp esi, ebx
jne 0x458e33
mov word [esi], ax
jmp 0x458e6f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004598e1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x458e72
push 0xd
pop eax
jmp 0x458e2e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x483160]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x458e6c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x458e72
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45ad3a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x45add7
push ebx
push esi
call fcn.0045ad03
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00457526
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x45ad84
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45add6
push edi
push eax
call fcn.00454967
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x45ada4
call fcn.004532ae
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45add5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00457526
add esp, 0x20
test eax, eax
jne 0x45adc3
push edi
call fcn.004532ae
jmp 0x45adcb
push ebx
call fcn.004532ae
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x45adda
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45adeb
pop esi
ret
push ebx
push edi
push esi
call fcn.0045ad03
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00454967
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45ae13
push ebx
push esi
push edi
call fcn.00444be0
add esp, 0xc
push 0
call fcn.004532ae
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x45b56d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045b088
Function at 0x460297
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00460213
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x460406
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x460406
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4603bb
jg 0x4602f3
test eax, eax
je 0x4603b1
push 1
push 0x1000
call fcn.00455bf1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x460316
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4603a8
push 0x8000
push ebx
call fcn.00452ae8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x46033f
jg 0x46033a
cmp ecx, 0x1000
jb 0x46033f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00456d08
add esp, 0x10
cmp eax, 0xffffffff
je 0x460384
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x46033a
jl 0x46036b
test ecx, ecx
jne 0x46032c
push dword [ebp - 0xc]
push ebx
call fcn.00452ae8
push esi
call fcn.004532ae
add esp, 0xc
xor ebx, ebx
jmp 0x460414
cmp byte [edi + 0x24], 0
je 0x46039b
cmp dword [edi + 0x20], 5
jne 0x46039b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4603a6
mov ebx, dword [edi + 0x18]
jmp 0x4603a8
xor ebx, ebx
push esi
call fcn.004532ae
pop ecx
jmp 0x460414
test ecx, ecx
jg 0x46037d
jl 0x4603bb
test eax, eax
jae 0x46037d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004598e1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4603db
cmp byte [edi + 0x1c], 0
je 0x46037d
jmp 0x46040c
push ebx
call fcn.0045b942
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x46037d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x460414
cmp byte [edi + 0x1c], 0
je 0x460411
mov ebx, dword [edi + 0x18]
jmp 0x460414
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004598e1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4622d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4622fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4622fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4019f0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x428
mov eax, dword [0x42acb8]
xor eax, esp
mov dword [esp + 0x420], eax
mov eax, dword [esp + 0x42c]
push ebp
mov ebp, dword [esp + 0x434]
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x28]
push ecx
mov edi, edx
push 0x200
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x200
ja 0x401b73
test eax, eax
je 0x401b73
mov edx, dword [esi + 0xa4]
add esi, 0xa4
cmp dword [edx - 0xc], 0
jne 0x401b06
lea ebx, [ebx]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x401ae7
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x401ae7
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401a92
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00402dd0
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x401aba
xor eax, eax
jmp 0x401ad3
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401ac0
sub eax, edi
mov edi, dword [esp + 0x14]
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00402980
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401a60
push 0x4258dc
mov ecx, esi
call fcn.00402190
push esi
mov ecx, ebp
call fcn.00402f00
test edi, edi
jne 0x401b16
xor eax, eax
jmp 0x401b2f
mov eax, edi
lea edx, [eax + 2]
jmp 0x401b20
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b20
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, ebp
call fcn.00402980
mov eax, dword [ebp]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x401b69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x4258e0
jmp 0x401b81
mov edx, dword [esp + 0x10]
mov dword [edx], eax
xor eax, eax
jmp 0x401b8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetTempPath_failed___d__n
call fcn.0040e7f0
mov eax, esi
add esp, 8
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040e6c3
add esp, 0x428
ret 8
Function at 0x401bb0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push 0x3c
xor esi, esi
lea eax, [esp + 8]
push esi
push eax
call fcn.0040f480
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
add esp, 0xc
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0x14], 0x42591c
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x24], 0xa
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x401c42
cmp byte [esp + 0x4c], 0
je 0x401c4f
mov ecx, dword [esp + 0x3c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401c38
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x4c]
pop esi
add esp, 0x3c
ret 0xc
or eax, 0xffffffff
pop esi
add esp, 0x3c
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x3c
ret 0xc
mov eax, esi
pop esi
add esp, 0x3c
ret 0xc

Function at 0x401c60
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 8
push ebp
push esi
push edi
mov ecx, ebx
call fcn.00402d20
push 0
mov dword [esp + 0x10], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401cbd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x401cbd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401cbd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401cde
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x425928
call fcn.0040e7f0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 8
ret 0x10
mov ecx, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x2c]
call fcn.004019f0
test eax, eax
jne 0x401d5b
push eax
lea eax, [esp + 0x14]
push eax
push ebp
push esi
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x425944
call fcn.0040e7f0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 8
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x401d59
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x42595c
call fcn.0040e7f0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 8
ret 0x10
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 8
ret 0x10