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

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43a013
push esi
call fcn.0043d0f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43a00c
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 0x43a099
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43a082
mov eax, dword [esi + 8]
test eax, eax
je 0x43a037
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 0x43a07e
cmp eax, 2
je 0x43a082
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43a02a
cmp eax, 3
je 0x43a05d
cmp eax, 1
jne 0x43a02a
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 0x43a02a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43a02a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043a0c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43a0a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043a0c0
add esp, 4
pop esi
ret

Function at 0x445be0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x445c83
test eax, eax
jbe 0x445c83
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x445c83
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x445c2e
xor esi, esi
jmp 0x445c34
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x445c5f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00447bc0
add esi, eax
push esi
mov ebx, esi
call fcn.00447bc0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x445c40
pop ebp
test edi, edi
pop edi
jne 0x445c83
test ebx, ebx
je 0x445c83
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0044a030
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x445da5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x445ebd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x445ebd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0045a6cb
mov esi, eax
test esi, esi
je 0x445ebd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x445ebd
mov ecx, esi
call fcn.00445d30
cmp edi, eax
jge 0x445ebd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x445e43
mov dword [esp + 0x34], 1
jmp 0x445e9e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x445ebd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00445330
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x45b06f
Capabilities:
Get graphical window text

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

Function at 0x45c761
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 0x45c7a3
call fcn.00462214
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45c7a3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45c79a
xor eax, eax
jmp 0x45c7ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045c7b1
pop edi
pop esi
pop ebx
ret 4
Function at 0x462744
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 0x462772
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x462790
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004626aa
jmp 0x462790
mov eax, dword [esi + 0x14]
test eax, eax
je 0x462790
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004626aa
test edi, edi
mov eax, edi
jne 0x46277a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
ror eax, 0x18
and ebx, 0x7c
bswap esi
ror edi, 0x5f
mov edx, 0xd7
add eax, 0xb3
neg edi
bswap eax
sub esi, 0x54
add esi, 0x7b
ror edx, 0xba
neg eax
not ebx
inc edi
sbb esi, 0xfe
dec ebx
mov ebx, 1
sbb ebx, 0xe8
rol ebx, 0x46
rcl edx, 0xe
dec edi
rcr esi, 0x2e
rcr edi, 0xf
rol ebx, 0xef
imul eax
not esi
neg edx
dec edi
sbb eax, 0x21
ror edx, 9
not eax
dec esi
and edx, 1
bswap esi
not ebx
neg esi
bswap edi
dec edx
inc eax
add ebx, 0x58
neg edx
and esi, 0x95
rcr esi, 0x52
bswap edi
imul eax
sbb ebx, 0x90
rcl ebx, 0
bswap edi
inc ebx
sbb edx, 0x91
xor ecx, ecx
xor edi, edi
mov ebx, 0xef
imul esi
bswap edx
rcl edi, 0x8b
neg esi
and ebx, 0x58
add eax, 0x53
neg ebx
not ebx
dec eax
bswap edi
rcl edx, 0x2a
sbb ebx, 0xc2
or edx, 0x99
dec eax
imul esi
inc edi
sbb ebx, 0x37
mov eax, 0xe7
rcl edi, 0x63
not esi
and edx, 0x3d
inc edx
inc edx
dec edx
and esi, 0x56
or edi, 0x97
dec edi
inc ebx
sub edi, 0x9c
add edi, 0x4a
imul edi
bswap esi
neg eax
bswap edi
mov eax, 0x5b
mov esi, 0xb
imul ebx
imul ebx
dec edi
rcr esi, 0x6c
sbb edi, 0xaa
sub ebx, 0xc7
and ebx, 0xe8
rcl ebx, 0x6c
bswap edi
rol ebx, 0xa
bswap eax
inc esi
rcr ebx, 0x14
mov ecx, dword [ebp + 0xc]
add edx, 0x55
ror eax, 0xba
not edx
rcr esi, 0x8e
not ebx
rol esi, 0xd8
inc ebx
and esi, 0x41
dec ebx
neg edi
dec edx
inc ebx
ror edi, 0xf7
not ebx
and eax, 0x21
rcl ebx, 0xd0
rol edx, 0x89
add edi, 0x5d
rcl eax, 0x6a
imul edx
imul edi
and edx, 0x47
sub esi, 0x3c
sbb esi, 0x7b
dec eax
neg esi
sub ebx, 0x30
ror esi, 0x6b
mov edx, 0x79
ror edx, 0x7d
add ebx, 2
mov ebx, 0x9d
inc edi
dec eax
sbb edx, 0xf5
ror esi, 0x90
rcl edx, 0xf7
sub edi, 0x8d
bswap ebx
ror esi, 0x3f
or edi, 0x50
bswap edi
dec edx
imul esi
sub edi, 0x3c
ror edx, 0x90
sub esi, 0xdc
ror eax, 0xd7
imul edx
or ebx, 0x3a
mov edi, dword [ebp + 8]
xor esi, eax
xor ebx, esi
mov esi, ebx
xor ebx, eax
mov eax, ebx
mov esi, ebx
not byte [edi]
mov eax, esi
mov eax, ebx
mov eax, ebx
sub byte [edi], 0x87
mov ebx, ebx
mov ebx, esi
mov eax, ebx
add byte [edi], 0x34
xor esi, eax
mov eax, ebx
mov ebx, esi
imul byte [edi]
inc edi
loop 0x4011b7
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4011f0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
neg eax
inc edi
and ebx, 0x20
rcr ebx, 0x7c
neg esi
rol ebx, 0xbc
rol esi, 0xbc
rcr edi, 0xd1
or esi, 0x9e
add esi, 0x26
imul esi
sub eax, 0x42
dec edx
rcl edi, 0x99
bswap ebx
ror eax, 0x64
not esi
ror esi, 0xf9
or eax, 0x65
rol edi, 0xe9
sbb eax, 0x47
add esi, 0xff
ror edx, 0x10
rcl edi, 0x16
bswap esi
sub eax, 0x2c
imul ebx
dec edx
or ebx, 0x9d
add edx, 0x14
neg edi
or edx, 0x61
not edx
ror edx, 0xc5
bswap edx
inc ebx
or edx, 0xb4
sbb eax, 0xc9
add esi, 0x2e
rol edx, 0xf7
dec edi
rcl esi, 0x2e
bswap esi
rcr eax, 0x63
neg esi
rcl edx, 0x3b
sbb ebx, 0x89
sbb edx, 0x90
ror edi, 0x2d
bswap edi
xor ecx, ecx
xor edi, edi
imul edi
neg esi
bswap edi
sub edx, 0x32
bswap esi
imul ebx
sub eax, 0xbf
add eax, 0xda
ror eax, 0x59
or edi, 0x56
and eax, 0x89
bswap edi
bswap ebx
imul edi
imul edi
and esi, 0x10
neg edx
neg eax
imul edx
and ebx, 0xcc
dec edx
add edx, 0xf6
not edi
inc edi
bswap edx
ror ebx, 0x37
dec edx
rol eax, 0xbc
rcr eax, 0x25
bswap eax
rol eax, 0x34
rol edi, 0xe
inc edx
not esi
neg eax
bswap edx
inc edi
imul edi
dec edi
not esi
bswap edi
or edi, 0x40
inc edx
sbb edi, 0xdf
add edi, 4
mov eax, 0x32
imul ebx
imul eax
mov edi, 0x9e
sbb eax, 0xd3
mov ecx, dword [ebp + 0xc]
not ebx
add edi, 0xfc
rcl edx, 0xf8
dec edi
sbb eax, 0xb1
bswap edx
inc edx
inc esi
dec edx
bswap edi
dec esi
ror edx, 0xc0
not eax
dec edi
dec esi
add eax, 0x84
or esi, 0x3f
imul edx
imul ebx
and ebx, 0xf
add esi, 0xe
dec esi
rol esi, 0x8e
bswap eax
rol edx, 0x4d
rcl edi, 0xdf
bswap ebx
ror ebx, 0xe
add esi, 0x1a
imul esi
or edx, 0xa5
not eax
or eax, 0x99
dec eax
imul edx
neg esi
neg ebx
not eax
mov eax, 0xda
dec edx
sbb edi, 0xfb
add ebx, 0xde
or edi, 0x83
inc esi
dec edx
mov eax, 0xee
or edx, 0x4b
or esi, 0x86
rcr ebx, 0xd7
not esi
mov edi, dword [ebp + 8]
mov esi, ebx
mov ebx, esi
xor eax, eax
not byte [edi]
xor esi, eax
mov esi, eax
xor ebx, eax
add byte [edi], 0x50
mov eax, eax
xor esi, ebx
mov eax, ebx
sub byte [edi], 0x76
mov esi, ebx
xor eax, eax
mov ebx, ebx
imul byte [edi]
inc edi
loop 0x4013aa
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4069b5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d3d0]
jne 0x4069bf
repz ret
jmp fcn.00408259
Function at 0x4010bc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010ce
mov eax, dword [0x40d08b]
shl eax, 2
mov dword [0x40d08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0040546c
pop edx
call fcn.00404808
call fcn.00405470
push 0
call fcn.004066e8
pop ecx
push 0x40d034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40d093], eax
push 0
jmp fcn.0040a1ec

Function at 0x401394
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x44d37c]
mov edx, dword [0x44d384]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x44d380]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x44d388]
mov dword [0x450e38], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4014d8
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401443
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4014da
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.004058dc
add esp, 0xc
test eax, eax
je 0x40145d
xor eax, eax
jmp 0x4014da
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401486
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4014da
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x44d378], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x44d378]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4014d1
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4014da
mov eax, 1
jmp 0x4014da
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4030e8
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x40311c
mov edx, dword [eax + 8]
test edx, edx
jne 0x40310b
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x403118
add edx, esi
cmp ebx, edx
jb 0x403129
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x403101
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x403164
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x40317e
xor eax, eax
jmp 0x4032fe
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x403192
xor eax, eax
jmp 0x4032fe
cmp word [ebx + 0x14], 0xe0
jne 0x4031a2
cmp word [ebx + 0x18], 0x10b
je 0x4031a9
xor eax, eax
jmp 0x4032fe
mov dword [0x450c20], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004030e8
add esp, 8
test eax, eax
jne 0x4031d4
xor eax, eax
jmp 0x4032fe
mov edx, dword [0x450c20]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00403130
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x403206
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x4032fe
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x4032d0
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x4032c2
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x4032bd
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x4032b4
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x4032a9
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x4032a9
test cl, cl
je 0x40329e
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4032a9
add eax, 2
add edx, 2
test cl, cl
jne 0x403282
jne 0x4032a9
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x4032fe
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x403268
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403240
jmp 0x4032fc
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x4032f4
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x4032f0
cmp dword [eax], 0
je 0x4032f0
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x4032fe
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x4032d7
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403410
Capabilities:
Query service status

Disassembly:
push ebx
add esp, 0xffffffe4
push 0xf003f
push str.ServicesActive
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
test eax, eax
jne 0x40342d
xor eax, eax
jmp 0x40346a
push 0xf01ff
push str.NTice
push eax
call sub.ADVAPI32.DLL_OpenServiceA
mov ebx, eax
push esp
push ebx
call sub.ADVAPI32.DLL_QueryServiceStatus
test eax, eax
jne 0x403454
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
xor eax, eax
jmp 0x40346a
cmp dword [esp + 4], 4
jne 0x403468
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, 1
jmp 0x40346a
xor eax, eax
add esp, 0x1c
pop ebx
ret

Function at 0x4034cc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x4034e5
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4034ec
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call sub.KERNEL32.DLL_GetCurrentProcessId
push eax
push 1
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
push 0
push eax
call sub.KERNEL32.DLL_TerminateProcess
pop ebp
ret
Function at 0x4037c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
je 0x4037d1
jne 0x4037d1
jmp 0x403755
cmp esi, 8
jb 0x40380f
xor ebx, ebx
jmp 0x403806
mov eax, dword [ebp + 0x10]
mov edx, ebx
add edx, edi
push eax
push edx
call fcn.00403814
add esp, 8
movsx ecx, word [ebp + 0xc]
mov eax, 0x64
sub eax, ecx
imul esi
mov ecx, 0x64
xor edx, edx
div ecx
add ebx, eax
add ebx, 8
mov eax, esi
sub eax, 8
cmp ebx, eax
jbe 0x4037da
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403814
Capabilities:
Check for software breakpoints
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.004018d0
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x4038c7
mov eax, fcn.004014e4
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x4038c7
mov eax, fcn.004039b8
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x4038c7
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x4038c7
add ebx, 0x9e3779b9
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
add ecx, eax
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x40388f
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4038e4
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.004018d0
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x40399a
mov eax, fcn.004014e4
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x40399a
mov eax, fcn.004038e4
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x40399a
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x40399a
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403962
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403a08
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.004018d0
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403abe
mov eax, fcn.004014e4
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403abe
mov eax, fcn.004039b8
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403abe
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403abe
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403a86
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret