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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041c078
and dword [ebp - 4], 0
cmp dword [0x44de04], 0
mov ebx, eax
jne 0x423ba2
push 0x439cb8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x423c53
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x439cac
push edi
call esi
test eax, eax
je 0x423c53
push eax
call fcn.0041c006
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44de04], eax
call esi
push eax
call fcn.0041c006
mov dword [esp], 0x439c88
push edi
mov dword [0x44de08], eax
call esi
push eax
call fcn.0041c006
mov dword [esp], str.GetUserObjectInformationW
push edi
mov dword [0x44de0c], eax
call esi
push eax
call fcn.0041c006
pop ecx
mov dword [0x44de14], eax
test eax, eax
je 0x423ba2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041c006
pop ecx
mov dword [0x44de10], eax
mov eax, dword [0x44de10]
cmp eax, ebx
je 0x423bfa
cmp dword [0x44de14], ebx
je 0x423bfa
push eax
call fcn.0041c081
push dword [0x44de14]
mov esi, eax
call fcn.0041c081
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423bfa
test edi, edi
je 0x423bfa
call esi
test eax, eax
je 0x423bf1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423bf1
test byte [ebp - 0xc], 1
jne 0x423bfa
or dword [ebp + 0x10], 0x200000
jmp 0x423c33
mov eax, dword [0x44de08]
cmp eax, ebx
je 0x423c33
push eax
call fcn.0041c081
pop ecx
test eax, eax
je 0x423c33
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x423c33
mov eax, dword [0x44de0c]
cmp eax, ebx
je 0x423c33
push eax
call fcn.0041c081
pop ecx
test eax, eax
je 0x423c33
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44de04]
call fcn.0041c081
pop ecx
test eax, eax
je 0x423c53
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x423c55
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42c049
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041c078
and dword [ebp - 4], 0
cmp dword [0x44e054], 0
mov ebx, eax
jne 0x42c0fa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42c1ab
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43aea0
push edi
call esi
test eax, eax
je 0x42c1ab
push eax
call fcn.0041c006
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44e054], eax
call esi
push eax
call fcn.0041c006
mov dword [esp], 0x439c88
push edi
mov dword [0x44e058], eax
call esi
push eax
call fcn.0041c006
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44e05c], eax
call esi
push eax
call fcn.0041c006
pop ecx
mov dword [0x44e064], eax
test eax, eax
je 0x42c0fa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041c006
pop ecx
mov dword [0x44e060], eax
mov eax, dword [0x44e060]
cmp eax, ebx
je 0x42c152
cmp dword [0x44e064], ebx
je 0x42c152
push eax
call fcn.0041c081
push dword [0x44e064]
mov esi, eax
call fcn.0041c081
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42c152
test edi, edi
je 0x42c152
call esi
test eax, eax
je 0x42c149
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42c149
test byte [ebp - 0xc], 1
jne 0x42c152
or dword [ebp + 0x10], 0x200000
jmp 0x42c18b
mov eax, dword [0x44e058]
cmp eax, ebx
je 0x42c18b
push eax
call fcn.0041c081
pop ecx
test eax, eax
je 0x42c18b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42c18b
mov eax, dword [0x44e05c]
cmp eax, ebx
je 0x42c18b
push eax
call fcn.0041c081
pop ecx
test eax, eax
je 0x42c18b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44e054]
call fcn.0041c081
pop ecx
test eax, eax
je 0x42c1ab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42c1ad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4039f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e4b9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x42f00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
mov esi, 0
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], 0
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
mov edi, dword [ecx + 4]
sub edi, dword [ecx]
mov dword [ebp - 0x30], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
je 0x403a7c
push edi
mov ecx, ebx
call fcn.00401420
mov eax, dword [ebx]
push edi
push 0
push eax
lea esi, [eax + edi]
call fcn.0040dbe0
add esp, 0xc
mov dword [ebx + 4], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 1
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], eax
cmp edx, eax
je 0x403b90
mov ecx, dword [ebx]
mov eax, esi
sub eax, ecx
je 0x403ba6
mov al, byte [ecx]
mov ecx, dword [ebx]
xor al, byte [edx]
mov byte [ebp - 0xe], al
lea eax, [ecx + 1]
sub esi, eax
push esi
push eax
push ecx
call fcn.0040e300
mov eax, dword [ebx + 4]
add esp, 0xc
dec eax
mov byte [ebp - 0xd], 0
mov dword [ebx + 4], eax
cmp eax, dword [ebx + 8]
je 0x403add
mov byte [eax], 0
inc dword [ebx + 4]
jmp 0x403ae9
lea ecx, [ebp - 0xd]
push ecx
push eax
mov ecx, ebx
call fcn.00404390
mov esi, dword [ebx + 4]
xor edi, edi
mov ecx, dword [ebx]
mov eax, esi
mov dword [ebp - 0x1c], edi
sub eax, ecx
je 0x403b80
nop dword [eax]
sub esi, ecx
cmp esi, edi
jbe 0x403ba6
lea eax, [ecx + edi]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
cmp eax, edi
jbe 0x403ba6
mov al, byte [ecx + edi]
xor ebx, ebx
movzx esi, byte [ebp - 0xe]
mov ecx, 7
mov dword [ebp - 0x18], ecx
movzx edi, al
mov edx, esi
mov eax, ebx
shr edx, cl
add ebx, ebx
mov ecx, dword [ebp - 0x18]
and edx, 1
sar eax, 7
imul edx, edi
imul eax, eax, 0x11d
xor edx, eax
xor ebx, edx
sub ecx, 1
mov dword [ebp - 0x18], ecx
jns 0x403b36
mov edi, dword [ebp - 0x1c]
test ebx, 0xffffff00
jne 0x403bab
mov eax, dword [ebp - 0x2c]
inc edi
mov dword [ebp - 0x1c], edi
xor byte [eax], bl
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebx + 4]
mov eax, esi
mov ecx, dword [ebx]
sub eax, ecx
cmp edi, eax
jb 0x403b00
mov edx, dword [ebp - 0x20]
inc edx
mov dword [ebp - 0x20], edx
cmp edx, dword [ebp - 0x14]
jne 0x403aa2
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00403e20
push 0x42d950
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.Assertion_error
push eax
call fcn.0040db64
int3
Function at 0x403bd0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, 7
movzx esi, dl
push edi
xor ebx, ebx
mov dword [ebp - 4], eax
movzx edi, cl
mov cl, al
mov edx, esi
shr edx, cl
mov eax, ebx
and edx, 1
sar eax, 7
imul eax, eax, 0x11d
add ebx, ebx
imul edx, edi
xor edx, eax
mov eax, dword [ebp - 4]
xor ebx, edx
sub eax, 1
mov dword [ebp - 4], eax
jns 0x403be7
test ebx, 0xffffff00
jne 0x403c20
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push 0x42d950
lea eax, [ebp - 4]
mov dword [ebp - 4], str.Assertion_error
push eax
call fcn.0040db64
int3

Function at 0x405820
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push esi
mov esi, ecx
push edi
test esi, esi
je 0x40583b
mov edx, 8
mov eax, esi
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub edx, 1
jne 0x405830
push 0xf0000000
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x405892
lea edi, [esi + 4]
push edi
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x405897
mov eax, dword [esi]
test eax, eax
je 0x40587f
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
mov eax, dword [edi]
test eax, eax
je 0x405892
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [edi], 0
pop edi
xor al, al
pop esi
ret
pop edi
mov al, 1
pop esi
ret
Function at 0x4086e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0x40a4c0
push 0
push 0x81
push esi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push dword [ebp + 0x14]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x408774
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax]
cmp eax, 0xffffffff
je 0x408789
lea eax, [ebp - 0x20]
push eax
push esi
call edi
test eax, eax
jne 0x408760
lea eax, [ebp - 0x20]
push eax
call ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x408740
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bc0c
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bc0c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a350
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.Wow64DisableWow64FsRedirection
mov esi, ecx
push str.kernel32.dll
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a38e
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
call eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0x6b
push 0xfffffffffffffffa
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
push 1
push 0x80
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
call esi
push 0x6b
push 0xfffffffffffffffa
push dword [ebp - 0xc]
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ebx, dword [ebp - 0xc]
push eax
push 0
push 0x80
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e8
push ebx
call esi
push 0x3e9
push ebx
call esi
push 0x3eb
push ebx
mov dword [0x430cb4], eax
call esi
push 0x3ef
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push str.v2.1
push 0x3ee
push ebx
call esi
push 0x42a436
push 0x3f1
push ebx
call esi
push str.STD_CTIME:
push 0x3f3
push ebx
call esi
push str.STD_MTIME:
push 0x3f4
push ebx
call esi
push str.MFT_CTIME:
push 0x3f6
push ebx
call esi
push str.MFT_MTIME:
push 0x3f7
push ebx
call esi
push str.MFT_METIME:
push 0x3f9
push ebx
call esi
push str.MFT_ATIME:
push 0x3f5
push ebx
call esi
push 1
push ebx
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ChangeWindowMessageFilter
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
pop ebx
test esi, esi
je 0x40a4a7
push 1
push 0x233
call esi
push 1
push 0x4a
call esi
push 1
push 0x49
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040bc0c
mov esp, ebp
pop ebp
ret
Function at 0x40af80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x430404
push 0
call fcn.0040d26f
mov edi, eax
mov dword [ebp - 8], 1
test edi, edi
je 0x40b12d
mov eax, dword [ebp + 8]
shr eax, 4
mov dword [ebp - 0x10], eax
lea ecx, [eax + 1]
movzx eax, cx
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
push 0
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x40b01c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b01c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b01c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40b012
cmp esi, edx
jae 0x40b01c
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40b000
cmp esi, edx
jae 0x40b01c
cmp word [esi], 0
jne 0x40b03d
mov ebx, dword [ebp - 8]
mov ecx, 0x430404
push ebx
call fcn.0040d26f
mov edi, eax
inc ebx
mov dword [ebp - 8], ebx
test edi, edi
je 0x40b12d
mov eax, dword [ebp - 0xc]
jmp 0x40afc0
test edi, edi
je 0x40b12d
mov eax, dword [ebp - 0x10]
inc eax
push 6
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x40b12d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b12d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b12d
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and ebx, 0xf
jbe 0x40b0aa
cmp esi, ecx
jae 0x40b12d
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ebx, 1
jne 0x40b094
cmp esi, ecx
jae 0x40b12d
movzx eax, word [esi]
test ax, ax
je 0x40b12d
push 0
push 0
push 0
push 0
push eax
lea ebx, [esi + 2]
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x40b138
mov ecx, dword [ebp - 4]
mov edx, 1
mov eax, dword [ecx]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x40b0f7
mov ecx, dword [ebp - 4]
push edi
call fcn.0040b280
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
push 0
push 0
push edi
push eax
movzx eax, word [esi]
push eax
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
cmp edi, dword [eax - 8]
jg 0x40b138
mov dword [eax - 0xc], edi
mov eax, dword [ecx]
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004082f0
int3
Function at 0x401cb3
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x401ce1
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x401cd8
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x401cd0
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x401d02
mov esp, ebp
pop ebp
ret

Function at 0x401d06
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x401d72
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x401d9f
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x401d8e
xor ecx, eax
xor edx, ebx
dec edi
jne 0x401d7f
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x401dc5
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x401d66
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x401df1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4023e7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x40242c
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x402432
add eax, 4
pop esi
dec esi
push esi
jne 0x402414
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8

Function at 0x40a2e0
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.0040a040
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x40a337
push ebx
push edi
call fcn.0040a150
push esi
mov ebx, esi
call fcn.0040a040
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x40a30e
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x40a350
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x40a3e2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x40a3d4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x40a3cc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x40a395
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x10024910
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 0x1002494e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10024946
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10024950
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10024936
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10024a20
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10024a36
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10024a51
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x100301e8
Capabilities:
Encode data using xor

Disassembly:
call 0x10030161
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x10030191
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x100301ad
xor edx, 0
jmp 0x100301b8
xor edx, edx
jmp 0x100301cf
jmp 0x100301db
xor eax, eax
push 0x8427d7c0
call 0x100301e8
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x10030224
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x100301fd
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1003023b
add eax, 0
jno 0x10030240
add esi, 0
ret 0x10
Function at 0x10030fa9
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x10030fcb
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1003116d
cmp edi, dword [ebp + 0x10]
jb 0x1003116d
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.10030a95
inc edi
jmp 0x10031054
jmp 0x10031061
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.10030a95
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.10030a95
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x100310b5
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x10031099
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.100310e3
add dword [eax], 0x39
jle 0x100310bf
sub al, 0xf5
mov ch, al
call fcn.100310f8
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x10032dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x10032de6
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x10032df7
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.10032e38
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx