joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1032376
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1067a40]
jne 0x103237f
ret
jmp 0x1032384
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x1067a40]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x106bd4c]
test eax, eax
je 0x10323a8
call eax
cmp dword [0x106bd50], 0
je 0x10323ef
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x106bd50]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.01032376
add ebp, 0x2a8
leave
ret
Function at 0x1035cc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.01037290
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x1035d8b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x1035d8b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x1035d3e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x1035d49
or bh, 8
and edi, 0x8000000
je 0x1035d64
mov eax, dword [0x106bdbc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x1035d8b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1036160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x103618b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x10361af
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x10361ca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x103639c
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x100ed50
call fcn.0103712c
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1036553
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x10363f9
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1036553
mov eax, dword [esi + 0x10]
mov dword [0x106b578], eax
mov eax, dword [esi + 4]
mov dword [0x106b584], eax
mov eax, dword [esi + 8]
mov dword [0x106b588], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x106b57c], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x106b578], 2
je 0x1036437
or byte [0x106b57d], 0x80
mov eax, dword [0x106b584]
shl eax, 8
add eax, dword [0x106b588]
mov dword [0x106b580], eax
call fcn.01036340
mov dword [ebp - 0x1c], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.0103a9f7
pop ecx
test eax, eax
jne 0x1036468
push 0x1c
call fcn.0103631c
pop ecx
call fcn.0103a8d5
test eax, eax
jne 0x1036479
push 0x10
call fcn.0103631c
pop ecx
mov dword [ebp - 4], ebx
call fcn.0103a494
test eax, eax
jge 0x103648d
push 0x1b
call fcn.010362f7
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x106dc30], eax
call fcn.0103a36e
mov dword [0x106b568], eax
call fcn.0103a2cd
test eax, eax
jge 0x10364b3
push 8
call fcn.010362f7
pop ecx
call fcn.0103a083
test eax, eax
jge 0x10364c4
push 9
call fcn.010362f7
pop ecx
call fcn.01037460
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10364d7
push eax
call fcn.010362f7
pop ecx
call fcn.0103a01a
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], bl
je 0x10364ea
movzx eax, word [ebp - 0x40]
jmp 0x10364ed
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01041dfe
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x103650e
push esi
call fcn.01037575
call fcn.01037597
jmp 0x1036540
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x1036558
mov eax, 0xff
call fcn.01037167
ret
Function at 0x1038503
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x1038520
call fcn.01038f76
mov dword [eax], 0x16
xor eax, eax
jmp 0x1038589
xor ecx, ecx
push esi
mov edx, 0x8c
inc ecx
call fcn.0103b804
mov esi, eax
test esi, esi
je 0x1038574
push esi
call fcn.0103a6ce
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x1038552
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x103846e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1038588
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.01037308
test ebx, ebx
pop ecx
je 0x1038586
push ebx
call fcn.01038f9c
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1039d05
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x1068630]
je 0x1039d1d
inc eax
cmp eax, 0x12
jb 0x1039d0e
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1068630]
mov dword [ebp + 8], esi
jne 0x1039e63
mov eax, dword [0x106b570]
cmp eax, 1
push ebx
je 0x1039e33
test eax, eax
jne 0x1039d52
cmp dword [0x10682c4], 1
je 0x1039e33
cmp ecx, 0xfc
je 0x1039e62
push edi
push 6
pop ecx
mov esi, 0x100f254
mov edi, 0x106b5c8
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x106b5e2
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x106b6e6], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1039da0
push 5
pop ecx
mov esi, 0x100f23c
mov edi, 0x106b5e2
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1039da5
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1039dd8
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1039db9
sub eax, edx
push 3
lea eax, [eax + 0x106b5a7]
push 0x100f238
push eax
call fcn.0103e6a0
add esp, 0xc
mov edx, 0x106b5c8
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1039de0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1068634]
mov esi, 0x1003610
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1039dfb
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1039e07
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x100f210
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0103e598
add esp, 0xc
pop edi
jmp 0x1039e62
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1039e62
mov esi, dword [esi + 0x1068634]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1039e4a
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x103b884
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.01037290
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x103b91f
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x106b578]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x103b91f
cmp eax, 1
je 0x103b940
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x103b91f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x103b8ec
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x103b91b
xor eax, eax
inc eax
jmp 0x103b95f
cmp edi, eax
jae 0x103b923
xor eax, eax
jmp 0x103b95f
cmp eax, esi
jae 0x103b92a
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x106b578]
jmp 0x103b943
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x103c0b4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x103c0e2
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x103c0e9
cmp ebx, dword [eax + 4]
jae 0x103c0e9
xor eax, eax
jmp 0x103c2d9
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x103c0fa
xor eax, eax
inc eax
jmp 0x103c2d8
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x103c110
cmp ecx, edx
jae 0x103c255
cmp dword [eax + 4], 0
je 0x103c119
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x103c101
cmp dword [ebp + 8], 0
je 0x103c13b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x103c255
cmp eax, esi
jae 0x103c255
mov eax, dword [0x106bb60]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x103c160
cmp dword [esi*4 + 0x106bb68], edi
je 0x103c259
inc esi
cmp esi, eax
jl 0x103c14e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x103c2d5
cmp dword [ebp - 8], 0x1000000
jne 0x103c2d5
test byte [ebp - 0xc], 0xcc
je 0x103c1de
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x103c2d5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x103c2d5
cmp word [eax + 0x18], 0x10b
jne 0x103c2d5
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x103c2d5
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x103c1de
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x103c1de
test byte [ecx + 0x27], 0x80
jne 0x103c255
push 1
push 0x106bba8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x103c0f2
mov ecx, dword [0x106bb60]
test ecx, ecx
mov edx, ecx
jle 0x103c212
lea eax, [ecx*4 + 0x106bb64]
cmp dword [eax], edi
je 0x103c212
dec edx
sub eax, 4
test edx, edx
jg 0x103c206
test edx, edx
jne 0x103c243
push 0xf
pop ebx
cmp ecx, ebx
jg 0x103c21f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x103c237
lea eax, [edx*4 + 0x106bb68]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x103c225
cmp ecx, 0x10
jge 0x103c243
inc ecx
mov dword [0x106bb60], ecx
push 0
push 0x106bba8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x103c0f2
xor eax, eax
jmp 0x103c2d8
test esi, esi
jle 0x103c0f2
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x106bba8
call ebx
test eax, eax
jne 0x103c0f2
cmp dword [esi*4 + 0x106bb68], edi
je 0x103c2af
mov eax, dword [0x106bb60]
lea esi, [eax - 1]
test esi, esi
jl 0x103c29d
cmp dword [esi*4 + 0x106bb68], edi
je 0x103c299
dec esi
jns 0x103c28d
test esi, esi
jge 0x103c2ad
cmp eax, 0x10
jge 0x103c2a8
inc eax
mov dword [0x106bb60], eax
lea esi, [eax - 1]
jmp 0x103c2af
je 0x103c2c7
xor ecx, ecx
test esi, esi
jl 0x103c2c7
lea eax, [ecx*4 + 0x106bb68]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x103c2b5
push 0
push 0x106bba8
call ebx
jmp 0x103c0f2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x103e598
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x106bc98], ebx
push esi
push edi
jne 0x103e618
push 0x100fb50
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x103e653
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100fb44
push edi
call esi
test eax, eax
mov dword [0x106bc98], eax
je 0x103e653
push 0x100fb34
push edi
call esi
push 0x100fb20
push edi
mov dword [0x106bc9c], eax
call esi
cmp dword [0x106b578], 2
mov dword [0x106bca0], eax
jne 0x103e618
push 0x100fb04
push edi
call esi
test eax, eax
mov dword [0x106bca8], eax
je 0x103e618
push 0x100faec
push edi
call esi
mov dword [0x106bca4], eax
mov eax, dword [0x106bca4]
test eax, eax
je 0x103e65d
call eax
test eax, eax
je 0x103e644
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x106bca8]
test eax, eax
je 0x103e644
test byte [ebp - 8], 1
jne 0x103e65d
cmp dword [0x106b584], 4
jb 0x103e657
or byte [ebp + 0x12], 0x20
jmp 0x103e67c
xor eax, eax
jmp 0x103e68c
or byte [ebp + 0x12], 4
jmp 0x103e67c
mov eax, dword [0x106bc9c]
test eax, eax
je 0x103e67c
call eax
mov ebx, eax
test ebx, ebx
je 0x103e67c
mov eax, dword [0x106bca0]
test eax, eax
je 0x103e67c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x106bc98]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x103f198
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x103f1b6
xor eax, eax
jmp 0x103f324
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x106d8e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x103f1e9
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.010403ec
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x103f2bb
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x103f2f3
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x103f244
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x103f235
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x103f218
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x103f284
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x103f28d
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x103f209
jmp 0x103f28f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x103f31f
cmp dword [ebp - 4], edi
je 0x103f2f3
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x103f2e8
call fcn.01038f76
mov dword [eax], 9
call fcn.01038f89
mov dword [eax], esi
jmp 0x103f31a
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x103f2dd
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x103f28f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x103f28f
push dword [ebp - 4]
call fcn.01038f9c
pop ecx
jmp 0x103f31a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x103f308
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x103f308
xor eax, eax
jmp 0x103f322
call fcn.01038f76
mov dword [eax], 0x1c
call fcn.01038f89
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x103f322
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x10419ca
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x1041a32
push 0x3d
push esi
call fcn.010382d0
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x1041a32
cmp esi, eax
je 0x1041a32
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x106b598]
sete cl
cmp eax, dword [0x106b59c]
mov dword [ebp - 4], ecx
jne 0x1041a18
mov edi, eax
call fcn.0104196b
mov dword [0x106b598], eax
cmp eax, ebx
jne 0x1041a71
cmp dword [ebp + 0xc], ebx
je 0x1041a3a
cmp dword [0x106b5a0], ebx
je 0x1041a3a
call fcn.01041136
test eax, eax
je 0x1041a71
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x1041b75
push 4
pop ecx
call fcn.0103b7cc
cmp eax, ebx
mov dword [0x106b598], eax
je 0x1041a32
mov dword [eax], ebx
cmp dword [0x106b5a0], ebx
jne 0x1041a71
push 4
pop ecx
call fcn.0103b7cc
cmp eax, ebx
mov dword [0x106b5a0], eax
je 0x1041a32
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x106b598]
sub edi, esi
push esi
call fcn.0104191e
mov edi, eax
test edi, edi
pop ecx
jl 0x1041acb
cmp dword [ebx], 0
je 0x1041acb
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.01037308
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x1041ab2
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x1041aff
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x1041aa9
mov edx, edi
shl edx, 2
mov ecx, ebx
call fcn.0103b842
test eax, eax
mov esi, dword [ebp + 8]
je 0x1041aff
jmp 0x1041afa
cmp dword [ebp - 4], 0
jne 0x1041b6e
test edi, edi
jge 0x1041adb
neg edi
lea edx, [edi*4 + 8]
mov ecx, ebx
call fcn.0103b842
test eax, eax
je 0x1041a32
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x106b598], eax
cmp dword [ebp + 0xc], 0
je 0x1041b59
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1041b0a
sub eax, edx
lea ecx, [eax + 2]
call fcn.0103b7cc
mov edi, eax
test edi, edi
je 0x1041b59
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x1041b25
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
mov byte [eax], dl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1041b52
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.01037308
pop ecx
cmp dword [ebp - 4], 0
je 0x1041b66
push esi
call fcn.01037308
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x1041a35
push esi
call fcn.01037308
pop ecx
xor eax, eax
jmp 0x1041a35
Function at 0x1041d02
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x100fff8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1041d58
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10018d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1041d4b
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1041d5a
xor eax, eax
pop esi
leave
ret 4

Function at 0x1045659
Capabilities:
Get graphical window text

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

Function at 0x10470a2
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 0x10470e4
call fcn.0105d782
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10470e4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10470db
xor eax, eax
jmp 0x10470ec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.010470f2
pop edi
pop esi
pop ebx
ret 4