joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4745e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x474613
push esi
call fcn.00482870
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47460c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x474699
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x474682
mov eax, dword [esi + 8]
test eax, eax
je 0x474637
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47467e
cmp eax, 2
je 0x474682
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47462a
cmp eax, 3
je 0x47465d
cmp eax, 1
jne 0x47462a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47462a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47462a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004746c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4746a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004746c0
add esp, 4
pop esi
ret

Function at 0x474f40
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x474f61
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x474f61
mov eax, dword [eax + 0x44]
test eax, eax
je 0x474f61
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x496e40
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x496e50
mov esi, 1
push esi
call fcn.004ad4a7
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x496ea2
call fcn.004adfad
mov edi, eax
call fcn.00499990
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x496e86
mov edx, dword [0x526bd0]
mov dword [0x526bcc], edx
test al, 0x18
je 0x496e97
push esi
push 0x24
push 5
call fcn.0049a1e0
add esp, 0xc
test edi, edi
je 0x496ebd
push 1
call fcn.004aeb55
test byte [esp + 0x14], 0x20
je 0x496ebd
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 0x497fc0
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 0x4980b4
cmp byte [edx], 0
je 0x4980a7
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.00497f40
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00497f40
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.00497eb0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x498071
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.00497ef0
fmul qword [0x506f00]
push ecx
fstp qword [esp]
call fcn.004abe48
fadd qword [0x506ef8]
add esp, 8
call fcn.004abf18
mov byte [ebx], al
inc ebx
dec edi
jne 0x498044
lea ecx, [esp + 0x20]
push ecx
call fcn.00497ef0
fmul qword [0x506f00]
push ecx
fstp qword [esp]
call fcn.004abe48
add esp, 8
call fcn.004abf18
cmp esi, ebx
je 0x49809d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x498096
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 0x498480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x4984b0
mov byte [edi + esi], 2
jmp 0x4984e7
test al, 4
je 0x4984ba
mov byte [edi + esi], 0xd
jmp 0x4984e7
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x4984d3
mov byte [edi + esi], 2
jmp 0x4984e7
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x4984e3
mov byte [edi + esi], 0x19
jmp 0x4984e7
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x498497
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x49855b
cmp dl, 0xd
je 0x49855b
xor edx, edx
jmp 0x498560
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x49854b
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x498580
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.00496e40
mov esi, eax
add esp, 8
test esi, esi
jne 0x4985a1
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.00499bd0
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x4985c6
push esi
call fcn.00496ed0
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.004b7c5c
push ebx
push edi
mov ebp, eax
call fcn.00499c40
push 0x498600
push ebp
push esi
call fcn.0049af70
push esi
call fcn.00496ed0
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x499900
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x5f71a0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5f70c0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x49997b
push 0x4c
push 1
call fcn.004ae3d5
mov esi, eax
add esp, 8
test esi, esi
jne 0x499943
push 0x5f71a0
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x5f70c0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x5ec57c]
inc eax
lea edx, [esi + 0xc]
mov dword [0x5ec57c], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.0049d390
add esp, 8
mov byte [esi + 0x3c], 1
push 0x5f71a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x499e00
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.004adfad
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.004b7c5c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x499efa
call fcn.004adfad
cmp dword [eax], 0
je 0x499e47
call fcn.004adfad
mov ebp, dword [eax]
jmp 0x499e4a
or ebp, 0xffffffff
call fcn.00499990
test esi, esi
mov dword [eax], ebp
jne 0x499e5f
call fcn.004adfad
cmp dword [eax], 4
je 0x499eaf
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x499e92
cmp esi, 0xffffffff
je 0x499ed4
test al, 6
je 0x499e92
call fcn.00499990
mov ecx, dword [eax]
push ecx
push ebx
call fcn.0049d3c0
add esp, 4
push eax
push 0x24
push 9
call fcn.0049a1e0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x499ef2
test al, 6
je 0x499ea0
test ah, 2
je 0x499ef2
test esi, esi
jbe 0x499efe
test ah, 2
je 0x499efe
add dword [esp + 0x18], esi
sub edi, esi
call fcn.004adfad
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.004b7c5c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x499efa
jmp 0x499e34
call fcn.00499990
mov eax, dword [eax]
push eax
push ebx
call fcn.0049d3c0
add esp, 4
push eax
push 0x24
push 2
call fcn.0049a1e0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x499f0b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x499f14
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x4affd4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4afff4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004adf3a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4b0017
test byte [esp + 8], 2
je 0x4b0017
call fcn.004adfad
mov dword [eax], 0xd
call fcn.004adfb6
mov dword [eax], 5
jmp 0x4afff0
xor eax, eax
ret
Function at 0x4c1d1d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c1d55
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.004bfdd4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004bfdac
jmp 0x4c1d61
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c3413
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 0x4c3455
call fcn.004c8ec2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c3455
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c344c
xor eax, eax
jmp 0x4c345d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c3463
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c93f2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c9420
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c943e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c9358
jmp 0x4c943e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c943e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c9358
test edi, edi
mov eax, edi
jne 0x4c9428
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 0x40dfc9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40dfd8
pop dword [ebp - 0x3c]
mov eax, 0x40dfd8
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x52521
push 0
mov eax, 0x9b3c3024
sub eax, 0x9af77d74
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x4f05
mov esi, eax
mov edx, 0x475e00
add edx, dword [ebp - 0x3c]
mov ebx, 0x990eb6de
sub ebx, 0xbd57d0ca
mov edi, dword [edx]
xor edi, ebx
xor dword [ebp - 0x2c], 0x553c2b57
mov dword [esi], edi
add dword [ebp - 0x38], 0x861a52ff
add esi, 0x5277fa3c
sub esi, 0x5277fa38
add edx, 0x608ec151
add edx, 0x9f713eb3
loop 0x40e026
add eax, 0xe1b65779
add eax, 0x1e4ad76e
mov ebx, eax
add eax, 0xad5a78c4
add eax, 0x52a58741
mov ecx, 0xbd8677c9
sub ecx, 0xbd4677c9
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

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 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 0x401090
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [eax], 0xfffffff6
je 0x401167
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401167
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401167
lea ecx, [ebp + 8]
push ebx
push ecx
push edi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 8]
push 0
push eax
push edx
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x40115f
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x401158
push esi
call fcn.00401000
add esp, 4
test eax, eax
je 0x401148
mov ecx, dword [esi + 0x10]
mov ax, word [esi + 0x1c]
add ecx, esi
push eax
push ecx
call fcn.00401050
add esp, 8
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401810
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x418810]
test eax, eax
je 0x40185b
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push eax
push 0x414038
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x418810]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push edx
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push 0x4172fc
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x404e30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x100
push 0
push eax
call fcn.00401480
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x404f13
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call fcn.004015b0
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x404e78
mov eax, 0xd
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push ebx
push esi
call fcn.00401590
add esp, 0xc
push 4
push 0x4188a0
push esi
call fcn.00401540
mov ecx, dword [0x4188a0]
add esp, 0xc
push ecx
call fcn.0040c620
mov edx, dword [0x4188a0]
add esp, 4
mov edi, eax
push edx
push edi
push esi
call fcn.00401540
mov eax, dword [0x4188a0]
add esp, 0xc
push 0
push eax
push edi
call fcn.00405c40
mov ecx, dword [0x4188a0]
add esp, 0xc
push ecx
push edi
call fcn.00402470
mov edx, dword [0x4188a0]
add esp, 8
push edx
push edi
call fcn.004025d0
add esp, 8
test eax, eax
jne 0x404f18
mov eax, dword [0x4188a0]
push edi
lea ecx, [ebx + eax + 4]
mov dword [0x418888], ecx
call fcn.0040c6d0
add esp, 4
push esi
call fcn.00401580
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, 3
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405280
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.00404f20
add esp, 0xc
mov dword [0x4172d0], eax
test eax, eax
jne 0x4052ae
call fcn.00404bb0
test eax, eax
mov dword [0x4172d0], eax
je 0x4052db
jle 0x4052c4
push 0x30
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402f00
add esp, 0x10
call fcn.00405100
mov eax, dword [0x4172d0]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00405100
test eax, eax
mov dword [0x4172d0], eax
je 0x405302
push 0x30
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402f00
mov eax, dword [0x4172d0]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405980
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
xor ecx, ecx
lea edx, [ebp - 0x400]
mov eax, ecx
mov esi, 8
test al, 1
je 0x4059a7
shr eax, 1
xor eax, 0xedb88320
jmp 0x4059a9
shr eax, 1
dec esi
jne 0x40599a
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0xff
jle 0x405993
mov eax, dword [ebp + 0xc]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4059f1
mov edx, dword [ebp + 8]
lea esi, [eax + 1]
mov eax, dword [ebp + 0x10]
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
inc edx
shr eax, 8
mov ecx, dword [ebp + ecx*4 - 0x400]
xor eax, ecx
dec esi
jne 0x4059cd
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0xc]
push edi
call fcn.0040cdc0
add esp, 4
xor ecx, ecx
test edi, edi
mov ebx, eax
jle 0x405e7f
mov eax, dword [ebp + 8]
push esi
sub eax, ebx
mov dword [ebp + 0xc], eax
mov eax, ecx
lea esi, [ecx + ebx]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dl, byte [edx + eax]
mov eax, dword [ebp + 0xc]
xor dl, byte [eax + esi]
inc ecx
cmp ecx, edi
mov byte [esi], dl
jl 0x405e62
pop esi
mov eax, ebx
pop edi
pop ebx
pop ebp
ret

Function at 0x40d8f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x418540]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40d90f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x41853c], 1
mov byte [0x418538], bl
jne 0x40d969
mov ecx, dword [0x41ae08]
test ecx, ecx
je 0x40d957
mov esi, dword [0x41ae04]
sub esi, 4
cmp esi, ecx
jb 0x40d957
mov eax, dword [esi]
test eax, eax
je 0x40d950
call eax
mov ecx, dword [0x41ae08]
sub esi, 4
cmp esi, ecx
jae 0x40d942
push 0x41401c
push 0x414014
call fcn.0040d9a0
add esp, 8
push 0x414024
push 0x414020
call fcn.0040d9a0
add esp, 8
test ebx, ebx
jne 0x40d990
push ebp
mov dword [0x418540], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x408b54
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], 0x9e3779b9
mov esi, edx
mov dword [ebp - 0x38], edi
lea ecx, [ebp - 8]
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
call fcn.00408a98
mov eax, dword [esi + 8]
add dword [ebp - 8], 0x23f
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [0x2d4cb14]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x408bdb
push 0x4010f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x2d4cb14]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d4cb58]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x2d4cb58], eax
mov eax, dword [0x2d4cb60]
cmove eax, dword [ebp - 0x24]
mov dword [0x2d4cb60], eax
mov eax, dword [ebp - 8]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x2d4cb5c], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, edi
mov dword [ebp - 0x14], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
dec esi
jne 0x408ba3
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408cb5
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x408cf1
cmp dword [0x2d4cb14], 0x959
jne 0x408ce1
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00408b54
add edi, 8
dec esi
jne 0x408cc5
pop edi
pop esi
pop ebp
ret 4