joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003690
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebx + 0x14], 0x10
mov edi, dword [ebx + 0x10]
jb 0x100036aa
mov esi, dword [ebx]
jmp 0x100036ac
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x100036c8
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x100036b7
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0xc]
and eax, edx
mov edi, dword [edi + 4]
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp + 0xc], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 4], eax
cmp edx, edi
jne 0x100036f0
mov eax, edi
jmp 0x100036f4
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x1000372d
push ebx
lea ecx, [esi + 8]
call fcn.10003c30
test al, al
jne 0x1000370f
mov esi, dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x100036e8
lea eax, [esi + 8]
mov ecx, ebx
push eax
call fcn.10003c30
test al, al
mov eax, dword [ebp + 8]
cmove esi, edi
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10003e70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032420
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1004200c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
mov edi, dword [eax + 0x10]
jb 0x10003eb7
mov esi, dword [eax]
jmp 0x10003eb9
mov esi, eax
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x10003ed5
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x10003ec4
mov eax, dword [ebx + 0x18]
and eax, edx
lea ecx, [eax*8]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x14], ecx
mov edi, dword [eax + ecx]
cmp edi, dword [ebx + 4]
jne 0x10003ef4
mov esi, dword [ebx + 4]
jmp 0x10003efa
mov esi, dword [eax + ecx + 4]
mov esi, dword [esi]
cmp esi, edi
je 0x10003f17
nop
mov esi, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 8]
push eax
call fcn.10003c30
test al, al
jne 0x10003f5e
cmp esi, edi
jne 0x10003f00
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0xc], edi
mov eax, dword [edi]
cmp esi, eax
je 0x10003f44
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x10003f96
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [eax + edx + 4], edi
jmp 0x10003fb8
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
call fcn.10003ac0
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x10003f9e
mov dword [ecx], edi
jmp 0x10003fb8
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x10003fb8
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.10004010
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100040f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x1c], 0x10
push ebx
mov ebx, dword [edx + 0x18]
push esi
lea esi, [edx + 8]
mov dword [ebp - 4], ecx
jb 0x1000410a
mov esi, dword [esi]
xor ecx, ecx
push edi
mov edi, 0x811c9dc5
test ebx, ebx
je 0x10004127
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, ebx
jb 0x10004116
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, edi
pop edi
lea esi, [eax*8]
add ecx, esi
cmp dword [ecx + 4], edx
jne 0x1000415e
cmp dword [ecx], edx
jne 0x10004156
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [ecx + esi + 4], eax
jmp 0x10004166
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
jmp 0x10004166
cmp dword [ecx], edx
jne 0x10004169
mov eax, dword [edx]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov esi, dword [edx]
push edx
mov dword [eax], esi
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
call fcn.10003ac0
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1000774e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x1001e9f7
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10036128
push 0x10036120
push str.FlsAlloc
push 0
call fcn.1001e977
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001ea29
push dword [ebp + 8]
mov ecx, esi
call fcn.100065e2
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1001ea6b
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10036138
push 0x10036130
push str.FlsGetValue
push 2
call fcn.1001e977
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x1001ea9c
mov ecx, esi
call fcn.100065e2
call esi
jmp 0x1001eaa2
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x1001eaa5
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10036140
push 0x10036138
push str.FlsSetValue
push 3
call fcn.1001e977
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x1001ead9
mov ecx, esi
call fcn.100065e2
call esi
jmp 0x1001eadf
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x10027dfb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10027a9d
Function at 0x1002ea6f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x10044498]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1002eab0
cmp byte [edx], 0xa
jne 0x1002eab0
or byte [eax + edi + 0x28], 4
jmp 0x1002eab5
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x1002eba6
mov al, byte [ebx]
cmp al, 0x1a
je 0x1002eb87
cmp al, 0xd
je 0x1002eade
mov byte [esi], al
inc esi
inc ebx
jmp 0x1002eb7c
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x1002eafe
cmp byte [eax], 0xa
jne 0x1002eaf3
push 2
mov byte [esi], 0xa
pop eax
jmp 0x1002eaf9
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x1002eb7c
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002eb75
cmp dword [ebp - 0x14], 0
je 0x1002eb75
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10044498]
test byte [eax + edi + 0x28], 0x48
je 0x1002eb4c
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x1002eb3c
mov byte [esi], dl
jmp 0x1002eb78
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10044498]
mov byte [eax + edi + 0x2a], dl
jmp 0x1002eb78
cmp byte [ebp - 1], 0xa
jne 0x1002eb5e
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x1002eb5e
mov byte [esi], 0xa
jmp 0x1002eafb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1002e273
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002eb79
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x1002eac7
jmp 0x1002eba6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10044498]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002eba1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002eba6
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002ebb1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x10044498]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x1002ebf5
cmp word [edx], bx
jne 0x1002ebf5
or byte [edi + eax + 0x28], 4
jmp 0x1002ebfa
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x1002ed4e
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x1002ed2e
cmp ax, word [ebp - 0x10]
je 0x1002ec33
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x1002ed23
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x1002ec59
push 0xa
pop ecx
cmp word [eax], cx
jne 0x1002ec49
push ecx
pop eax
push 4
jmp 0x1002ec4e
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x1002ed1d
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002ed14
cmp dword [ebp - 0x18], 0
je 0x1002ed14
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x10044498]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x1002ece0
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x1002eca4
mov word [esi], ax
jmp 0x1002ecd8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x10044498]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x10044498]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x10044498]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x1002ed23
cmp word [ebp - 4], ax
jne 0x1002ecf5
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x1002ecf5
mov word [esi], ax
add esi, 2
jmp 0x1002ed23
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1002e273
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1002ed20
jmp 0x1002ed17
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x1002ec13
jmp 0x1002ed4e
mov ecx, dword [ecx*4 + 0x10044498]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x1002ed45
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x1002ed4e
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e9b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1000e9bf
pop dword [ebp - 0x40]
mov eax, 0xc1c50454
add eax, 0x4e3be56b
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xc5291b31
add dword [ebp - 0x50], 0x89292a1a
mov dword [ebp - 0x4c], 0xb4b152e
add dword [ebp - 0x4c], 0x26e83717
mov dword [ebp - 0x48], 0x277c4259
add dword [ebp - 0x48], 0x24d001d5
mov dword [ebp - 0x44], 0x42294fe9
add dword [ebp - 0x44], 0xbdd6b017
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xbb240bdf
sub dword [ebp - 0x50], 0x46b1a289
mov dword [ebp - 0x4c], 0x8c64166
sub dword [ebp - 0x4c], 0xc759dff1
mov dword [ebp - 0x48], 0xbdd88d16
sub dword [ebp - 0x48], 0x5a6920aa
mov dword [ebp - 0x44], 0x5178adce
add dword [ebp - 0x44], 0xae875232
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x878c9929
sub eax, 0x778b08f1
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x36501
push 0
call eax
mov ecx, 0x44ad3fa3
add ecx, 0xbb530760
mov ebx, eax
mov esi, 0x10022800
add esi, dword [ebp - 0x40]
mov edi, 0x96315d96
sub edi, 0x4935c4a1
add dword [ebp - 0x3c], 0x5bcdda58
mov edx, dword [esi]
mov dword [ebp - 0xc], 0x51ea1cc0
sub edx, edi
sub dword [ebp - 0x20], edi
mov dword [ebx], edx
xor dword [ebp - 0x14], ebx
add ebx, 0xe56623db
sub ebx, 0xe56623d7
add esi, 0x65032780
add esi, 0x9afcd884
loop 0x1000ead6
add eax, 0x83287e84
add eax, 0x7cd8905b
mov ebx, eax
add eax, 0x6502cead
add eax, 0x9afd3158
mov ecx, 0xfb56120f
sub ecx, 0xeb56120f
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x10014d90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x1001f83c]
push dword [esp + 4]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x234]
call eax
test eax, eax
je 0x10014dd2
push 0x51b
push str.hprof_util.c
push str.Unable_to_get_necessary_JVMTI_capabilities.
push 0
push 0
call fcn.10005090
add esp, 0x14
mov dword [esp + 4], 1
jmp fcn.10005080
ret

Function at 0x10016400
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 4]
xorps xmm0, xmm0
push edx
movups xmmword [edx], xmm0
mov eax, dword [0x1001f83c]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x22c]
call eax
test eax, eax
je 0x10016449
push 0x50e
push str.hprof_util.c
push str.Unable_to_get_potential_JVMTI_capabilities.
push 0
push 0
call fcn.10005090
add esp, 0x14
mov dword [esp + 4], 1
jmp fcn.10005080
ret
Function at 0x100018b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov esi, dword [ebp + 0xc]
test byte [0x10005060], 8
jne 0x10001970
mov ebx, dword [0x10005080]
test ebx, ebx
je 0x100019b0
mov edx, dword [esi]
xor edi, edi
jmp 0x100018ee
mov eax, dword [ebx]
mov edi, ebx
test eax, eax
je 0x100019b0
mov ebx, eax
cmp dword [ebx + 4], edx
jne 0x100018e0
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x402
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [ebx + 0xa4]
sub esp, 0x14
mov esi, eax
test edi, edi
je 0x100019a0
mov eax, dword [ebx]
mov dword [edi], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
cmp si, 1
sbb eax, eax
not eax
and eax, 0xb
mov word [0x1000502c], ax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.DG_CONTROL_DAT_IDENTITY_MSG_CLOSEDS_n
mov dword [esp + 8], str.TWAIN_CloseDS
mov dword [esp + 4], 0x10005060
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x100018c9
mov eax, dword [ebx]
mov dword [0x10005080], eax
jmp 0x10001928
mov eax, 3
mov esi, 1
mov word [0x1000502c], ax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10001ae0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
test byte [0x10005060], 8
jne 0x10001c50
lea eax, [esi - 0x101]
cmp ax, 1
jbe 0x10001b28
cmp si, 0x104
je 0x10001b28
mov eax, 9
mov word [0x1000502c], ax
mov eax, 1
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x10001ccb
lea edx, [ebx + 0xa8]
mov word [eax + 8], si
mov dword [eax], edx
mov edx, dword [ebx + 0xac]
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [ebx + 0xac], eax
mov eax, dword [0x10005024]
test eax, eax
je 0x10001c10
mov edx, dword [0x10005094]
mov esi, dword [sym.imp.user32.dll_PostMessageW]
mov dword [esp], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
call esi
mov eax, dword [ebx + 0xb0]
sub esp, 0x10
test eax, eax
je 0x10001cb8
cmp eax, dword [0x10005024]
jne 0x10001c20
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x10001bde
cmp eax, dword [ebx + 0xb0]
je 0x10001bde
cmp dword [0x10005024], eax
jne 0x10001c8e
mov eax, dword [0x10005094]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call esi
xor eax, eax
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebx + 0xb0]
mov esi, dword [sym.imp.user32.dll_PostMessageW]
test eax, eax
je 0x10001c80
mov edx, dword [0x10005094]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call esi
sub esp, 0x10
jmp 0x10001bc0
movzx eax, si
mov dword [esp + 0xc], str.DG_CONTROL_DAT_NULL_MSG_i_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.TWAIN_ControlNull
mov dword [esp + 4], 0x10005060
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001afb
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x10001bde
mov edx, dword [0x10005094]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call esi
sub esp, 0x10
jmp 0x10001bde
mov eax, dword [ebx + 0xb4]
test eax, eax
jne 0x10001bd2
jmp 0x10001bde
mov word [0x1000502c], 2
mov eax, 1
jmp 0x10001b1e
Function at 0x10003120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10003178
cmp byte [esi + ebx - 1], 0xa
je 0x1000314c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1000513c], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x49eb44
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x49eb53
pop dword [ebp - 0x50]
mov eax, 0xd7056ada
sub eax, 0xd6bb7f87
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xfbe342eb
sub dword [ebp - 0x60], 0xad90fda0
mov dword [ebp - 0x5c], 0x694be4dd
add dword [ebp - 0x5c], 0xc8e76768
mov dword [ebp - 0x58], 0x54737a3d
sub dword [ebp - 0x58], 0x827360f
mov dword [ebp - 0x54], 0xbc3ae40e
sub dword [ebp - 0x54], 0xbc3ae40e
lea eax, [ebp - 0x60]
push eax
mov eax, 0xacd9c58a
add eax, 0x5371bbca
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x8821b24
sub dword [ebp - 0x60], 0x940fb1ce
mov dword [ebp - 0x5c], 0x126a6dfe
sub dword [ebp - 0x5c], 0xd0fe0c89
mov dword [ebp - 0x58], 0x75706e53
sub dword [ebp - 0x58], 0x120101e7
mov dword [ebp - 0x54], 0x3017f144
sub dword [ebp - 0x54], 0x3017f144
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xd362bd41
sub eax, 0xd31739f5
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x613e9
push 0
call eax
mov ecx, 0x40f3
mov edx, eax
mov esi, 0xc1944947
sub esi, 0xc13c4747
add esi, dword [ebp - 0x50]
mov ebx, 0xd6ee976d
sub dword [ebp - 0x28], ebx
mov edi, dword [esi]
xor dword [ebp - 0x18], 0x3cd6b42f
xor edi, ebx
xor dword [ebp - 0x44], ecx
mov dword [edx], edi
mov dword [ebp - 0x3c], 0xb8cd73dc
add edx, 0x8875139d
sub edx, 0x88751399
add esi, 0xa911cf2a
add esi, 0x56ee30da
loop 0x49ec69
add eax, 0xf69f
mov ebx, eax
add eax, 0x3b933f7b
add eax, 0xc46cc08a
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433005
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219