joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016db
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x416f10
push ebx
push esi
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
lea eax, [esi + esi*2]
shl eax, 3
sub eax, esi
mov dword [edi], 0
mov dword [edi + 4], 0
lea eax, [eax + eax*2]
lea ecx, [esi + eax*2]
mov eax, dword [esp + 0x14]
shl ecx, 4
lea edx, [eax*8]
mov ecx, dword [ecx + 0x485cd8]
sub edx, eax
lea edx, [ebx + edx*4]
mov dx, word [ecx + edx*2 + 6]
test dx, dx
jne 0x416f64
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
cmp dx, 2
jne 0x4170cd
lea edx, [eax*8]
sub edx, eax
add edx, ebx
fld qword [ecx + edx*8 + 0x10]
call sub.MSVCRT.dll__ftol
mov ebx, eax
push ebx
call fcn.00401f55
add esp, 4
test eax, eax
jne 0x416f98
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
cmp eax, 0x200
jg 0x417052
je 0x417041
sub eax, 0x100
je 0x417002
dec eax
jne 0x4170fe
mov eax, dword [esp + 0x20]
test eax, eax
lea eax, [esi + esi*2]
jne 0x416fe5
shl eax, 3
sub eax, esi
lea eax, [eax + eax*2]
lea ecx, [esi + eax*2]
xor eax, eax
lea edx, [ebx + ecx*4]
fild dword [edx*4 + 0x485d40]
fmul qword [0x4753c8]
fstp qword [edi]
pop edi
pop esi
pop ebx
ret
shl eax, 3
sub eax, esi
lea eax, [eax + eax*2]
lea ecx, [esi + eax*2]
xor eax, eax
lea edx, [ebx + ecx*4]
fild dword [edx*4 + 0x485d40]
fstp qword [edi]
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x20]
push ebx
test eax, eax
jne 0x417029
call fcn.00401b27
mov dword [esp + 0x24], eax
add esp, 4
fild dword [esp + 0x20]
xor eax, eax
fmul qword [0x4753c8]
fstp qword [edi]
pop edi
pop esi
pop ebx
ret
call fcn.00401b27
mov dword [esp + 0x24], eax
add esp, 4
fild dword [esp + 0x20]
xor eax, eax
fstp qword [edi]
pop edi
pop esi
pop ebx
ret
push ebx
call fcn.00401311
fstp qword [edi]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x201
je 0x4170a3
cmp eax, 0x400
jne 0x4170fe
mov eax, dword [esp + 0x20]
push ebx
test eax, eax
jne 0x41708b
call fcn.004015a5
mov dword [esp + 0x24], eax
add esp, 4
fild dword [esp + 0x20]
xor eax, eax
fmul qword [0x4753c8]
fstp qword [edi]
pop edi
pop esi
pop ebx
ret
call fcn.004015a5
mov dword [esp + 0x24], eax
add esp, 4
fild dword [esp + 0x20]
xor eax, eax
fstp qword [edi]
pop edi
pop esi
pop ebx
ret
lea eax, [esi + esi*2]
shl eax, 3
sub eax, esi
lea eax, [eax + eax*2]
lea ecx, [esi + eax*2]
lea edx, [ebx + ecx*2]
mov eax, dword [edx*8 + 0x485bb0]
mov dword [edi], eax
xor eax, eax
mov ecx, dword [edx*8 + 0x485bb4]
mov dword [edi + 4], ecx
pop edi
pop esi
pop ebx
ret
cmp dx, 3
jne 0x4170e6
mov dword [edi], 0
mov dword [edi + 4], 0x40c38800
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea edx, [eax*8]
sub edx, eax
add edx, ebx
mov eax, dword [ecx + edx*8 + 0x10]
mov dword [edi], eax
mov ecx, dword [ecx + edx*8 + 0x14]
mov dword [edi + 4], ecx
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x401767
Capabilities:
Write file on windows

Disassembly:
jmp 0x413580
mov eax, dword [esp + 8]
mov edx, dword [0x488474]
push ebx
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
sub ebx, 0x12c
push esi
push edi
lea esi, [ebx*8 + 0x488530]
push 0x4846d0
push edx
mov dword [esi], eax
mov dword [esi + 4], ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
mov eax, dword [0x485658]
push 0
lea ecx, [eax + ebx*8]
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 1
push 8
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x28
pop edi
pop esi
pop ebx
ret
Function at 0x40199c
Capabilities:
Write file on windows

Disassembly:
jmp 0x413440
push ebx
mov ecx, dword [0x488474]
push esi
mov al, byte [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
sub edi, 0x258
push 0x4846d0
push ecx
lea ebx, [edi + 0x48c9f8]
mov byte [ebx], al
call dword [sym.imp.MSVCRT.dll_fopen]
mov edx, dword [0x485660]
mov esi, eax
add edx, edi
push 0
push edx
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 1
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x28
pop edi
pop esi
pop ebx
ret
Function at 0x401a8c
Capabilities:
Parse credit card information

Disassembly:
jmp 0x452a90
mov ecx, dword [esp + 4]
sub esp, 0x10
lea eax, [ecx + ecx*2]
push ebp
shl eax, 3
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*2]
shl ecx, 4
mov edx, dword [ecx + 0x485cd8]
lea ebp, [ecx + 0x485cd8]
fld qword [edx + 0xc0]
fcomp qword [0x474a78]
fnstsw ax
test ah, 0x40
jne 0x452c21
push 0xcd
call fcn.00401b27
add esp, 4
test eax, eax
je 0x452c21
mov eax, dword [ebp]
push 0xcd
mov ecx, dword [eax + 0x1e0]
mov edx, dword [eax + 0x1e4]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0xf8]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0xfc]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.00401b27
mov dword [esp + 0x1c], eax
add esp, 4
fild dword [esp + 0x18]
fmul qword [esp + 4]
fadd qword [esp + 0xc]
fcom qword [0x487fb8]
fnstsw ax
test ah, 0x41
jne 0x452b4c
fstp st(0)
mov dword [0x487c0c], 3
mov eax, 0x34
pop ebp
add esp, 0x10
ret
push ebx
push esi
push edi
mov edi, dword [ebp]
xor ebx, ebx
lea ecx, [edi + 0x1f8]
lea edx, [edi + 0x2a0]
mov si, word [ecx]
movsx eax, si
cmp eax, 0x3f
je 0x452ba3
cmp eax, 0x45
je 0x452ba3
cmp eax, 0x43
je 0x452ba3
cmp eax, 0x42
je 0x452ba3
cmp si, 0x3a
jne 0x452bb2
inc ebx
cmp word [edx], 0x3b
jne 0x452b95
add ecx, 0x188
add edx, 0x188
jmp 0x452b60
add ecx, 0x1c0
add edx, 0x1c0
jmp 0x452b60
inc ebx
add ecx, 0xe0
add edx, 0xe0
jmp 0x452b60
test ebx, ebx
jle 0x452c15
mov ecx, 0x1c0
mov edx, 0x1f8
fst qword [ecx + edi + 0x20]
mov edi, dword [ebp]
movsx eax, word [edx + edi]
cmp eax, 0x3f
je 0x452c06
cmp eax, 0x45
je 0x452c06
cmp eax, 0x43
je 0x452c06
cmp eax, 0x42
je 0x452c06
cmp word [ecx + edi + 0xe0], 0x3b
jne 0x452bf8
add ecx, 0x188
add edx, 0x188
jmp 0x452c12
add ecx, 0x1c0
add edx, 0x1c0
jmp 0x452c12
add ecx, 0xe0
add edx, 0xe0
dec ebx
jne 0x452bc0
pop edi
pop esi
pop ebx
xor eax, eax
fstp st(0)
pop ebp
add esp, 0x10
ret
xor eax, eax
pop ebp
add esp, 0x10
ret
Function at 0x401b3b
Capabilities:
Set registry value

Disassembly:
jmp 0x425d00
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push 0
push eax
push 0
push 0xf003f
push 0
push str.REG_DWORD
push 0
push ecx
push reloc.UNLHA32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x425d53
mov ecx, dword [esp + 4]
lea edx, [esp + 0xc]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret
or eax, 0xffffffff
ret
Function at 0x401cc1
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412200
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jbe 0x41222c
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
mov ecx, dword [esi]
push 1
xor eax, ecx
push 1
push eax
call fcn.004013ca
add esp, 0xc
add esi, 4
dec edi
jne 0x412212
pop esi
pop edi
ret
mov eax, dword [esp + 8]
pop edi
ret
Function at 0x401ee2
Capabilities:
Write file on windows

Disassembly:
jmp 0x413630
push ebx
mov ecx, dword [0x488474]
push esi
mov eax, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
sub edi, 0x190
push 0x4846d0
push ecx
lea ebx, [edi*4 + 0x488210]
mov dword [ebx], eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edx, dword [0x485654]
mov esi, eax
push 0
lea eax, [edx + edi*4]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 1
push 4
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x28
pop edi
pop esi
pop ebx
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4062da
Capabilities:
Encode data using xor

Disassembly:
ficom dword [edx + 0x59]
mov esi, 0xfffffffc
add esp, esi
mov dword [esp], ecx
mov esi, 0
mov ecx, 0
xor esi, ecx
mov edi, 0x8fd5252
xor edi, 0x8fdd252
xor esi, edi
mov edx, 0x5517d98b
xor edx, 0x4cf60b1d
push edx
mov edx, 0xf2e1f6b
mov ebx, 0x16cfd3fd
xor ebx, edx
pop ecx
xor ebx, ecx
xor esi, ebx
xor ecx, ecx
add ecx, esi
mov edx, 0xfffffffc
add esp, edx
mov dword [esp], ecx
mov ebx, 0x473042e6
xor ebx, 0x6da83665
mov ecx, 0x5dfcb4d9
mov edi, 0x7764d05a
xor edi, ecx
xor edi, ebx
push 0x3646af70
mov ebx, 0x25c65dcf
pop ecx
xor ebx, ecx
push 0x6903fcdf
mov esi, 0x7ac30e60
pop ecx
xor esi, ecx
xor esi, ebx
xor edi, esi
mov ecx, edi
mov ebx, ecx
mov edx, 4
sub esp, edx
mov dword [esp], ebx
call eax
pop edi
push 0x7b7550e3
mov esi, 0x387c7073
pop ecx
xor esi, ecx
push 0x780b6e90
mov ebx, 0x5c5faeb2
pop ecx
xor ebx, ecx
xor esi, ebx
mov ecx, esi
push ecx
mov ebx, 0x4d593bfe
xor ebx, 0xa90c8c6
push ebx
mov eax, 0x80
mov edx, 0x2094102f
xor eax, edx
pop ecx
xor eax, ecx
pop edi
xor eax, edi
mov edx, 0xe83a2a7
xor edx, 0x3d1f5245
push 0x426ad3fa
mov ebx, 0x71f62216
pop esi
xor ebx, esi
xor ebx, edx
mov edi, 0x493cd5f3
xor edi, 0x5d9af03a
push edi
mov esi, 0x173a9471
mov ecx, 0x3dcd1f9
xor ecx, esi
pop edx
xor ecx, edx
xor ebx, ecx
push 0x1a732c1
mov edi, 0xe688ed
pop edx
xor edi, edx
push edi
mov edx, 0x32009a44
mov edi, 0x490b0000
xor edx, edi
push 0x4a5d3949
mov esi, 0x30579592
pop edi
xor esi, edi
xor esi, edx
pop ecx
xor esi, ecx
push 0x54a8ab61
mov ecx, 0x54a8ab65
pop edi
xor ecx, edi
sub esp, ecx
mov edi, esp
push edi
pop edx
mov dword [edx], eax
mov edi, 0x344648f
xor edi, 0x344648b
sub esp, edi
push 0x2a2cafdd
mov edx, 0x2a2cafdd
pop ecx
xor edx, ecx
xor edx, esp
mov dword [edx], esi
xor eax, eax
mov al, byte [ebx]
add esi, eax
mov al, byte [esi]
mov ecx, 0x983e58
mov edi, 0x21048024
xor ecx, edi
mov edi, 0xb28fe87
mov edx, 0x9a507d9a
xor edx, edi
xor edx, ecx
cmp esi, 0
je 0x406413
pop esi
mov byte [ebx], al
dec ebx
pop eax
dec eax
mov edx, 0xbcd6651
mov edi, 0xbcd6651
xor edi, edx
push 0x77ce419
mov ecx, 0x77ce419
pop edx
xor ecx, edx
xor edi, ecx
xor edi, eax
or edi, 0
jne 0x406413
mov eax, 0x1311b420
mov ebx, 0x8a0000
xor eax, ebx
mov ebx, 0x6a58d6f1
mov edi, 0x798324da
xor edi, ebx
xor edi, eax
mov ecx, 0x2e201b0
mov edx, 0x6511a200
xor ecx, edx
mov esi, ecx
xor esi, 0xffffffff
and esi, 0x67f3bb90
and ecx, 0x980c446f
or ecx, esi
xor edi, ecx
call edi
pop ecx
pop ecx
ret
Function at 0x402abf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x208
push eax
push 0
push 0x401414
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x402b20
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x402b1b
shr eax, 1
xor ecx, ecx
cmp cx, word [esi + eax*2 - 2]
jne 0x402b1b
mov eax, dword [ebp - 8]
sub eax, 1
je 0x402b17
sub eax, 1
jne 0x402b1b
mov ecx, esi
call fcn.004029ca
test eax, eax
jne 0x402b20
xor eax, eax
jmp 0x402b20
mov eax, 0x3f7
pop esi
leave
ret 8

Function at 0x402ef0
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x403500
call fcn.00403278
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043c0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d18
cmp eax, esi
jne 0x402d0b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d1b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402cef
xor esi, esi
inc esi
cmp dword [0x4043c4], esi
jne 0x402d2d
push 0x1f
call fcn.00575000
pop ecx
jmp 0x402d67
cmp dword [0x4043c4], ebx
jne 0x402d61
mov dword [0x4043c4], esi
push 0x4011a8
push 0x40119c
call fcn.00402e4c
pop ecx
pop ecx
test eax, eax
je 0x402d67
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402e3c
mov dword [0x404034], esi
cmp dword [0x4043c4], esi
jne 0x402d8a
push 0x401198
push 0x40118c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043c4], 2
test edi, edi
jne 0x402d97
xor eax, eax
mov ecx, 0x4043c0
xchg dword [ecx], eax
cmp dword [0x4043c8], 0
je 0x402dc3
push 0x4043c8
call fcn.004030d0
pop ecx
test eax, eax
je 0x402dc3
push ebx
push 2
push ebx
mov esi, dword [0x4043c8]
mov ecx, esi
call dword [0x405168]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401ae1
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402e21
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402e35
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004031c5
jmp 0x402cd3
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x4034cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x4034db
pop dword [ebp - 0x48]
mov eax, 0x4034db
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xb3229468
sub dword [ebp - 0x58], 0x64d04f1d
mov dword [ebp - 0x54], 0x1ba4542a
add dword [ebp - 0x54], 0x168ef81b
mov dword [ebp - 0x50], 0xf3a8a5e7
sub dword [ebp - 0x50], 0xa75c61b9
mov dword [ebp - 0x4c], 0x41dcf149
add dword [ebp - 0x4c], 0xbe230eb7
lea eax, [ebp - 0x58]
push eax
mov eax, 0xb3a863e2
sub eax, 0xb368238e
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xe5cc0821
add dword [ebp - 0x58], 0x8ea66135
mov dword [ebp - 0x54], 0xff10e838
add dword [ebp - 0x54], 0x425b793d
mov dword [ebp - 0x50], 0x24020700
sub dword [ebp - 0x50], 0xc0929a94
mov dword [ebp - 0x4c], 0xe292b0cc
sub dword [ebp - 0x4c], 0xe292b0cc
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3b208
push 0
call eax
mov ecx, 0x58f7
xor ebx, ebx
add ebx, eax
mov edi, 0x3a0f12ad
sub edi, 0x39ce8ead
add edi, dword [ebp - 0x48]
mov edx, 0xce1cf0f4
xor dword [ebp - 0x30], eax
mov esi, dword [edi]
xor dword [ebp - 0x44], ebx
xor esi, edx
sub dword [ebp - 0x44], ecx
mov dword [ebx], esi
add ebx, 0xbbb918b7
sub ebx, 0xbbb918b3
add edi, 4
loop 0x4035e9
add eax, 0x47fdb7ad
sub eax, 0x47fc60fe
mov ebx, eax
add eax, 5
mov ecx, 0x7548be7a
add ecx, 0x8af74186
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1001152
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push 0x104
lea eax, [ebp - 0x170]
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call fcn.010010e4
cmp eax, 1
jl 0x100121b
push ebx
xor ebx, ebx
cmp byte [ebp - 0x170], bl
push esi
lea esi, [ebp - 0x170]
je 0x10011bb
cmp byte [esi], 0x3a
je 0x100119e
inc esi
cmp byte [esi], bl
jne 0x1001192
jmp 0x10011a1
mov byte [esi], bl
inc esi
cmp byte [esi], bl
je 0x10011bb
push 0x10010ac
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10011c1
lea esi, [ebp - 0x170]
push 0x29
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1001219
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x1001219
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1001219
push ebx
lea eax, [ebp - 0x14]
push eax
call sub.ole32.dll_CoRegisterSurrogateEx
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
xor eax, eax
leave
ret 0x10
Function at 0x40723c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409d14
test esi, esi
jne 0x407272
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409e9c
jmp 0x407290
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407180
mov edi, eax
test esi, esi
je 0x407290
cmp dword [ebx], 0
je 0x407290
dec esi
jmp 0x407279
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408964
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408e24
mov byte [esp], al
cmp byte [esp], 0
jne 0x408aed
test edi, edi
je 0x408aed
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408a2d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408a08
cmp edi, 0xffffffff
je 0x4089c9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4089c9
mov byte [esp], 0
jmp 0x408aed
cmp dword [esi], 1
jg 0x408a08
cmp dword [esi], 0
jne 0x4089fa
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4089fa
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408aed
lea eax, [esp + 0xc]
call fcn.00408620
dec ebp
test ebp, ebp
jg 0x4089ae
cmp edi, 0xffffffff
je 0x408a2d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408a2b
mov byte [esp], 0
jmp 0x408aed
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408972
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a2d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408b68
mov edx, eax
mov ebx, dword [0x61d8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408a91
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408a8f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408a91
xor edi, edi
cmp byte [esp], 0
je 0x408ab7
mov ebx, dword [esi]
test bl, 1
jne 0x408acd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a97
mov byte [esp + 1], 1
jmp 0x408acd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408ab7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408a44
cmp byte [esp], 0
je 0x408aed
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret