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

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10055923
push esi
call fcn.10063b60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1005591c
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 0x100559a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10055992
mov eax, dword [esi + 8]
test eax, eax
je 0x10055947
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 0x1005598e
cmp eax, 2
je 0x10055992
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1005593a
cmp eax, 3
je 0x1005596d
cmp eax, 1
jne 0x1005593a
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 0x1005593a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1005593a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.100559d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x100559b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.100559d0
add esp, 4
pop esi
ret

Function at 0x10056240
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x10056261
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x10056261
mov eax, dword [eax + 0x44]
test eax, eax
je 0x10056261
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 0x100566b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x100566bb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x100567be
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x100d4b28]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100d4b28]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100d4b28]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100d4b28]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100d4b28]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100d4b28]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100d4b28]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100d4b28]
xor eax, edx
inc ecx
dec edi
jne 0x100566d6
pop edi
test esi, esi
je 0x100567e0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100d4b28]
xor eax, edx
inc ecx
dec esi
jne 0x100567c2
pop esi
pop ebx
not eax
ret
Function at 0x10070e70
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 0x10070f13
test eax, eax
jbe 0x10070f13
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x10070f13
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 0x10070ebe
xor esi, esi
jmp 0x10070ec4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x10070eef
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.1000fca0
add esi, eax
push esi
mov ebx, esi
call fcn.1000fca0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x10070ed0
pop ebp
test edi, edi
pop edi
jne 0x10070f13
test ebx, ebx
je 0x10070f13
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.10081a50
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x10071030
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 0x1007114d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1007114d
mov eax, dword [esi + 0x3c]
push eax
call fcn.100ae9a3
mov esi, eax
test esi, esi
je 0x1007114d
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 0x1007114d
mov ecx, esi
call fcn.10070fc0
cmp edi, eax
jge 0x1007114d
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 0x100710d3
mov dword [esp + 0x34], 1
jmp 0x1007112e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x1007114d
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.100705b0
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 0x10079a90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x10079adc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x10079adc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x10079ac6
push eax
call ebp
test ax, ax
jl 0x10079ad4
inc esi
add edi, 4
cmp esi, 6
jb 0x10079ab8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.10079790
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1007d880
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x1007d8e0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x1007d8e0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x1007d8e0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x1007d8e0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x1007d8f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x10091850
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call sub.WS2_32.dll_connect
ret
Function at 0x10096660
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x10096670
mov esi, 1
push esi
call fcn.10081c37
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100966c2
call fcn.1008275d
mov edi, eax
call fcn.100991c0
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x100966a6
mov edx, dword [0x10100dd8]
mov dword [0x10100dd4], edx
test al, 0x18
je 0x100966b7
push esi
push 0x24
push 5
call fcn.10099a10
add esp, 0xc
test edi, edi
je 0x100966dd
push 1
call fcn.10083eba
test byte [esp + 0x14], 0x20
je 0x100966dd
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 0x100977e0
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 0x100978d4
cmp byte [edx], 0
je 0x100978c7
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.10097760
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.10097760
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.100976d0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x10097891
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.10097710
fmul qword [0x100db850]
push ecx
fstp qword [esp]
call fcn.100805a8
fadd qword [0x100db848]
add esp, 8
call fcn.10080678
mov byte [ebx], al
inc ebx
dec edi
jne 0x10097864
lea ecx, [esp + 0x20]
push ecx
call fcn.10097710
fmul qword [0x100db850]
push ecx
fstp qword [esp]
call fcn.100805a8
add esp, 8
call fcn.10080678
cmp esi, ebx
je 0x100978bd
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x100978b6
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 0x100979c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
push edi
lea edi, [eax + ecx]
cmp eax, edi
jae 0x100979e8
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
mov dl, byte [eax]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
inc eax
cmp eax, edi
jb 0x100979d9
pop esi
pop edi
ret
Function at 0x10097ca0
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 0x10097cd0
mov byte [edi + esi], 2
jmp 0x10097d07
test al, 4
je 0x10097cda
mov byte [edi + esi], 0xd
jmp 0x10097d07
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x10097cf3
mov byte [edi + esi], 2
jmp 0x10097d07
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x10097d03
mov byte [edi + esi], 0x19
jmp 0x10097d07
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x10097cb7
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 0x10097d7b
cmp dl, 0xd
je 0x10097d7b
xor edx, edx
jmp 0x10097d80
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x10097d6b
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 0x10097da0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.10096660
mov esi, eax
add esp, 8
test esi, esi
jne 0x10097dc1
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.10099400
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x10097de6
push esi
call fcn.100966f0
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.1008bd9b
push ebx
push edi
mov ebp, eax
call fcn.10099470
push 0x10097e20
push ebp
push esi
call fcn.1009a7a0
push esi
call fcn.100966f0
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x10098d00
Capabilities:
Allocate thread local storage

Disassembly:
mov al, byte [0x101d62e5]
test al, al
jne 0x10098da4
mov byte [0x101d62e5], 1
call fcn.10099030
test al, al
je 0x10098d20
mov al, 1
ret
mov eax, dword [0x101d6300]
test eax, eax
jne 0x10098d9f
call fcn.10098e30
push str.HOME
call fcn.10080920
add esp, 4
test eax, eax
mov dword [0x101d6300], eax
je 0x10098d57
push eax
push 0x101d6508
call fcn.1009c910
add esp, 8
mov dword [0x101d6300], eax
push str.UMASK
call fcn.10080920
add esp, 4
test eax, eax
je 0x10098d7b
push eax
call fcn.10098db0
add esp, 4
or eax, 0x180
mov dword [0x10100dac], eax
push str.UMASK_DIR
call fcn.10080920
add esp, 4
test eax, eax
je 0x10098d9f
push eax
call fcn.10098db0
add esp, 4
or eax, 0x1c0
mov dword [0x10100db0], eax
call fcn.10098f40
xor al, al
ret

Function at 0x10098e30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa04
push 0x100d8174
push 2
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x10], 0x400
call fcn.1008ae32
push 0x100ff610
call fcn.100809be
add esp, 0xc
call fcn.1008d00b
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMySQL
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10098f38
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
mov edx, dword [esp + 0x10]
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push edx
mov esi, 1
call edi
cmp eax, 0x103
je 0x10098f2b
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x51c]
push edx
call fcn.10098e10
lea eax, [esp + 0x520]
push eax
call fcn.10083e62
push eax
call fcn.100809be
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
mov eax, esi
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], 0x400
inc esi
call edi
cmp eax, 0x103
jne 0x10098ebe
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xa04
ret

Function at 0x10098f40
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
call fcn.10098fa0
test al, al
je 0x10098f8f
lea eax, [esp]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x10098f6b
call sub.WS2_32.dll_WSACleanup
lea ecx, [esp]
push ecx
jmp 0x10098f7d
cmp word [esp], 2
je 0x10098f88
call sub.WS2_32.dll_WSACleanup
lea edx, [esp]
push edx
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x10098f8f
mov byte [0x101d62e4], 1
xor al, al
add esp, 0x190
ret
Function at 0x10099030
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x101dfdac], eax
jne 0x1009905d
call fcn.1008275d
mov eax, dword [eax]
push eax
push str.Cant_initialize_threads:_error__d_n
push 0x100fab40
call fcn.10081d71
add esp, 0xc
mov al, 1
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x101dfee0
call esi
push 0x101dfe60
call esi
push 0x101dfe80
call esi
push 0x101dfe20
call esi
push 0x101dfe40
call esi
push 0x101dfde0
call esi
push 0x101dfdc0
call esi
push 0x101dfea0
call esi
call fcn.1009cc20
push 0x101dfec0
call esi
push 0x101dfe00
call esi
call fcn.10099130
test al, al
pop esi
je 0x100990c1
call fcn.100990d0
mov al, 1
ret
xor al, al
ret

