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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x587178]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x51ec92
cmp word [ebx], dx
jne 0x51ec92
or byte [eax + edi + 0x28], 4
jmp 0x51ec97
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x51edfa
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x51edda
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x51ecd8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x51ed0e
cmp eax, edx
jae 0x51ed1c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x51ecb3
jmp 0x51edfa
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x51edd5
cmp dword [ebp - 0x18], 0
je 0x51edd5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x587178]
test byte [eax + edi + 0x28], 0x48
je 0x51edab
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x51ed6f
mov word [esi], cx
jmp 0x51eda6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x587178]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x587178]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x587178]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x51edfa
pop eax
cmp word [ebp - 4], ax
jne 0x51edbb
cmp esi, ebx
jne 0x51edbb
mov word [esi], ax
jmp 0x51edf7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00518260
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x51edfa
push 0xd
pop eax
jmp 0x51edb6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x587178]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x51edf4
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x51edfa
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x51f8f9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x555a28
push 0x555a20
push 0x53b870
push 0x1f
call fcn.0051f724
mov esi, eax
add esp, 0x10
test esi, esi
je 0x51f92d
push dword [ebp + 8]
mov ecx, esi
call dword [0x53a750]
call esi
jmp 0x51f933
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x51f977
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x555a38
push 0x555a30
push str.FlsGetValue
push 0x21
call fcn.0051f724
mov esi, eax
add esp, 0x10
test esi, esi
je 0x51f9ae
push dword [ebp + 8]
mov ecx, esi
call dword [0x53a750]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x51f9b6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x555a40
push 0x555a38
push str.FlsSetValue
push 0x22
call fcn.0051f724
mov esi, eax
add esp, 0x10
test esi, esi
je 0x51f9f0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x53a750]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x525ab8
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00525a34
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x525c27
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x525c27
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x525bdc
jg 0x525b14
test eax, eax
je 0x525bd2
push 1
push 0x1000
call fcn.0051e30b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x525b37
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x525bc9
push 0x8000
push ebx
call fcn.00519827
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x525b60
jg 0x525b5b
cmp ecx, 0x1000
jb 0x525b60
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00517c10
add esp, 0x10
cmp eax, 0xffffffff
je 0x525ba5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x525b5b
jl 0x525b8c
test ecx, ecx
jne 0x525b4d
push dword [ebp - 0xc]
push ebx
call fcn.00519827
push esi
call fcn.0051ca3d
add esp, 0xc
xor ebx, ebx
jmp 0x525c35
cmp byte [edi + 0x24], 0
je 0x525bbc
cmp dword [edi + 0x20], 5
jne 0x525bbc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x525bc7
mov ebx, dword [edi + 0x18]
jmp 0x525bc9
xor ebx, ebx
push esi
call fcn.0051ca3d
pop ecx
jmp 0x525c35
test ecx, ecx
jg 0x525b9e
jl 0x525bdc
test eax, eax
jae 0x525b9e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00518260
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x525bfc
cmp byte [edi + 0x1c], 0
je 0x525b9e
jmp 0x525c2d
push ebx
call fcn.005259ca
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x525b9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x525c35
cmp byte [edi + 0x1c], 0
je 0x525c32
mov ebx, dword [edi + 0x18]
jmp 0x525c35
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00518260
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5260f7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x57a438]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x526142
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00526292
test al, al
jne 0x52613c
sub edx, 2
cmp edx, edi
jne 0x526122
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x526164
lea eax, [edi + 2]
cmp edx, eax
je 0x526164
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00526043
add esp, 0x10
jmp 0x52625e
push esi
lea ecx, [ebp - 0x255]
call fcn.00526292
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5261a7
push dword [ebp - 0x25c]
jmp 0x526154
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x5261e4
cmp word [ebp - 0x226], 0
je 0x526205
cmp word [ebp - 0x226], ax
jne 0x5261e4
cmp word [ebp - 0x224], 0
je 0x526205
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00526043
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x526251
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5261be
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x526239
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x52625e
push 0x525e73
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0052b870
add esp, 0x10
jmp 0x52622e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ac694
leave
ret

Function at 0x526b74
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x526b85
pop esi
ret
push ebx
push edi
push esi
call fcn.00526b3d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0051ca77
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x526bad
push ebx
push esi
push edi
call fcn.004fee20
add esp, 0xc
push 0
call fcn.0051ca3d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x526f7d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00526bc2
Function at 0x529001
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0051c752
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x529070
cmp esi, dword [ebp - 4]
je 0x52906b
cmp dword [ebp + 0xc], 0
je 0x52906b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x529048
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00528b53
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x529072
xor eax, eax
inc eax
jmp 0x529072
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5290d7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x57a438]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0051c752
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0051c752
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x52914e
cmp word [ecx], dx
je 0x52914e
mov eax, dword [0x55bc6c]
push edi
dec eax
push eax
push 0x55bb58
call fcn.00529076
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5291c1
cmp word [eax], dx
je 0x5291c1
mov eax, dword [edi]
test eax, eax
je 0x529172
cmp word [eax], dx
je 0x529172
lea eax, [ebp - 0x10]
push eax
call fcn.00528a59
jmp 0x52917b
lea eax, [ebp - 0x10]
push eax
call fcn.00528af4
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5291eb
mov eax, dword [0x55bb54]
push dword [ebp - 0x14]
dec eax
push eax
push 0x55b848
call fcn.00529076
add esp, 0xc
test al, al
je 0x5291eb
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5291b6
cmp word [eax], di
je 0x5291b6
lea eax, [ebp - 0x10]
push eax
call fcn.00528a59
pop ecx
jmp 0x5291ed
lea eax, [ebp - 0x10]
push eax
call fcn.00528af4
jmp 0x5291b3
mov eax, dword [edi]
test eax, eax
je 0x5291d8
cmp word [eax], dx
je 0x5291d8
lea eax, [ebp - 0x10]
push eax
call fcn.00528a0e
pop ecx
jmp 0x5291eb
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5292b6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00528efb
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5292b6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5292b6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5292b6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x529243
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0051fb35
test ebx, ebx
je 0x5292b1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0051fb35
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5292b6
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5292b6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00515aeb
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5292b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ac694
leave
ret
Function at 0x401002
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x45208c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
push esi
call fcn.0040c0e6
pop ecx
pop ecx
test eax, eax
je 0x40102d
xor al, al
jmp 0x4010ea
push 0x4472dc
push esi
call fcn.0040e233
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x401026
push esi
call fcn.00426f04
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.00421a3e
add esp, 0xc
test eax, eax
je 0x401060
push esi
call fcn.0041fb05
pop ecx
jmp 0x401026
mov eax, dword [ebp - 0x20]
inc eax
push edi
push eax
call fcn.0040c1db
mov edi, eax
pop ecx
push esi
test edi, edi
jne 0x40107c
call fcn.0041fb05
xor al, al
jmp 0x4010e8
mov eax, dword [ebp - 0x20]
push 0x32
push 1
push edi
mov dword [ebp - 0x38], eax
call fcn.0041fde1
add esp, 0x10
test eax, eax
jne 0x4010a8
cmp dword [ebp - 0x38], ebx
je 0x4010a8
push edi
call fcn.0040c1be
push esi
call fcn.0041fb05
xor al, al
jmp 0x4010e7
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov byte [eax + edi], bl
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4010d1
test dl, dl
je 0x4010d6
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4010d1
add eax, 2
add ecx, 2
test dl, dl
jne 0x4010b3
jmp 0x4010d6
sbb ebx, ebx
or ebx, 1
push edi
call fcn.0040c1be
push esi
call fcn.0041fb05
test ebx, ebx
sete al
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403372
mov esp, ebp
pop ebp
ret
Function at 0x401cda
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [ebp - 8]
push 0xf0000000
xor ebx, ebx
push 1
push ebx
push ebx
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x401d2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x401d17
xor eax, eax
jmp 0x401dc7
push 0xf0000008
push 1
push ebx
push ebx
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
je 0x401d10
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401d10
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x401d10
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push 4
pop ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push eax
push edi
push ecx
push dword [ebp - 4]
mov dword [ebp - 0xc], ecx
call ebx
test eax, eax
je 0x401d9f
push dword [edi]
call fcn.00403a03
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi]
push 0
push eax
call fcn.00404760
add esp, 0x10
push 0
push edi
push dword [esi]
push 2
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x401da3
xor eax, eax
jmp 0x401dc6
cmp dword [ebp - 4], 0
je 0x401db2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], 0
je 0x401dc3
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401fcd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push 0x4472dc
push dword [ebp + 8]
call fcn.0040e233
mov esi, eax
mov dword [ebp - 0x14], esi
pop ecx
pop ecx
test esi, esi
je 0x4021c6
push 2
push 0
push esi
call fcn.00422398
add esp, 0xc
test eax, eax
jne 0x4021c6
push esi
call fcn.00422add
mov ebx, eax
pop ecx
test ebx, ebx
jle 0x4021c6
lea ecx, [ebx + 1]
push edi
push ecx
call fcn.00403a03
mov edi, eax
mov dword [ebp - 0x18], edi
pop ecx
test edi, edi
jne 0x40202f
push 0xa
jmp 0x402053
push 0
push 0
push esi
call fcn.00422398
add esp, 0xc
test eax, eax
jne 0x402051
push esi
push ebx
push 1
push edi
call fcn.0041fde1
add esp, 0x10
cmp eax, ebx
je 0x402059
push 6
pop ebx
jmp 0x4021bc
xor eax, eax
mov dword [ebp - 0x10], edi
mov byte [edi + ebx], al
mov byte [ebp - 1], al
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x447b8c
call fcn.00401eef
pop ecx
pop ecx
test eax, eax
je 0x4021ae
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov cl, byte [eax]
cmp cl, 0x23
je 0x402190
cmp cl, 0x3b
je 0x402190
push eax
push 0x447b94
call fcn.00401ec1
mov ebx, eax
pop ecx
pop ecx
mov dword [ebp - 8], ebx
mov al, byte [ebx]
test al, al
je 0x402190
cmp al, 0x5b
jne 0x402140
lea eax, [ebp - 8]
inc ebx
push eax
push 0x447b98
mov dword [ebp - 8], ebx
call fcn.00401eef
pop ecx
pop ecx
test eax, eax
je 0x40213a
lea eax, [ebp - 8]
push eax
push 0x447b94
call fcn.00401eef
pop ecx
pop ecx
test eax, eax
jne 0x40213a
cmp dword [ebp + 0x18], eax
je 0x40211e
mov eax, dword [ebp + 0x18]
mov cl, byte [ebx]
cmp cl, byte [eax]
jne 0x402111
test cl, cl
je 0x40210d
mov cl, byte [ebx + 1]
cmp cl, byte [eax + 1]
jne 0x402111
add ebx, 2
add eax, 2
test cl, cl
jne 0x4020f1
xor eax, eax
jmp 0x402116
sbb eax, eax
or eax, 1
test eax, eax
sete byte [ebp - 1]
jmp 0x402190
mov edx, str.Strings
xor ecx, ecx
movzx eax, byte [ebx + ecx]
cmp al, byte [edx + ecx]
jne 0x40213a
inc ecx
cmp ecx, 8
jne 0x402125
mov byte [ebp - 1], 1
jmp 0x402190
mov byte [ebp - 1], 0
jmp 0x402190
cmp byte [ebp - 1], 0
je 0x402190
lea eax, [ebp - 8]
push eax
push 0x447b90
call fcn.00401eef
pop ecx
pop ecx
test eax, eax
je 0x402190
push ebx
push dword [ebp + 0xc]
call fcn.004021dc
pop ecx
pop ecx
test eax, eax
js 0x402190
cmp eax, esi
jae 0x402190
imul ebx, eax, 0x258
push 0x257
push dword [ebp - 8]
add ebx, edi
push ebx
call fcn.00421f20
add esp, 0xc
mov byte [ebx + 0x257], 0
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
push 0x447b8c
call fcn.00401eef
pop ecx
pop ecx
test eax, eax
jne 0x402085
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp dword [ebp - 0xc], eax
push 5
pop ebx
cmove ebx, ecx
push edi
call fcn.00403a36
pop ecx
pop edi
jmp 0x4021c9
push 6
pop ebx
test esi, esi
je 0x4021d4
push esi
call fcn.0041fb05
pop ecx
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40284d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x45208c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x40287d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4028d8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4028a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4028cf
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00426f2a
pop ecx
pop ecx
test eax, eax
je 0x4028cd
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4028a2
mov esi, 0x490
jmp 0x4028cf
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403372
mov esp, ebp
pop ebp
ret

Function at 0x402ac0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 5
mov ebx, str.MozillaMaintenance
push ebx
call fcn.00402db0
pop ecx
pop ecx
cmp eax, 1
je 0x402ae0
add eax, 0x4e20
jmp 0x402b5c
push esi
push edi
push 5
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x402afb
mov eax, 0x4269
jmp 0x402b5a
push 0x10
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x402b12
mov esi, 0x426a
jmp 0x402b51
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x402b48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x64
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
add eax, 0x64
mov dword [ebp - 4], eax
cmp eax, 0x1388
jb 0x402b15
jmp 0x402b4a
xor esi, esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402db0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x45208c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 5
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x402e04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 5
je 0x402dfa
xor eax, eax
cmp ecx, 0x429
setne al
add eax, 0xfe
jmp 0x402ef9
mov eax, 0xfd
jmp 0x402ef9
push 4
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x402e6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esi, 5
je 0x402e62
sub esi, 1
je 0x402e58
sub esi, 0x75
je 0x402e4e
sub esi, 0x3a9
je 0x402e44
mov eax, 0xef
jmp 0x402ef9
mov eax, 0xee
jmp 0x402ef9
mov eax, 0xed
jmp 0x402ef9
mov eax, 0xec
jmp 0x402ef9
mov eax, 0xeb
jmp 0x402ef9
imul eax, dword [ebp + 0xc], 0x3e8
mov dword [ebp - 0x2c], edi
mov edi, 0xcf
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x30], eax
test eax, eax
je 0x402eeb
lea eax, [ebp - 0x34]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x402eca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7c
jbe 0x402f0a
cmp eax, 0x41c
je 0x402ed2
cmp eax, 0x424
jbe 0x402f20
cmp eax, 0x426
jbe 0x402ed2
cmp eax, 0x45b
jne 0x402f20
mov edi, 0xde
jmp 0x402f25
mov edi, dword [ebp - 0x24]
cmp edi, 1
je 0x402eeb
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x2c]
add eax, 0x32
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x30]
jb 0x402e85
mov edi, dword [ebp - 0x24]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403372
mov esp, ebp
pop ebp
ret
je 0x402f46
sub eax, 5
je 0x402f3f
sub eax, 1
je 0x402f38
sub eax, 0x51
je 0x402f31
sub eax, 0x23
je 0x402f2a
mov edi, 0xdf
mov dword [ebp - 0x24], edi
jmp 0x402eeb
mov edi, 0xdb
jmp 0x402f25
mov edi, 0xdc
jmp 0x402f25
mov edi, 0xd9
jmp 0x402f25
mov edi, 0xda
jmp 0x402f25
mov edi, 0xdd
jmp 0x402f25

Function at 0x40c0db
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040be15

Function at 0x42e3ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042dfaf