joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403fbc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405ad4
test esi, esi
jne 0x403ff2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405c10
jmp 0x404010
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403ea0
mov edi, eax
test esi, esi
je 0x404010
cmp dword [ebx], 0
je 0x404010
dec esi
jmp 0x403ff9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405854
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43c04c], 0
je 0x4058bb
cmp word [0x43c338], 0xd7b2
jne 0x40587d
cmp dword [0x43c340], 0
jbe 0x40587d
mov eax, 0x43c334
call dword [0x43c350]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4058e8
call fcn.00405f74
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x437022], 0
jne 0x4058d7
push 0
push 0x43799a
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4071b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x407315
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405ad4
cmp si, word [0x4379d8]
jb 0x407248
cmp si, word [0x437bd8]
ja 0x407248
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x407248
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4379d8]
jae 0x407222
mov edi, ebx
dec edi
jmp 0x407243
cmp si, word [ebx*8 + 0x4379d8]
jbe 0x407232
inc ebx
mov dword [ebp - 8], ebx
jmp 0x407243
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4379dc]
call fcn.004070d0
jmp 0x407248
cmp edi, dword [ebp - 8]
jae 0x40720c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4072f7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4072f7
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004060b0
push dword [ebp - 0x160]
push 0x407330
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004060b0
push dword [ebp - 0x164]
push 0x407340
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004060b0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406268
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40731c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405b34
ret
Function at 0x4074c8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4075cb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x43eb7c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x43eb94]
jne 0x407514
mov eax, esi
mov edx, 0x43eb96
mov ecx, 0x55
call fcn.004060b0
push 0x43eb7c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4075b5
push 0x43eb7c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405ad4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407583
cmp byte [0x43eb78], 0
je 0x407548
mov edx, esi
mov eax, ebx
call fcn.004073ac
jmp 0x407583
mov edx, esi
mov eax, ebx
call fcn.004071b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x407583
cmp dword [esi], 0
je 0x40756c
mov eax, esi
mov edx, 0x4075e4
call fcn.00406188
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004071b0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406188
push 0x43eb7c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x43eb94], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040601c
push eax
push 0x43eb96
call sub.kernel32.dll_lstrcpynW
push 0x43eb7c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4075d2
lea eax, [ebp - 4]
call fcn.00405ad4
ret
Function at 0x417e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x417f65
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00417c48
mov esi, eax
mov eax, dword [0x43b414]
cmp byte [eax], 0
je 0x417f0d
mov eax, dword [0x43b338]
call fcn.004044d8
call fcn.00403d50
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x417e10]
call fcn.00406c4c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x417f80
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x417f49
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x43b314]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x43ec44]
call fcn.00406d04
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417f6c
lea eax, [ebp - 4]
mov edx, dword [0x417e10]
call fcn.00406c58
ret

Function at 0x419024
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405e88
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040832c
mov edi, eax
cmp edi, 0x104
jbe 0x418fcb
mov eax, edi
add eax, eax
call fcn.00403bfc
mov esi, eax
jmp 0x418fcd
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040832c
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x419008
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x418ff2
mov eax, esp
cmp esi, eax
je 0x419015
mov eax, esi
call fcn.00403c18
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x419050
cmp bl, 0
je 0x41904c
cmp bl, 0x41
jl 0x419047
cmp bl, 0x5a
jg 0x419047
or bl, 0x20
xor al, bl
inc esi
jmp 0x41902b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x418f8c

Function at 0x419270
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004060b0
add esp, 0x800
pop ebx
ret
Function at 0x41955c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00405ad4
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040601c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4195a1
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00405c10
jmp 0x4195ba
mov edx, ebx
dec edx
mov eax, esi
call fcn.00406108
push ebx
mov eax, dword [esi]
call fcn.0040601c
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41c820
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x43920c
test edx, edx
jne 0x41c83f
xor eax, eax
jmp 0x41c95d
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x41c85c
push esi
push edx
push eax
call fcn.0041c964
add esp, 0xc
jmp 0x41c95d
push esi
push edx
push eax
call fcn.0041cc24
add esp, 0xc
jmp 0x41c95d
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4329b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_FindResourceW
mov edi, eax
mov dword [ebx + 0x14], edi
push edi
push esi
call sub.kernel32.dll_LoadResource
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
push eax
push esi
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebx + 0x18]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, ebx
pop ecx
call fcn.00432a04
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x432c58
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x432ced
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x432d08
push ebx
push 0x432d18
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00406268
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00404548
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040601c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x432cd7
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432cf4
lea eax, [ebp - 4]
call fcn.00405ad4
ret
Function at 0x432d20
Capabilities:
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcb8
xor eax, eax
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x338], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x432f07
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x338]
call fcn.00432a68
mov edx, dword [ebp - 0x338]
lea eax, [ebp - 4]
mov ecx, 0x432f20
call fcn.004061e0
xor ecx, ecx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x2e0]
call fcn.004043f0
call fcn.00403d50
lea eax, [ebp - 0x2e0]
call fcn.004040b0
call fcn.00403d50
mov edx, 0x432f48
lea eax, [ebp - 0x2e0]
call fcn.00404aa4
call fcn.00404ba4
call fcn.00403d50
push 0x432f60
lea edx, [ebp - 0x340]
xor eax, eax
call fcn.00403fbc
push dword [ebp - 0x340]
push 0x432f78
lea eax, [ebp - 0x33c]
mov edx, 3
call fcn.00406268
mov edx, dword [ebp - 0x33c]
lea eax, [ebp - 0x2e0]
call fcn.00404aa4
call fcn.00404ba4
call fcn.00403d50
push 0x432f88
lea edx, [ebp - 0x348]
xor eax, eax
call fcn.00403fbc
push dword [ebp - 0x348]
push 0x432f78
push 0x432fac
lea eax, [ebp - 0x344]
mov edx, 4
call fcn.00406268
mov edx, dword [ebp - 0x344]
lea eax, [ebp - 0x2e0]
call fcn.00404aa4
call fcn.00404ba4
call fcn.00403d50
mov edx, 0x432fcc
lea eax, [ebp - 0x2e0]
call fcn.00404aa4
call fcn.00404ba4
call fcn.00403d50
lea eax, [ebp - 0x2e0]
call fcn.004044f0
call fcn.00403d50
lea eax, [ebp - 0x334]
xor ecx, ecx
mov edx, 0x44
call fcn.00404548
mov dword [ebp - 0x308], 1
mov word [ebp - 0x304], 0
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x334]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040601c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x432ee1
mov eax, dword [ebp - 0x2ec]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x2f0]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432f0e
lea eax, [ebp - 0x348]
mov edx, 5
call fcn.00405b34
lea eax, [ebp - 4]
call fcn.00405ad4
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10012a62
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x10088983
call fcn.10088668
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], 0
inc edi
mov ebx, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0xfffffff6
mov dword [ebp - 0x14], 0
jmp 0x10012bc3
push 3
lea ecx, [ebp - 0x2c]
call fcn.10019cd8
and dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
jmp 0x10012ab7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [eax + ecx*4], edi
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 3
jl 0x10012aab
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 8]
sub edx, eax
mov eax, dword [ebp - 0x14]
neg edx
sbb edx, edx
xor ecx, ecx
neg edx
cmp edx, eax
mov eax, dword [ebp - 0x2c]
setg cl
xor edx, edx
cmp ecx, 0x364d64ea
setl dl
xor ecx, ecx
cmp dword [eax + 4], edx
setle cl
sub ecx, dword [esi + 8]
cmp ecx, 0x2da3c3d
jl 0x10012afc
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp dword [esi + 8], eax
sete cl
xor eax, eax
cmp ecx, edx
setne al
cmp eax, dword [ebp - 0x14]
jl 0x10012b72
cmp dword [ebp - 0x14], 0
jne 0x10012b2d
cmp dword [esi + 8], 0
je 0x10012b90
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001a5b6
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x38]
push eax
call fcn.1000bec4
mov esi, eax
lea edi, [ebp - 0x2c]
pop ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10012a53
mov ecx, eax
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*8 + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x18], 4
mov byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
je 0x10012b8d
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
dec dword [ebp - 0x18]
push 0x22bc
lea eax, [ebp - 0x1c]
push eax
push 0x462c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.10013a06
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
add esp, 0x1c
call fcn.1001a5b6
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xfffffff2
jle 0x10012a94
jmp 0x10012b39
Function at 0x10019661
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x1001977d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x100196d8
mov dword [ebp - 8], 1
jmp 0x100196dc
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x100196f0
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0
jne 0x100196f0
and dword [ebp - 0xc], 0
jmp 0x100196f7
mov dword [ebp - 0xc], 1
push 1
mov ecx, dword [ebp - 0x40]
call fcn.10019d62
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax]
jge 0x10019711
mov dword [ebp - 0x10], 1
jmp 0x10019715
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x10]
je 0x1001972f
push 0xfffffffffffffff7
pop eax
test eax, eax
je 0x1001972f
mov dword [ebp - 0x14], 1
jmp 0x10019733
and dword [ebp - 0x14], 0
push 1
mov ecx, dword [ebp - 0x44]
call fcn.10019d62
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x4c]
imul ecx, dword [edx]
cmp dword [eax], ecx
jle 0x10019758
mov dword [ebp - 0x18], 1
jmp 0x1001975c
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jne 0x1001976f
mov dword [ebp - 0x1c], 1
jmp 0x10019773
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x100197a2
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x100197a2
push 0xa57
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esp, ebp
pop ebp
ret
Function at 0x1002a657
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1002a675
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x1002a761
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
push 0
mov ecx, dword [ebp - 0x10]
call fcn.10019d62
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
imul esi, dword [eax], 0xa8da
push 0
mov ecx, dword [ebp - 8]
call fcn.10019d62
mov eax, dword [eax]
sub eax, esi
je 0x1002a70b
push 0
mov ecx, dword [ebp - 0x10]
call fcn.10019d62
push 2
mov ecx, dword [ebp - 4]
call fcn.10019d62
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0xcc9e520c
ja 0x1002a70b
mov dword [ebp - 0x18], 1
jmp 0x1002a70f
and dword [ebp - 0x18], 0
push 2
mov ecx, dword [ebp - 4]
call fcn.10019d62
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax]
je 0x1002a72a
push 0
mov ecx, dword [ebp - 8]
call fcn.10019d62
push 0
mov ecx, dword [ebp - 8]
call fcn.10019d62
cmp dword [eax], 0
jne 0x1002a742
mov dword [ebp - 0x1c], 1
jmp 0x1002a746
and dword [ebp - 0x1c], 0
push 1
mov ecx, dword [ebp - 4]
call fcn.10019d62
mov esi, dword [ebp - 0x1c]
add esi, dword [eax]
push 0
mov ecx, dword [ebp - 4]
call fcn.10019d62
mov dword [eax], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10033574
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10033598
xor eax, eax
jmp 0x100336da
lea eax, [ebp + 8]
push eax
push 0x1e50
lea eax, [ebp - 0x10]
push eax
push 0xaa7
push 1
lea eax, [ebp - 8]
push eax
call fcn.100331fa
add esp, 0x18
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x100335ca
xor eax, eax
jmp 0x100336da
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
call fcn.1003326f
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x100335e9
xor eax, eax
jmp 0x100336da
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10bc
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
call fcn.1003339c
add esp, 0x1c
push 0x6946
push dword [ebp - 4]
push dword [ebp + 8]
push 0
push dword [ebp - 8]
call fcn.1002f11c
add esp, 0x14
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1003343e
add esp, 0x10
cmp dword [ebp - 0x14], 0
je 0x1003365c
lea eax, [ebp - 4]
push eax
push 0x623e
push 1
push 0x46d4
lea eax, [ebp - 0x14]
push eax
call fcn.10033497
add esp, 0x14
push dword [ebp - 4]
call fcn.10032da3
pop ecx
test eax, eax
jne 0x1003366d
xor eax, eax
jmp 0x100336da
lea eax, [ebp - 4]
push eax
push 1
push 0x5248
call fcn.10033529
add esp, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x100336c2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1003369f
xor eax, eax
jmp 0x100336da
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100336b8
xor eax, eax
jmp 0x100336da
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x100336d3
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x100336d7
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1004a755
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1004a7b6
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax], 2
jmp 0x1004a785
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jl 0x1004a7b4
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1004a7b2
push 0x1d2a
push 0xe37
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_CreateCaret]
jmp 0x1004a77a
jmp 0x1004a7c0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esp, ebp
pop ebp
ret

Function at 0x1004b24a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1004b295
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
shl eax, 2
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
sub ecx, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [eax + 0x20], ecx
jmp 0x1004b29b
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esp, ebp
pop ebp
ret