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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x50b450
mov esi, 1
push esi
call fcn.00521f47
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x50b4a2
call fcn.00522a6d
mov edi, eax
call fcn.0050dfa0
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x50b486
mov edx, dword [0x9d3b70]
mov dword [0x9d3b6c], edx
test al, 0x18
je 0x50b497
push esi
push 0x24
push 5
call fcn.0050e7f0
add esp, 0xc
test edi, edi
je 0x50b4bd
push 1
call fcn.00523d67
test byte [esp + 0x14], 0x20
je 0x50b4bd
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x50c5c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x50c6b4
cmp byte [edx], 0
je 0x50c6a7
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.0050c540
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0050c540
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0050c4b0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x50c671
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.0050c4f0
fmul qword [0x993148]
push ecx
fstp qword [esp]
call fcn.00520898
fadd qword [0x993140]
add esp, 8
call fcn.00520968
mov byte [ebx], al
inc ebx
dec edi
jne 0x50c644
lea ecx, [esp + 0x20]
push ecx
call fcn.0050c4f0
fmul qword [0x993148]
push ecx
fstp qword [esp]
call fcn.00520898
add esp, 8
call fcn.00520968
cmp esi, ebx
je 0x50c69d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x50c696
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4010d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
mov al, 0x64
xor ebx, ebx
push 0x407058
push str.dsp.hex
mov byte [esp + 0x20], 0x69
mov byte [esp + 0x21], 0x6e
mov byte [esp + 0x22], 0x74
mov byte [esp + 0x23], 0x20
mov byte [esp + 0x24], al
mov byte [esp + 0x25], 0x73
mov byte [esp + 0x26], 0x70
mov byte [esp + 0x27], 0x63
mov byte [esp + 0x28], 0x6f
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], 0x65
mov byte [esp + 0x2b], 0x20
mov byte [esp + 0x2c], 0x5b
mov byte [esp + 0x2d], 0x5d
mov byte [esp + 0x2e], 0x20
mov byte [esp + 0x2f], 0x3d
mov byte [esp + 0x30], 0x20
mov byte [esp + 0x31], 0x7b
mov byte [esp + 0x32], 0xa
mov dword [esp + 0x18], ebx
call fcn.0040137f
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x401169
push str.cannot_open_file_n
call fcn.0040132e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x20
ret
push 0x407038
push str.dsp.h
call fcn.0040137f
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x401197
push str.cannot_open_file_n
call fcn.0040132e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x20
ret
movsx eax, byte [esp + ebx + 0x18]
push esi
push eax
call fcn.0040130a
add esp, 8
inc ebx
cmp ebx, 0x13
jb 0x401197
push ebp
push edi
call fcn.004012f0
mov bl, al
add esp, 4
cmp bl, 0x3a
jne 0x401208
push edi
call fcn.004012f0
mov byte [esp + 0x14], al
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00401000
push edi
mov ebx, eax
call fcn.004012f0
mov byte [esp + 0x1c], al
mov edx, dword [esp + 0x1c]
push edx
call fcn.00401000
shl ebx, 4
add esp, 0x10
add eax, ebx
mov dword [esp + 0x14], eax
mov ebp, 6
push edi
call fcn.004012f0
add esp, 4
dec ebp
mov bl, al
jne 0x4011f8
jmp 0x40127b
mov eax, dword [esp + 0x14]
shr eax, 1
je 0x40125a
mov dword [esp + 0x18], eax
push esi
push 0x30
call fcn.0040130a
push esi
push 0x78
call fcn.0040130a
add esp, 0x10
mov ebp, 4
movsx eax, bl
push esi
push eax
call fcn.0040130a
push edi
call fcn.004012f0
add esp, 0xc
dec ebp
mov bl, al
jne 0x40122c
push esi
push 0x2c
call fcn.0040130a
mov eax, dword [esp + 0x20]
add esp, 8
dec eax
mov dword [esp + 0x18], eax
jne 0x401214
push edi
call fcn.004012f0
push esi
push 0x20
call fcn.0040130a
push edi
call fcn.004012f0
push esi
push 0xa
mov bl, al
call fcn.0040130a
add esp, 0x18
cmp bl, 0xff
jne 0x4011ad
push esi
push 0x30
call fcn.0040130a
push esi
push 0x78
call fcn.0040130a
push esi
push 0x66
call fcn.0040130a
push esi
push 0x66
call fcn.0040130a
push esi
push 0x66
call fcn.0040130a
push esi
push 0x66
call fcn.0040130a
push esi
push 0x7d
call fcn.0040130a
push esi
push 0x3b
call fcn.0040130a
add esp, 0x40
push esi
push 0xa20
call fcn.0040130a
push esi
push 0x20
call fcn.0040130a
add esp, 0x10
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x402ccd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407398
cmp edx, dword [eax]
je 0x402cef
add eax, 8
inc ecx
cmp eax, 0x407428
jl 0x402ce0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407398]
jne 0x402e1d
mov eax, dword [0x4078f8]
cmp eax, 1
je 0x402df7
test eax, eax
jne 0x402d20
cmp dword [0x407060], 1
je 0x402df7
cmp edx, 0xfc
je 0x402e1d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402d57
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004039f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403450
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402d9a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403450
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406404
push edi
call fcn.00404ad0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004039f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403a00
lea eax, [ebp - 0xa0]
push 0x4063e4
push eax
call fcn.00403a00
push dword [esi + 0x40739c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403a00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404a3e
add esp, 0x2c
pop edi
jmp 0x402e1d
lea eax, [ebp + 8]
lea esi, [esi + 0x40739c]
push 0
push eax
push dword [esi]
call fcn.00403450
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 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x16ad4b6b
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2e6c51b4
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x42e006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x6062485
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x7b950c3d
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x2bf93ea7
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x42cd70
nop
mov ecx, 0xec17ba1
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x100012f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x20], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 8], 0
jmp 0x10001353
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x18]
jae 0x100013e8
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0x14]
cmp cl, byte [edx]
jne 0x100013ba
cmp byte [ebp - 1], 0
je 0x100013b1
mov eax, dword [ebp - 0x10]
mov cl, byte [eax + 1]
mov byte [ebp - 2], cl
mov edx, dword [ebp - 0x14]
cmp cl, byte [edx + 1]
jne 0x100013ba
add dword [ebp - 0x10], 2
add dword [ebp - 0x14], 2
cmp byte [ebp - 2], 0
jne 0x1000137d
mov dword [ebp - 0x18], 0
jmp 0x100013c2
sbb eax, eax
or eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0
jne 0x100013e3
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
jmp 0x100013ea
jmp 0x1000134a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100015f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001660
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1000164f
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x10001662
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x10001662
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000a0b7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000a0f6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000a0f6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000a0f6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000a0f6
cmp dword [ecx + 0x74], 0xe
jbe 0x1000a0f6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000cdd2
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 0x1000ce6f
push ebx
push esi
call fcn.1000cd9b
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.1000cd2f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000ce1c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000ce6e
push edi
push eax
call fcn.1000b762
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000ce3c
call fcn.1000b8f9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000ce6d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000cd2f
add esp, 0x20
test eax, eax
jne 0x1000ce5b
push edi
call fcn.1000b8f9
jmp 0x1000ce63
push ebx
call fcn.1000b8f9
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 0x1000d0dc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015250
push 0x10015248
push str.FlsAlloc
push 0x1f
call fcn.1000cff8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d110
push dword [ebp + 8]
mov ecx, esi
call dword [0x100131b0]
call esi
jmp 0x1000d116
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000d15a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015260
push 0x10015258
push str.FlsGetValue
push 0x21
call fcn.1000cff8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d191
push dword [ebp + 8]
mov ecx, esi
call dword [0x100131b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000d199
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015268
push 0x10015260
push str.FlsSetValue
push 0x22
call fcn.1000cff8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d1d3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100131b0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100126d0
Capabilities:
Parse pe header

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

Function at 0x659a6d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x663168
cmp edx, dword [eax]
je 0x659a8f
add eax, 8
inc ecx
cmp eax, 0x6631f8
jl 0x659a80
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x663168]
jne 0x659bbd
mov eax, dword [0xa68a90]
cmp eax, 1
je 0x659b97
test eax, eax
jne 0x659ac0
cmp dword [0x663094], 1
je 0x659b97
cmp edx, 0xfc
je 0x659bbd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x659af7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0065a450
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065a8e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x659b3a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065a8e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65eeac
push edi
call fcn.0065c7b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0065a450
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065a460
lea eax, [ebp - 0xa0]
push 0x65ee8c
push eax
call fcn.0065a460
push dword [esi + 0x66316c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065a460
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0065c724
add esp, 0x2c
pop edi
jmp 0x659bbd
lea eax, [ebp + 8]
lea esi, [esi + 0x66316c]
push 0
push eax
push dword [esi]
call fcn.0065a8e0
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 0x406e14
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436590]
jne 0x406e1e
repz ret
jmp fcn.0040898b

Function at 0x40709b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x436590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405400
and dword [ebp - 0x14], 0
cmp dword [0x43c290], 0
mov dword [ebp - 0x18], eax
jne 0x40714e
push 0x401df8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4071f6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401dec
push ebx
call edi
test eax, eax
je 0x4071f6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x401ddc
push ebx
mov dword [0x43c290], eax
call edi
push eax
call esi
push 0x401dc8
push ebx
mov dword [0x43c294], eax
call edi
push eax
call esi
push 0x401dac
push ebx
mov dword [0x43c298], eax
call edi
push eax
call esi
mov dword [0x43c2a0], eax
test eax, eax
je 0x40714e
push 0x401d94
push ebx
call edi
push eax
call esi
mov dword [0x43c29c], eax
mov eax, dword [0x43c29c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4071a7
cmp dword [0x43c2a0], ecx
je 0x4071a7
push eax
call esi
push dword [0x43c2a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4071a7
test ebx, ebx
je 0x4071a7
call edi
test eax, eax
je 0x40719e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40719e
test byte [ebp - 8], 1
jne 0x4071a7
or dword [ebp + 0x10], 0x200000
jmp 0x4071da
mov eax, dword [0x43c294]
cmp eax, dword [ebp - 0x18]
je 0x4071da
push eax
call esi
test eax, eax
je 0x4071da
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4071da
mov eax, dword [0x43c298]
cmp eax, dword [ebp - 0x18]
je 0x4071da
push eax
call esi
test eax, eax
je 0x4071da
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43c290]
call esi
test eax, eax
je 0x4071f6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4071f8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406e14
leave
ret
Function at 0x401690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4016a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4016e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4016e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4016e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4016d0
cmp esi, eax
jb 0x4016ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4055f0
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x234], 0
jne 0x40564c
mov ecx, dword [esi + 0x20]
push ebx
push edi
push 0
lea eax, [esi + 0x210]
push eax
push ecx
mov dword [esi + 0x234], 1
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push esi
push 0x406600
push 0
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
push 0
push 0
push esi
push 0x409a80
push 0
push 0
call edi
push eax
call ebx
pop edi
pop ebx
ret

Function at 0x405c70
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405cd1
lea edx, [esp + 8]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x405cc7
mov ecx, dword [esp]
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x14
ret
Function at 0x406100
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
mov eax, dword [0x45e700]
xor eax, esp
mov dword [esp + 0x230], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 4], esi
test esi, esi
jne 0x40614a
push eax
push eax
push 0x4514b4
call fcn.0041e535
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0042e0b9
add esp, 0x234
ret
push ebp
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_Process32FirstW
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4061b3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x1c]
push ecx
push 1
push 0x1fffff
call edi
mov esi, eax
test esi, esi
je 0x40619a
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call ebx
push esi
call sub.PSAPI.DLL_EmptyWorkingSet
push esi
call ebp
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406176
mov esi, dword [esp + 0x10]
pop edi
pop ebx
push esi
call ebp
mov ecx, dword [esp + 0x238]
pop ebp
pop esi
xor ecx, esp
call fcn.0042e0b9
add esp, 0x234
ret