Function at 0x10099130
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x101dfe80
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x101dfdac]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x100991ab
push 0x4c
push 1
call fcn.10082b85
mov esi, eax
add esp, 8
test esi, esi
jne 0x10099173
push 0x101dfe80
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x101dfdac]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x101d62e8]
inc eax
lea edx, [esi + 0xc]
mov dword [0x101d62e8], 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.1009cc30
add esp, 8
mov byte [esi + 0x3c], 1
push 0x101dfe80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
Function at 0x10099630
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.1008275d
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.1008bd9b
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x1009972a
call fcn.1008275d
cmp dword [eax], 0
je 0x10099677
call fcn.1008275d
mov ebp, dword [eax]
jmp 0x1009967a
or ebp, 0xffffffff
call fcn.100991c0
test esi, esi
mov dword [eax], ebp
jne 0x1009968f
call fcn.1008275d
cmp dword [eax], 4
je 0x100996df
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x100996c2
cmp esi, 0xffffffff
je 0x10099704
test al, 6
je 0x100996c2
call fcn.100991c0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.1009cc60
add esp, 4
push eax
push 0x24
push 9
call fcn.10099a10
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x10099722
test al, 6
je 0x100996d0
test ah, 2
je 0x10099722
test esi, esi
jbe 0x1009972e
test ah, 2
je 0x1009972e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.1008275d
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.1008bd9b
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x1009972a
jmp 0x10099664
call fcn.100991c0
mov eax, dword [eax]
push eax
push ebx
call fcn.1009cc60
add esp, 4
push eax
push 0x24
push 2
call fcn.10099a10
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x1009973b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x10099744
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x100aa408
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100aa428
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100826ea
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x100aa44b
test byte [esp + 8], 2
je 0x100aa44b
call fcn.1008275d
mov dword [eax], 0xd
call fcn.10082766
mov dword [eax], 5
jmp 0x100aa424
xor eax, eax
ret

Function at 0x100af347
Capabilities:
Get graphical window text

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

Function at 0x100b0a35
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 0x100b0a77
call fcn.100b6693
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100b0a77
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100b0a6e
xor eax, eax
jmp 0x100b0a7f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100b0a85
pop edi
pop esi
pop ebx
ret 4
Function at 0x100094d7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov esi, eax
pop ecx
test esi, esi
je 0x1000952a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push 0xa
and dword [eax], 0
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
add esp, 0xc
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0
jne 0x10009521
mov ecx, dword [ebp - 4]
cmp byte [ecx], 0
jne 0x10009521
mov eax, esi
jmp 0x1000952d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
and dword [eax], 0
mov eax, dword [ebp + 0xc]
pop esi
leave
ret

Function at 0x1000a1a9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000a1b8
pop dword [ebp - 0x20]
mov eax, 0x1000a1b8
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xd83e9bbc
sub dword [ebp - 0x30], 0x89ec5671
mov dword [ebp - 0x2c], 0x9eb562d9
sub dword [ebp - 0x2c], 0x6c821694
mov dword [ebp - 0x28], 0x8e9e81a7
sub dword [ebp - 0x28], 0x42523d79
mov dword [ebp - 0x24], 0x15d9db5a
add dword [ebp - 0x24], 0xea2624a6
lea eax, [ebp - 0x30]
push eax
mov eax, 0x252f393
sub eax, 0xf251538b
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xccaa423d
add dword [ebp - 0x30], 0xa7c82719
mov dword [ebp - 0x2c], 0x61bb33aa
sub dword [ebp - 0x2c], 0x204ed235
mov dword [ebp - 0x28], 0x759d9607
sub dword [ebp - 0x28], 0x122e299b
mov dword [ebp - 0x24], 0xe5bb47e2
sub dword [ebp - 0x24], 0xe5bb47e2
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x36f6b
push 0
call eax
mov ecx, 0x82fd00e4
add ecx, 0x7d0339db
mov esi, eax
mov edx, 0x10024a00
add edx, dword [ebp - 0x20]
mov edi, 0xfaf9a4b9
mov dword [ebp - 0x14], 0x207454e4
mov ebx, dword [edx]
xor dword [ebp - 4], 0x16992716
xor ebx, edi
sub dword [ebp - 0xc], esi
mov dword [esi], ebx
add dword [ebp - 0xc], 0x5daf7b25
add esi, 0x13992275
add esi, 0xec66dd8f
add edx, 0xe1512e3c
add edx, 0x1eaed1c8
loop 0x1000a2c4
add eax, 0x2123cce4
add eax, 0xdedd10eb
xor ebx, ebx
add ebx, eax
add eax, 0x1f244d79
sub eax, 0x1f244d74
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret