joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e630
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x40ec58
call fcn.0040e998
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40fc60
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40e458
cmp eax, esi
jne 0x40e44b
xor esi, esi
inc esi
mov edi, esi
jmp 0x40e45b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e42f
xor esi, esi
inc esi
cmp dword [0x40fc64], esi
jne 0x40e46d
push 0x1f
call fcn.00540000
pop ecx
jmp 0x40e4a7
cmp dword [0x40fc64], ebx
jne 0x40e4a1
mov dword [0x40fc64], esi
push 0x4011ec
push 0x4011e0
call fcn.0040e58c
pop ecx
pop ecx
test eax, eax
je 0x40e4a7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40e57c
mov dword [0x40f08c], esi
cmp dword [0x40fc64], esi
jne 0x40e4ca
push 0x4011dc
push 0x4011d4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40fc64], 2
test edi, edi
jne 0x40e4d7
xor eax, eax
mov ecx, 0x40fc60
xchg dword [ecx], eax
cmp dword [0x40fc68], 0
je 0x40e503
push 0x40fc68
call fcn.0040e7f0
pop ecx
test eax, eax
je 0x40e503
push ebx
push 2
push ebx
mov esi, dword [0x40fc68]
mov ecx, esi
call dword [0x410144]
call esi
push dword [0x40f098]
push dword [0x40f094]
push dword [0x40f090]
call fcn.0040923f
add esp, 0xc
mov dword [0x40f088], eax
cmp dword [0x40f0a0], 0
jne 0x40e561
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x40f08c], 0
jne 0x40e575
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x40f088]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0040e8e5
jmp 0x40e413

Function at 0x40e6d4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40ec78
call fcn.0040e998
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e734
cmp eax, 0xffffffff
je 0x40e734
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40e72d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40e72d
cmp edx, 0x10000000
jae 0x40e72d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40e72a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40e7a0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40e7de
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40e7d6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40e7e0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40e7c6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402672
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x479713
call fcn.00459afc
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
je 0x4026cd
lea ecx, [ebp + 8]
call fcn.004013c3
and dword [ebp - 4], 0
mov eax, dword [esi + 0xc]
neg eax
sbb eax, eax
and eax, 0x27
add eax, 0x20
push eax
push dword [esi + 0x10]
lea eax, [ebp + 8]
push dword [esi + 0x18]
push dword [esi]
push str.__Id:__3d_index:__3d_score:__5d__c__n
push eax
call fcn.00401ada
add esp, 0x18
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004208c9
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x402a14
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x479773
call fcn.00459afc
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 4], edi
jbe 0x402a40
mov ecx, dword [esi]
push edi
call fcn.00401be5
push dword [eax]
call fcn.00402672
inc edi
pop ecx
cmp edi, dword [esi + 4]
jb 0x402a2a
lea ecx, [ebp + 8]
call fcn.004013c3
and dword [ebp - 4], 0
push dword [esi + 8]
lea eax, [ebp + 8]
push 0x483b90
push eax
call fcn.00401ada
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004208c9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x402afe
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x479785
call fcn.00459afc
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0
jne 0x402b16
xor eax, eax
jmp 0x402b71
mov ecx, dword [esi]
push 0
call fcn.00401be5
mov eax, dword [eax]
cmp dword [eax + 0xc], 0
jne 0x402b2c
mov eax, dword [eax + 0x10]
jmp 0x402b71
push dword [ebp + 0xc]
push esi
call fcn.00402a83
pop ecx
pop ecx
lea ecx, [ebp + 8]
mov esi, eax
call fcn.004013c3
and dword [ebp - 4], 0
push dword [esi + 0x14]
lea eax, [ebp + 8]
push str.Score:__d_n
push eax
call fcn.00401ada
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004208c9
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4039dd
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x479909
call fcn.00459afc
sub esp, 0x10
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp + 8]
call fcn.00405ec1
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 1
cmp dword [ebp + 0x10], esi
je 0x403b2d
push edi
mov edi, dword [ebp + 0xc]
push ebx
mov al, byte [edi]
dec dword [ebp + 0x10]
mov byte [ebp + esi - 0x10], al
mov bl, byte [ebp - 0xf]
inc esi
inc edi
cmp esi, 3
jne 0x403a87
mov al, byte [ebp - 0x10]
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x10]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x13], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0xe]
and al, 0x3f
mov byte [ebp - 0x11], al
xor esi, esi
movzx eax, byte [ebp + esi - 0x14]
push eax
mov ecx, 0x4abc10
call fcn.00405877
mov al, byte [eax]
mov ecx, dword [ebp + 8]
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
push 1
call fcn.00405f38
inc esi
cmp esi, 4
jl 0x403a5d
xor esi, esi
cmp dword [ebp + 0x10], 0
jne 0x403a13
xor edi, edi
cmp esi, edi
je 0x403b2b
cmp esi, 3
jge 0x403ab3
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x10]
push edi
push eax
call fcn.0045a2c0
mov bl, byte [ebp - 0xf]
add esp, 0xc
mov al, byte [ebp - 0x10]
mov cl, al
shr cl, 2
mov byte [ebp - 0x14], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xe]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0x12], bl
and al, 0x3f
lea ebx, [esi + 1]
mov byte [ebp - 0x11], al
test ebx, ebx
jle 0x403b13
movzx eax, byte [ebp + edi - 0x14]
push eax
mov ecx, 0x4abc10
call fcn.00405877
mov al, byte [eax]
mov ecx, dword [ebp + 8]
mov byte [ebp + 0x10], al
push dword [ebp + 0x10]
push 1
call fcn.00405f38
inc edi
cmp edi, ebx
jl 0x403aec
push 3
pop edi
cmp esi, edi
jge 0x403b2b
sub edi, esi
mov ecx, dword [ebp + 8]
push 0x3d
push 1
call fcn.00405f38
dec edi
jne 0x403b1c
pop ebx
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x408aee
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov esi, 0x208
push esi
mov ebx, ecx
call fcn.004347c8
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.00408aa2
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.0045c74b
add esp, 0x14
test eax, eax
jne 0x408b45
test dword [ebp - 0x2e], 0x8000
je 0x408b94
push str.pathToLink_points_to_a_path_that_is_existing_and_not_a_directory
mov ecx, ebx
call fcn.004088d2
push edi
call fcn.004347bd
xor eax, eax
jmp 0x408b9d
push esi
call fcn.004347c8
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x5c
push 0x2f
push dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00408a59
add esp, 0x14
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x408b8d
push str.error_occurred_while_trying_to_create_the_pathToLink
mov ecx, ebx
call fcn.004088d2
push edi
call fcn.004347bd
push esi
call fcn.004347bd
pop ecx
jmp 0x408b41
push esi
call fcn.004347bd
pop ecx
push edi
call fcn.004347bd
xor eax, eax
inc eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x408ba5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea eax, [esi + 4]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
lea eax, [ebp - 0xc]
push eax
push 4
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x48dd80
push ebx
push dword [ebp - 0xc]
push eax
call dword [ecx + 0x14]
mov edi, 0x104
push edi
push ebx
push dword [esi]
mov dword [ebp - 0x1c], eax
call fcn.0045a2c0
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
push edi
push dword [esi]
call fcn.0045cd47
add esp, 0x24
cmp dword [ebp + 0x18], ebx
je 0x408c2c
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00408aee
cmp dword [ebp - 0x1c], ebx
jl 0x408cda
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x40
push ebx
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x408cda
jmp 0x408cbf
cmp dword [ebp - 0x18], ebx
jbe 0x408cda
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x124]
push edx
push ebx
push dword [ebp - 4]
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x408cbf
push dword [ebp + 8]
push dword [ebp - 0x120]
call fcn.0045ccb4
pop ecx
pop ecx
test eax, eax
jne 0x408cbf
push dword [ebp - 0x120]
push edi
push dword [esi]
call fcn.0045cb26
push str..lnk
push edi
push dword [esi]
call fcn.0045cb26
add esp, 0x18
push dword [ebp - 4]
mov ecx, esi
push dword [ebp - 0xc]
call fcn.004087ea
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [esi]
push eax
call fcn.0040884b
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 4]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x408c4f
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x14
Function at 0x40900a
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00408dd1

Function at 0x409301
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, 0x1f4
push edi
mov dword [ebp - 0xc], 0x10
call fcn.0045a389
push edi
xor edi, edi
mov esi, eax
push edi
push esi
call fcn.0045a2c0
add esp, 0x10
push 0xf0000000
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x409366
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CryptAcquireContext_failed:__d_n
call fcn.0045c585
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
jmp 0x409454
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x8003
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40939f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CryptCreateHash_failed:__d_n
call fcn.0045c585
pop ecx
pop ecx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x40935a
push edi
push dword [ebp + 8]
call fcn.00459420
pop ecx
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4093e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CryptHashData_failed:__d_n
call fcn.0045c585
pop ecx
pop ecx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x40935a
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x40940f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CryptGetHashParam_failed:__d_n
jmp 0x4093c8
xor eax, eax
cmp dword [ebp - 0xc], edi
jbe 0x40943f
lea ecx, [ebp + eax - 0x1c]
movzx edx, byte [ecx]
shr edx, 4
mov dl, byte [edx + str.0123456789abcdef]
mov byte [esi + eax*2], dl
movzx ecx, byte [ecx]
and ecx, 0xf
mov cl, byte [ecx + str.0123456789abcdef]
mov byte [esi + eax*2 + 1], cl
inc eax
cmp eax, dword [ebp - 0xc]
jb 0x409416
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
pop edi
pop esi
leave
ret 8
Function at 0x411d40
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x47b085
call fcn.00459afc
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
wait
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], 0x100140
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
mov dword [ebp - 0x44], ecx
mov eax, dword [esi + 8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], edi
mov eax, dword [esi + 4]
mov dword [ebp - 0x4c], eax
fld qword [0x486288]
fcomp qword [esi + 0x18]
fnstsw ax
test ah, 0x41
jp 0x411c54
fld qword [0x486280]
fcomp qword [esi + 0x18]
fnstsw ax
test ah, 1
jne 0x411c54
mov ecx, dword [ecx - 0xc]
push 3
add ecx, 0xfffffffd
push ecx
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.0040a699
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 1
push 0x486274
push eax
call fcn.0040a272
pop ecx
pop ecx
test al, al
je 0x411c54
mov bl, 1
jmp 0x411c56
xor bl, bl
mov dword [ebp - 4], edi
test byte [ebp - 0x14], 1
je 0x411c6b
and dword [ebp - 0x14], 0xfffffffe
lea ecx, [ebp + 8]
call fcn.004208c9
test bl, bl
mov dword [ebp - 0x50], str.runas
jne 0x411c7d
mov dword [ebp - 0x50], str.open
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x411d1d
or dword [ebp - 0x20], 0xffffffff
mov ecx, dword [ebp - 0x1c]
call fcn.00411ab1
call fcn.00411aec
push dword [esi + 0x20]
push 1
lea eax, [ebp - 0x24]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x411cee
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x18], 0x103
jne 0x411d05
push edi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
je 0x411ce3
cmp eax, 0x102
jne 0x411cee
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x1c]
call fcn.00411b7a
call fcn.0045a1f0
sub dword [esi + 0x20], eax
jns 0x411c9b
cmp dword [ebp - 0x20], edi
jne 0x411d14
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
wait
jmp 0x411d2f
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffff9d
pop eax
jmp 0x411d11
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x411bb6
Function at 0x412662
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, ecx
movzx ecx, word [eax + 0x14]
push ebx
movzx ebx, word [eax + 6]
lea edx, [ecx + eax + 0x18]
push esi
xor ecx, ecx
push edi
test ebx, ebx
jle 0x4126a5
lea eax, [edx + 8]
mov edi, dword [eax]
test edi, edi
jne 0x41268e
mov edi, dword [eax + 8]
mov esi, dword [eax + 4]
cmp dword [ebp + 0xc], esi
jb 0x41269d
add esi, edi
cmp dword [ebp + 0xc], esi
jb 0x4126ac
inc ecx
add eax, 0x28
cmp ecx, ebx
jl 0x412685
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
imul ecx, ecx, 0x28
add ecx, edx
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
add eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
jmp 0x4126a7

Function at 0x4126bf
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
mov edx, 0x5a4d
add eax, ecx
cmp word [ecx], dx
je 0x4126d8
xor eax, eax
pop ebp
ret
cmp dword [eax], 0x4550
jne 0x4126d4
mov edx, 0xe0
cmp word [eax + 0x14], dx
jb 0x4126d4
push dword [eax + 0x88]
push ecx
call fcn.00412662
pop ecx
pop ecx
pop ebp
ret
Function at 0x412b35
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
push esi
mov esi, dword [ebp + 8]
push 0x25
push esi
call fcn.0045dadd
pop ecx
pop ecx
test eax, eax
jne 0x412b58
or eax, 0xffffffff
jmp 0x412c35
add eax, 2
push 0x25
push eax
call fcn.0045dadd
pop ecx
pop ecx
test eax, eax
je 0x412b50
xor eax, eax
push ebx
mov word [ebp - 0x210], ax
push edi
lea edi, [ebp - 0x210]
cmp word [esi], ax
je 0x412c0b
movzx eax, word [esi]
cmp ax, 0x25
je 0x412b95
mov word [edi], ax
inc edi
inc edi
inc esi
inc esi
jmp 0x412c01
lea ebx, [esi + 2]
push 0x25
push ebx
call fcn.0045dadd
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x412c38
sub eax, esi
sar eax, 1
push eax
push ebx
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x412bfb
lea eax, [ebp - 0x41c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2]
mov esi, dword [ebp - 4]
add esi, 2
cmp word [esi], 0
jne 0x412b83
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x412c31
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
or eax, 0xffffffff
jmp 0x412c33
Function at 0x412eba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.00406425
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
mov dword [ebp - 4], 0x400
jb 0x412ee7
mov eax, dword [eax + 4]
jmp 0x412eea
add eax, 4
push esi
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x404]
push ecx
push 0
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x412f19
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x404]
push eax
call fcn.00406696
mov eax, esi
pop esi
leave
ret

Function at 0x4137c8
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4137f1
xor eax, eax
jmp 0x41383e
push edi
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x413836
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
je 0x413820
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
push esi
push esi
push esi
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 4]
mov esi, eax
call edi
pop ebx
push dword [ebp - 8]
call edi
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x413f54
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x47b61f
call fcn.00459afc
sub esp, 0xe8
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push 0x486e58
mov ecx, 0x4ac098
call fcn.00403917
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0040387b
mov byte [ebp - 4], 2
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
mov byte [ebp - 4], 1
mov ecx, esi
call dword [eax + 0x20]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 8]
call fcn.0040a77d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004208c9
push dword [ebp + 8]
lea ecx, [ebp - 0xf4]
call fcn.0040a5ff
mov byte [ebp - 4], 4
push dword [eax]
lea ecx, [ebp - 0x54]
call fcn.00401a15
mov byte [ebp - 4], 6
lea eax, [ebp - 0xf0]
cmp dword [ebp - 0xf4], eax
je 0x413ff3
push dword [ebp - 0xf4]
call fcn.0045bfdc
pop ecx
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x413fff
lea eax, [ebp - 0x50]
push 0x486e54
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0045fda7
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x414166
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jne 0x414060
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.004013ee
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.004208c9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004208c9
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], 0xf
call fcn.004012f2
mov byte [ebp - 4], 7
push 2
push ebx
push dword [ebp - 0x14]
call fcn.0045f598
push dword [ebp - 0x14]
call fcn.0045fc75
add esp, 0x10
push ebx
push eax
lea ecx, [ebp - 0x38]
call fcn.0041851a
push dword [ebp - 0x14]
call fcn.0045fa12
pop ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push dword [ebp - 0x24]
push edi
push ebx
call fcn.00405877
push eax
call fcn.0045f9f5
push dword [ebp - 0x14]
call fcn.0045f6d9
add esp, 0x14
push dword [ebp + 0xc]
lea ecx, [ebp - 0xf4]
call fcn.0040a5ff
mov byte [ebp - 4], 8
push dword [eax]
lea ecx, [ebp - 0x70]
call fcn.00401a15
mov byte [ebp - 4], 9
cmp dword [eax + 0x18], 0x10
jb 0x4140e9
mov eax, dword [eax + 4]
jmp 0x4140ec
add eax, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00401a15
mov byte [ebp - 4], 0xa
sub esp, 0x1c
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0040183e
mov byte [ebp - 4], 0xb
mov eax, dword [esi]
mov byte [ebp - 4], 9
mov ecx, esi
call dword [eax + 0x28]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 8
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.004013ee
mov byte [ebp - 4], 7
lea eax, [ebp - 0xf0]
cmp dword [ebp - 0xf4], eax
je 0x41414d
push dword [ebp - 0xf4]
call fcn.0045bfdc
pop ecx
mov byte [ebp - 4], 6
push ebx
push edi
lea ecx, [ebp - 0x38]
call fcn.004013ee
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
jmp 0x414027
mov byte [ebp - 0xd], bl
jmp 0x414027