joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42dd5a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x467dd4
call fcn.004506ab
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42dd7f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42ddc5
lea ecx, [ebp - 0x10]
call fcn.0040224e
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042c9ad
add esp, 0x10
push dword [ebp + 8]
call dword [0x46d400]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010a3
mov eax, esi
call fcn.00450783
ret 8

Function at 0x440a8b
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x440ab6
call fcn.0043427e
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [0x46d7b0]
mov dword [esi + 8], eax
test eax, eax
jne 0x440ad9
push eax
push dword [esi + 4]
call fcn.00440a11
push esi
push eax
mov ecx, 0x490888
call fcn.0044069f
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4414be
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x46b73d
call fcn.004506ab
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0044147e
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.0040224e
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [0x46d798]
mov dword [esi + 4], eax
test eax, eax
jne 0x441524
push eax
push dword [esi + 8]
call fcn.00440a11
push dword [esi + 0xc]
mov ecx, 0x490888
push eax
call fcn.0044069f
mov eax, esi
call fcn.00450783
ret 0x18
Function at 0x50d1d1
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea esp, [esp + 4]
pushal
lea esp, [esp + 0x20]
jmp fcn.004f4335

Function at 0x5214b7
Capabilities:
Encrypt data using aes

Disassembly:
add esp, 1
push edx
mov ebp, 0x3928706
lea esp, [esp + 3]
jmp 0x521496

Function at 0x5262e8
Capabilities:
Hash data with md5

Disassembly:
jmp 0x526a20
pushal
push dword [esp + 0xa]
jmp 0x526316
lea esp, [esp + 4]
je 0x4f5212
jne 0x5262cf
sub ecx, dword [edi + reloc.RASAPI32.dll_RasHangUpA]
mov byte [0x20d1b620], al
xchg ecx, eax
fcomp qword [ebp - 0x33]
xchg esp, eax
salc
sub al, 0x3f
pushal
sub esp, 0xc
lea esp, [esp + 0x2c]
add esp, 0x40
pushal
call fcn.00526910
bswap ebx
mov ebx, 0xfb2190b6
xchg bl, bh
lea esp, [esp + 0x2c]
pop ebx
jmp 0x526929
pushal
push dword [esp + 0xc]
push dword [esp + 0x16]
mov edi, dword [esp + 0x28]
add bx, 0x883a
jmp 0x5269eb

Function at 0x5269c9
Capabilities:
Hash data with md5

Disassembly:
mov word [esp], dx
push word [esp + 3]
lea esp, [esp + 2]
jmp 0x52696b

Function at 0x5269fe
Capabilities:
Hash data with md5

Disassembly:
push word [esp + 1]
push dword [esp + 2]
jmp 0x5269b3

Function at 0x616c89
Capabilities:
Execute anti-debugging instructions

Disassembly:
not cx
push dword [esp + 0x22]
mov byte [esp + 0x22], ch
bswap ecx
mov ax, dx
jmp 0x616cda
pushal
mov ax, 0xe5db
jmp 0x616c73
mov dword [esp + 0x2d], edx
lea eax, [ecx + ebx]
mov ecx, 0x51434990
ror dx, cl
mov dl, dh
cmc
jmp 0x616caa
mov cl, ch
mov ch, byte [esp + 0xd]
mov eax, dword [esp + 0xd]
mov al, ah
setnp cl
push dword [esp + 0x16]
jmp 0x616cc0

Function at 0x616fcc
Capabilities:
Execute anti-debugging instructions

Disassembly:
bsr ax, cx
rdtsc
pop ax
mov ch, byte [esp + 5]
rcr dx, cl
push word [esp + 5]
push word [esp + 5]
lea esp, [esp + 1]
jmp 0x616fad
Function at 0x617354
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dx, 0x335
mov dword [esp + 0x11], esi
push word [esp + 0xe]
xchg byte [esp + 0xe], ch
btr eax, esp
jmp 0x6173f5
pop word [esp + 0xe]
lea eax, [ebx*4]
pushal
lea esp, [esp + 0x43]
sub esp, 8
bswap eax
jmp 0x6173ad

Function at 0x617576
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edx, dword [esp + 0xa]
mov dword [esp + 4], eax
mov ax, bx
not dx
jmp 0x617597
inc dl
push word [esp + 2]
mov cx, 0x809d
xchg cl, ch
rdtsc
jmp 0x617549
xchg ecx, eax
inc dx
clc
jmp 0x61755f
mov edx, dword [esp + 7]
rcr dh, 7
bsr cx, bp
mov eax, dword [esp + 5]
jmp 0x6175f2
lea eax, reloc.RASAPI32.dll_RasHangUpA
btr edx, edi
xchg word [esp + 4], ax
cmc
shr ax, cl
add esp, 3
jmp 0x61757d
mov ecx, eax
mov eax, 0xd8d55230
rdtsc
neg dx
mov cl, byte [esp]
rcl cl, 3
jmp 0x61763d
mov ecx, ebp
mov eax, ebp
pop eax
lea ecx, [ebp*4]
lea eax, [ecx*4]
bsf dx, si
jmp 0x6175ae
lea edx, [eax - 0xb9]
xchg ah, ch
mov eax, 0xe76f03be
lea ecx, [esp + ebx]
inc ch
pop dword [esp]
jmp 0x6175cd
xchg word [esp], dx
btr ecx, esp
mov dh, byte [esp + 1]
setge ah
sub esp, 4
mov dword [esp], ebp
jmp 0x617663
sub esp, 2
and cx, 0x766a
mov edx, dword [esp]
xchg cx, dx
lea ecx, [eax + ebx]
jmp 0x617609
rdtsc
xchg edx, ecx
not eax
mov eax, 0x836ac5c
mov dl, dh
rdtsc
jmp 0x617624

Function at 0x61b250
Capabilities:
Execute anti-debugging instructions

Disassembly:
bsf ax, ax
cpuid
cpuid
push dword [esp + 3]
pop dword [esp]
mov bl, bh
jmp 0x61b26d
rdtsc
jmp 0x61b234
rdtsc
add esp, 4
bsf dx, ax
call fcn.0061b2b2
sbb al, 0x95
add eax, 0x843a9f6c
aaa
push ds
imul ecx, dword [eax - reloc.RASAPI32.dll_RasHangUpA], 0x7b718ddc
shr dh, 7
neg ah
lea esi, [ecx + 0x7b]
pop ecx
push edx
add ebp, ebp
jmp 0x61b254

Function at 0x61b2bf
Capabilities:
Execute anti-debugging instructions

Disassembly:
and bp, 0xfbaa
jmp 0x61b2ca
setae ch
bsf si, si
mov cl, ch
xchg edx, ebp
xchg dword [esp + 1], ecx
xchg edx, ebp
jmp 0x61b319
mov ah, byte [esp + 2]

Function at 0x61b709
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor ebx, esi
mov di, word [esp]
bswap esi
btr ebx, esp
mov bl, bh
mov ax, sp
jmp 0x61b73e
pop cx
inc dl
cpuid
mov bh, byte [esp]
mov bp, word [esp]
lea esi, reloc.RASAPI32.dll_RasHangUpA
jmp 0x61b6c8
clc
not bx
lea ebx, [eax - 0x39]
popal
jmp 0x61b6ee
push word [esp + 0xa]
not ch
mov bp, word [esp + 0xb]
xchg dword [esp + 1], esi
rdtsc
push word [esp + 0xc]
jmp 0x61b751
mov al, ah
rcl di, cl
sub esp, 0xa
rdtsc
mov dh, byte [esp + 5]
lea edi, [ecx - 0x5b]
jmp 0x61b713
mov cx, word [esp + 8]
mov edx, dword [esp + 2]
xchg edx, esi
mov edx, ebp
xchg edi, eax
cpuid
jmp 0x61b7fe
not cx
sub di, 0x9068
mov edi, dword [esp + 0x20]
lea edi, [esi + edi]
bswap eax
mov ax, word [esp + 0x22]
jmp 0x61b77d
mov dl, 0x44
xchg ch, dl
pushal
bswap edx
mov ax, di
pop ebx
jmp 0x61b796
sub esp, 0xc
xchg edi, ebp
mov bl, bh
setl ch
mov dx, 0x84c1
pop dword [esp + 6]
jmp 0x61b7cd
Function at 0x61b9df
Capabilities:
Execute anti-debugging instructions

Disassembly:
cpuid
cmc
mov ecx, dword [esp]
xchg byte [esp], cl
inc edx
inc ax
jmp 0x61ba68
lea ecx, [esp + edi]
add esp, 5
mov edx, dword [esp]
jmp 0x61b9c6
cpuid
push edx
setle dh
push word [esp + 0x1c]
mov ax, 0x800d
jmp 0x61ba0b
bsf si, ax
mov word [esp], dx
sub esp, 0x16
mov byte [esp + 0x13], ah
mov cl, ch
mov ebx, 0xfa3b485e
jmp 0x61ba28
lea ebp, [ebx + ebp]
mov si, word [esp + 1]
xchg esi, edx
bsr ax, bp
not cx
mov dl, 0xec
jmp 0x61ba41

Function at 0x61c0a3
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg ecx, edi
xchg bh, cl
pop dword [esp]
pop word [esp]
setnp dh
inc cl
jmp 0x61c06e
mov bx, 0x380b
bsr si, cx
setg ah
mov eax, dword [esp + 5]
push dword [esp + 6]
pop dword [esp]
jmp 0x61c006
cpuid
push esp
mov edx, dword [esp + 1]
rdtsc
push word [esp + 3]
add al, dh
jmp 0x61c087
not bh
setle ah
not ebp
sub esp, 0x1c
lea esp, [esp + 0x45]
xchg di, ax
jmp 0x61c0cd
xchg word [esp], si
add bx, 0xa2be
lea edx, [ecx*4]
rdtsc
cpuid
add esp, 1
jmp 0x61c045
pushal
push edx
pop ebx
lea eax, [ebx*4]
mov dword [esp + 0xf], esi
push word [esp + 0x1e]
jmp 0x61c057
mov edx, ebp
mov dword [esp + 7], esi
pop eax
jmp 0x61c02d
lea ecx, [esp + esi]
rdtsc
shr ah, 1
bsf bp, si
xchg ebp, eax
rdtsc
call fcn.0061c31d
rcr byte [esi - 0x34], cl
stosd dword es:[edi], eax
lea sp, [eax]
mov bl, 0x23
inc esi
mov ch, 0x50
and esi, edi
shl dword [esi - 0x79], 0xd7
inc cl
xchg di, dx
mov cx, word [esp]
mov cl, 0x52
lea ebx, [ebx*4]
inc si
jmp 0x61c0ac

Function at 0x61c31d
Capabilities:
Execute anti-debugging instructions

Disassembly:
cpuid
bswap eax
mov esi, ebp
mov dx, di
bswap edi
mov bl, 0xb8
jmp 0x61c208
rdtsc
inc dx
bsf si, si
mov cx, 0x7bb9
xchg bh, cl
add esp, 3
jmp 0x61c102
mov ecx, eax
lea edx, [ebp + 0x3f]
lea esi, [ebx*4]
mov dx, di
push word [esp + 1]
xchg si, ax
jmp 0x61c12b
bsf di, si
lea edi, [edi + edi]
inc eax
rdtsc
call int.0061c114
bswap ebp
lea esp, [esp]
btc ebx, ebx
mov edx, esi
mov al, 0x76
sub esp, 0x1a
jmp 0x61c260
mov dl, 0x3c
mov cx, 0x4415
xchg word [esp], di
jmp 0x61c2a3
mov eax, 0xecc76364
mov bp, sp
mov cl, 0x2a
not si
pop si
cmc
jmp 0x61c24a
lea eax, [ebx*4]
xchg word [esp + 2], dx
call fcn.0061c2ec
aad 0x56
les esp, [ebx - 0x11b847a2]
rcl ax, cl
inc dl
pop cx
stc
mov cl, 0x9a
mov word [esp], sp
jmp 0x61c14f
jmp 0x61c2bc

Function at 0x61c641
Capabilities:
Parse pe header

Disassembly:
push eax
jmp 0x617011
call fcn.00617016
call 0x61b067
jmp 0x61c617
movzx ebx, word [eax + 0x3c]
jmp 0x61c626
mov eax, dword [eax + 8]
push eax
jmp 0x61b062
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x61c5f1
pop eax
xor ax, ax
cmp word [eax], 0x5a4d
jmp 0x61c691
add ebx, eax
cmp word [ebx], 0x4550
jmp 0x61c669
mov dword [esp + 0x6c], edi
lea esp, [esp + 0x6c]
mov eax, dword fs:[0x30]
jmp 0x61c60d
sbb eax, 0x9c759764
out dx, eax
mul cl
and byte [ebx + 0xf], ah
test byte [eax + ebp*4 + 0x2675ffff], dh
je 0x616f23
jne 0x61c697
pushfd
sbb byte [esi - 0xd09e717], cl
jne 0x61c65f
invalid
je 0x61b07e
sub eax, 0x10000
jmp 0x61c61b
Function at 0x403c58
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.MSVCR71.dll__beginthreadex]
push edi
lea eax, [ebp - 8]
push eax
push 0x10000
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0
call esi
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x403ca2
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0xc]
push edi
call esi
mov edi, eax
add esp, 0x18
test edi, edi
je 0x403cbf
push 0xffffffffffffffff
push edi
call dword [0x405034]
lea eax, [ebp - 4]
push eax
push edi
call dword [0x405018]
push edi
call dword [0x40502c]
jmp 0x403cc8
push dword [ebp + 0x14]
call dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x404091
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0x14]
mov ebx, esi
call fcn.00403cd0
test al, al
pop ecx
jne 0x4040bf
push 1
push str.Error:_could_not_find_Java_SE_Runtime_Environment.
call fcn.004034c6
pop ecx
pop ecx
push 2
jmp 0x404150
push esi
call fcn.00403eb9
push 0
push str.i386
push esi
call fcn.00402ad1
add esp, 0x10
cmp eax, 1
jge 0x4040ec
push 1
push str.Error:_no_known_VMs.__check_for_corrupt_jvm.cfg_file_
call fcn.004034c6
pop ecx
pop ecx
push 1
jmp 0x404150
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402407
mov ebx, dword [ebp + 0x18]
mov edi, eax
push ebx
push esi
mov dword [ebp - 4], edi
mov byte [ebx], 0
call fcn.004031bc
add esp, 0x14
test al, al
jne 0x404156
push edi
call sub.MSVCR71.dll_strlen
push ebx
mov edi, eax
call sub.MSVCR71.dll_strlen
mov esi, str.Error:_no___s_JVM_at___s.
push esi
add edi, eax
call sub.MSVCR71.dll_strlen
add edi, eax
push edi
call sub.jli.dll_JLI_MemAlloc
push ebx
push dword [ebp - 4]
mov edi, eax
push esi
push edi
call dword [sym.imp.MSVCR71.dll_sprintf]
push 1
push edi
call fcn.004034c6
add esp, 0x28
push 4
call dword [sym.imp.MSVCR71.dll_exit]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4cb370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4cb38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x4f4074
push ecx
mov edi, eax
call fcn.004df198
mov esi, eax
add esp, 8
test esi, esi
jne 0x4cb3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.004df02e
push esi
call fcn.004defb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4ce850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x4ce8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x4f9720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x4ce8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.004df1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x4ce8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x4f9720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x4ce92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.004e0082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x4ce957
mov word [eax], si
add eax, 2
push eax
call fcn.004e0030
add esp, 4
jmp 0x4ce959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x4ce8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x4ce8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x4ceff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4cf080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x4cf0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x4f4458
push ecx
call fcn.004df1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.004df1e1
add esp, 0x10
jmp 0x4cf0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004df20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.004dedff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.004cf050
mov eax, dword [0x4f9728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x4cf13b
push esi
call fcn.004cefb0
add esp, 4
mov dword [0x4f9728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x4cf14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.004ceff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x4d2440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x4d24b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x4d248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4d2471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4d247e
add edx, ecx
cmp ebx, edx
jb 0x4d248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4d2467
xor ecx, ecx
jmp 0x4d24a2
test eax, eax
jne 0x4d2492
xor ecx, ecx
jmp 0x4d24a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.004d23c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x4d28f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4d2921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x4d2946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x4d296e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x4d2993
push ecx
push esi
call fcn.004d24c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x4d3c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x4d3c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x4d3c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x4d3c38
add edx, eax
cmp ebx, edx
jb 0x4d3c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x4d3c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x4d3c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x4d3c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x4d3cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4d3c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4d3ca8
add edx, ecx
cmp ebx, edx
jb 0x4d3cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4d3c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x4d3f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.004e0145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x4d3ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4d3fdd
lea eax, [esp + 0x18]
push eax
jmp 0x4d3fe2
push 0x4f9720
call fcn.004dffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x4d3fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x4d3f40
push 4
push ecx
push eax
call fcn.004e043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x4d4310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.004e0145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x4d43ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4d438d
lea eax, [esp + 0x18]
push eax
jmp 0x4d4392
push 0x4f9720
call fcn.004dffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x4d4360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x4d3f40
push 4
push ecx
push eax
call fcn.004e043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x4d5f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0x4d5fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4d5fcf
push ebx
push edi
push 0x4f9770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x4d5fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x4f9770
push esi
call ebx
test eax, eax
je 0x4d5fae
mov ebp, 3
cmp dword [0x4f9774], ebp
jne 0x4d5faa
push 0x3e8
call edi
push 0x4f9770
push esi
call ebx
test eax, eax
jne 0x4d5f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x4d5fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x4d5fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret