joyce8/EMBER2024-capa huggingface dataset:
Function at 0x590b28
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6817f8
cmp edx, dword [eax]
je 0x590b4a
add eax, 8
inc ecx
cmp eax, 0x681888
jl 0x590b3b
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6817f8]
jne 0x590c78
mov eax, dword [0x685928]
cmp eax, 1
je 0x590c52
test eax, eax
jne 0x590b7b
cmp dword [0x67ed84], 1
je 0x590c52
cmp edx, 0xfc
je 0x590c78
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x590bb2
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00590e40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00588fc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x590bf5
lea eax, [ebp - 0x1a4]
push eax
call fcn.00588fc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x622fd0
push edi
call fcn.00584d70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00590e40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00590e50
lea eax, [ebp - 0xa0]
push 0x6741c8
push eax
call fcn.00590e50
push dword [esi + 0x6817fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00590e50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00594004
add esp, 0x2c
pop edi
jmp 0x590c78
lea eax, [ebp + 8]
lea esi, [esi + 0x6817fc]
push 0
push eax
push dword [esi]
call fcn.00588fc0
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 0x598a90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00584c60
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x598b5b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x598b5b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x598b0e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x598b19
or bh, 8
and edi, 0x8000000
je 0x598b34
mov eax, dword [0x68707c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x598b5b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x598f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x598f5b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x598f7f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x598f9a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x59c872
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x59c894
cmp dword [edi + 0x3c], 0
jne 0x59c894
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.005aad9a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0059c8c1
pop edi
pop esi
pop ebx
ret 8

Function at 0x59df0b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x59df43
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005a102a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005a1002
jmp 0x59df4f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x59df53
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x6851b8
mov ecx, edi
call fcn.005a0de6
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x59dfa6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x59dfb9
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.005a102a
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.005a1002
jmp 0x59dfb9
mov ecx, esi
call fcn.005a0055
test eax, eax
je 0x59dfb9
push edi
mov ecx, eax
call fcn.0059df0b
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x59f7ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x59f830
call fcn.005aad9a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x59f830
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x59f827
xor eax, eax
jmp 0x59f838
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0059f83e
pop edi
pop esi
pop ebx
ret 4
Function at 0x5abee5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.005aad9a
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x5abf22
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5abf22
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x5abf26
xor eax, eax
jmp 0x5abfa4
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0059cff9
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x5abf5e
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x5abf48
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.005ac095
push ebx
mov edi, eax
call fcn.0059d022
test edi, edi
pop ecx
je 0x5abfa0
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.005abe5e
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.005abfa9
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x5aedc9
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x5aedf1
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x5aee02
push 2
call edi
test ax, ax
jge 0x5aee02
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0059d55c
cmp dword [esi + 0x30], ebx
jne 0x5aeedc
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0059d55c
cmp eax, dword [esp + 0x34]
jne 0x5aeedc
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x5aee78
push 1
push pe_nt_image_headers32
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x5aeebd
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x5aeedc
cmp eax, 0x205
je 0x5aeedc
cmp eax, 0x201
je 0x5aeedc
cmp eax, 0x204
je 0x5aeedc
cmp eax, ebx
jne 0x5aeea3
cmp dword [esp + 0x1c], 0x1b
je 0x5aeedc
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x6853c8]
jbe 0x5aeed2
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x5aee35
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x30003c25
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3000231c]
jne 0x3000404d
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x300098c8], eax
mov dword [0x300098c4], ecx
mov dword [0x300098c0], edx
mov dword [0x300098bc], ebx
mov dword [0x300098b8], esi
mov dword [0x300098b4], edi
mov word [0x300098e0], ss
mov word [0x300098d4], cs
mov word [0x300098b0], ds
mov word [0x300098ac], es
mov word [0x300098a8], fs
mov word [0x300098a4], gs
pushfd
pop dword [0x300098d8]
mov eax, dword [ebp]
mov dword [0x300098cc], eax
mov eax, dword [ebp + 4]
mov dword [0x300098d0], eax
lea eax, [ebp + 8]
mov dword [0x300098dc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30009818], 0x10001
mov eax, dword [0x300098d0]
mov dword [0x300097cc], eax
mov dword [0x300097c0], 0xc0000409
mov dword [0x300097c4], 1
mov eax, dword [0x3000231c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x300091dc]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x30009810], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30002358
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x30009810], 0
jne 0x3000413d
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x3000465f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
xor esi, esi
inc ebx
cmp dword [ebp + 8], esi
je 0x300046cd
lea eax, [ebp + 8]
push eax
push 0x20019
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.MSO.dll_Ordinal_1358]
test eax, eax
jne 0x300046cd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x3000127c
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x300046c0
cmp dword [ebp - 8], 4
jne 0x300046c0
xor ebx, ebx
cmp dword [ebp - 0xc], esi
sete bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x300046df
push esi
push esi
push esi
push 2
push 2
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x30005442
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.MSO.dll_Ordinal_1074]
test eax, eax
je 0x300054f2
push esi
mov esi, dword [sym.imp.MSO.dll_Ordinal_295]
push edi
push dword [ebp + 8]
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea eax, [edi + eax + 1]
cmp eax, dword [ebp + 0x14]
jl 0x30005477
xor eax, eax
jmp 0x300054f0
mov esi, dword [ebp + 0x10]
push ebx
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call dword [sym.imp.MSO.dll_Ordinal_6877]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.MSO.dll_Ordinal_6873]
push esi
call dword [sym.imp.MSO.dll_Ordinal_1284]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x300054ed
push 1
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.MSO.dll_Ordinal_403]
mov esi, eax
cmp esi, 0xffffffff
je 0x300054ed
push edi
lea eax, [ebp + 8]
push eax
push 0x7e
push 0x30001290
push esi
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x300054e6
cmp dword [ebp + 8], 0x7e
jne 0x300054e6
xor ebx, ebx
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret 0x10
Function at 0xe0af79
Capabilities:
Authenticate hmac
Parse pe header

Disassembly:
push ebp
bt bp, si
xchg ebp, eax
bt edx, 0x19
mov ebp, esp
lea esp, [esp - 0x50]
ror al, cl
btr edx, 0x14
push ebx
push esi
lahf
or dx, 0x642a
push edi
mov edi, dword [ebp + 8]
and ch, 0xb9
mov ecx, dword [edi + 0x38]
shl bx, cl
mov eax, dword [edi + 0x10]
shl dl, cl
bsf ebx, ecx
mov edx, dword [edi + 0x3c]
mov dword [ebp - 0x20], eax
xor ax, ax
add ah, 0x2f
rcl ebx, 0x64
mov eax, dword [edi + 0x40]
mov ebx, dword [edi + 0x34]
btr si, cx
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + 0x44]
dec si
mov esi, dword [edi + 0x20]
clc
cmp ebx, esp
mov dword [ebp - 0x30], eax
sar ah, 0xd6
sbb ax, sp
mov dword [ebp - 0x38], ecx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x2c], edx
bsr edx, edx
cwde
mov edx, 1
shl edx, cl
btc ax, dx
rol cx, cl
mov ecx, dword [edi + 4]
mov eax, 1
shl eax, cl
movsx ecx, si
mov ecx, dword [edi + 0x14]
dec edx
mov dword [ebp - 0x34], ecx
movzx ecx, sp
not ch
mov ecx, dword [edi + 0x24]
dec eax
clc
cmp sp, 0x4d21
mov dword [ebp - 0x48], eax
shl ah, 0xb4
mov eax, dword [edi]
mov dword [ebp - 0x40], eax
sub ah, dh
mov eax, dword [edi + 0x28]
cmp ax, si
test ch, 0x40
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x2c]
stc
test esp, 0x68b63f58
test bx, sp
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x18]
cmc
test bp, sp
cmp edx, 0x58457763
mov dword [ebp - 0xc], ecx
test bp, bx
mov ch, 0xb7
mov ecx, dword [edi + 0x30]
stc
test ax, si
mov dword [ebp - 4], eax
bt eax, ebp
btc ax, 0xb1
add eax, 0x582a09ef
mov eax, dword [edi + 0x1c]
clc
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x28], 0
bswap ecx
Function at 0x5253e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x525433
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x52541a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52bdf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55cdde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0052c710
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x6af06c
call fcn.0054be79
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x52be83
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0054be79
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x52be7c
push 0
mov ecx, eax
call fcn.00522ef0
mov dword [esi + 0xc], eax
jmp 0x52be85
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x52be85
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x401000
Capabilities:
Terminate process

Disassembly:
mov dword [0x402452], eax
mov edx, eax
xor edi, edi
push 2
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
xor esi, esi
push dword [0x403583]
call dword [sym.imp.winmm.dll_waveOutClose]
add eax, 6
test eax, 0xb
jne 0x401036
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
ret
Function at 0x10005d17
Capabilities:
Parse pe header

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

Function at 0x10007831
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10011770
push 0x10011768
push str.FlsAlloc
push 0x1f
call fcn.1000774d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007865
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000f108]
call esi
jmp 0x1000786b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100078af
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10011780
push 0x10011778
push str.FlsGetValue
push 0x21
call fcn.1000774d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100078e6
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000f108]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100078ee
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10011788
push 0x10011780
push str.FlsSetValue
push 0x22
call fcn.1000774d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007928
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000f108]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10009704
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 0x100097a1
push ebx
push esi
call fcn.100096cd
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.10009661
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000974e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100097a0
push edi
push eax
call fcn.10007181
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000976e
call fcn.10007147
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000979f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10009661
add esp, 0x20
test eax, eax
jne 0x1000978d
push edi
call fcn.10007147
jmp 0x10009795
push ebx
call fcn.10007147
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 0x1000e010
Capabilities:
Parse pe header

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

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x10001010
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10015460
push 0x10004180
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x100010b3
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x100010b3
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x100010b3
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x100010b3
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x100010bc
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10003277
mov esp, ebp
pop ebp
ret