joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1b00b769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1b00f190
cmp edx, dword [eax]
je 0x1b00b78b
add eax, 8
inc ecx
cmp eax, 0x1b00f220
jl 0x1b00b77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1b00f190]
jne 0x1b00b8b9
mov eax, dword [0x1b00fbb0]
cmp eax, 1
je 0x1b00b893
test eax, eax
jne 0x1b00b7bc
cmp dword [0x1b00f0e4], 1
je 0x1b00b893
cmp edx, 0xfc
je 0x1b00b8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1b00b7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1b00c670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1b00c490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1b00b836
lea eax, [ebp - 0x1a4]
push eax
call fcn.1b00c490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1b00e45c
push edi
call fcn.1b00cf00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1b00c670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1b00c680
lea eax, [ebp - 0xa0]
push 0x1b00e43c
push eax
call fcn.1b00c680
push dword [esi + 0x1b00f194]
lea eax, [ebp - 0xa0]
push eax
call fcn.1b00c680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1b00ce75
add esp, 0x2c
pop edi
jmp 0x1b00b8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x1b00f194]
push 0
push eax
push dword [esi]
call fcn.1b00c490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
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 0x104a7058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x104a71a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x104a707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104a706a
add dl, dl
jne 0x104a7089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104a70dc
xor eax, eax
add dl, dl
jne 0x104a7096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104a717d
add dl, dl
jne 0x104a70a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a70b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a70bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a70c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104a70d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104a7075
mov eax, 1
add dl, dl
jne 0x104a70ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a70f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104a70e1
sub eax, ebx
mov ebx, 1
jne 0x104a7128
mov ecx, 1
add dl, dl
jne 0x104a710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104a7119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104a7105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104a7075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x104a713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104a714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104a7136
cmp eax, 0x7d00
jae 0x104a716d
cmp eax, 0x500
jb 0x104a7168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104a7075
cmp eax, 0x7f
ja 0x104a7170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104a7075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104a719e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x104a7075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1002a47
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.01003ac0
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
pop esi
je 0x1002a9a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x1002a9c
xor eax, eax
leave
ret 8

Function at 0x1002b41
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x1002bad
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push 0xf003f
push esi
push 0x100125c
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002bd1
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
xor eax, eax
cmp dword [ebp + 0x18], esi
setne al
inc eax
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0xc]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002bd1
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 0x14
Function at 0x1002bdd
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
je 0x1002c17
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1002c1d
xor eax, eax
jmp 0x1002d20
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x1002d0d
cmp dword [ebp + 8], 1
je 0x1002c4e
cmp dword [ebp + 8], 2
jne 0x1002d0d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push dword [ebp - 8]
push 8
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x1002d0c
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x1002cf6
cmp dword [ebp + 8], 1
je 0x1002c93
cmp dword [ebp + 8], 2
jne 0x1002cf6
xor eax, eax
cmp dword [ebp + 0x14], eax
je 0x1002d0c
cmp dword [ebp + 8], 2
jne 0x1002d0c
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
push eax
push dword [ebp - 4]
call ebx
test eax, eax
mov dword [ebp - 8], eax
je 0x1002cf6
add eax, eax
push eax
push 8
call esi
push eax
call edi
mov edi, eax
test edi, edi
je 0x1002cf6
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x1002cea
cmp word [edi], 0
je 0x1002cea
push dword [ebp - 4]
push 1
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], edi
jmp 0x1002d0c
push edi
push 1
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 4]
push 1
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x1002d0c
and dword [ebp - 4], 0
pop edi
cmp dword [ebp + 0xc], 0
pop ebx
je 0x1002d1d
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret 0x10

Function at 0x1002d2a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x1002d51
cmp word [eax], 0
je 0x1002d51
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002d51
test al, 0x10
je 0x1002d51
xor eax, eax
inc eax
jmp 0x1002d53
xor eax, eax
pop ebp
ret 4
Function at 0x1002e1c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x100e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, 0x105
push ebx
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1002ef6
push esi
push edi
push 0x10
pop ecx
mov esi, 0x10012e8
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
push 6
pop ecx
lea eax, [ebp - 0x478]
push eax
movsw word es:[edi], word [esi]
push 0x10012b0
lea eax, [ebp - 0x26c]
push ebx
mov esi, 0x1001298
lea edi, [ebp - 0x1c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.01002db5
add esp, 0x10
test eax, eax
jl 0x1002ef4
lea eax, [ebp - 0x26c]
push eax
call fcn.01002d2a
test eax, eax
je 0x1002ef4
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
mov esi, 0x80000002
push esi
call fcn.01002bdd
mov edi, eax
test edi, edi
je 0x1002ec9
lea eax, [ebp - 0x26c]
push eax
push edi
call fcn.01003cda
test eax, eax
pop ecx
pop ecx
je 0x1002ee0
push 0
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
call fcn.01002b41
test edi, edi
je 0x1002ef4
push edi
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01003a9f
leave
ret
Function at 0x1003005
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x100e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
cmp dword [0x100ef8c], ebx
mov dword [ebp - 0x46c], esi
je 0x100309b
push 0x206
lea eax, [ebp - 0x2d2]
push ebx
push eax
mov word [ebp - 0x2d4], bx
call fcn.01003ac0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10031f5
push 0x10014b8
push esi
lea eax, [ebp - 0x2d4]
push eax
call fcn.01002de3
cmp eax, ebx
jl 0x10031f5
push 0x100125c
lea eax, [ebp - 0x2d4]
push eax
call fcn.01002a47
mov edi, eax
jmp 0x10031f5
cmp dword [0x100ef94], ebx
je 0x10030b5
push ebx
call fcn.01002d5c
cmp eax, ebx
je 0x10030b5
push eax
push ebx
push esi
jmp 0x100325e
push 0x1001468
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 1
push 0x1001450
mov edi, 0x10013f0
push edi
mov esi, 0x80000001
push esi
mov dword [ebp - 0x468], eax
call fcn.01002bdd
cmp eax, ebx
je 0x10030eb
mov dword [0x100ef9c], eax
push 1
push 0x10013d8
push edi
push esi
call fcn.01002bdd
cmp eax, ebx
mov dword [0x100efa0], eax
jne 0x100311a
push 0x10013c4
call fcn.01002aa5
test al, al
je 0x100311a
mov dword [0x100efa0], 0x10013a0
mov eax, dword [0x100ef9c]
cmp eax, ebx
mov word [ebp - 0xcc], bx
mov word [ebp - 0x68], bx
je 0x100314d
push eax
push 0x1001380
lea eax, [ebp - 0xcc]
push 0x32
push eax
call fcn.01002db5
add esp, 0x10
test eax, eax
jl 0x1003263
mov eax, dword [0x100efa0]
cmp eax, ebx
je 0x1003172
push eax
push 0x1001360
lea eax, [ebp - 0x68]
push 0x32
push eax
call fcn.01002db5
add esp, 0x10
test eax, eax
jl 0x1003263
cmp word [ebp - 0xcc], bx
jne 0x1003189
cmp word [ebp - 0x68], bx
jne 0x1003189
push ebx
push 0x100134c
jmp 0x10031bd
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
push 0x100132c
lea eax, [ebp - 0x464]
push 0xc8
push eax
call fcn.01002db5
add esp, 0x14
test eax, eax
jl 0x1003263
lea eax, [ebp - 0x464]
push eax
push ebx
call fcn.01002a47
mov edi, eax
cmp edi, ebx
je 0x10031e1
cmp dword [ebp - 0x468], ebx
je 0x10031f5
push 0x7530
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x468], ebx
je 0x10031f5
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x46c], ebx
je 0x100320a
push ebx
push dword [ebp - 0x46c]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, ebx
je 0x1003263
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x468]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x1003263
cmp dword [0x100ef98], ebx
je 0x1003263
cmp dword [ebp - 0x468], ebx
jne 0x1003263
cmp dword [0x100ef8c], ebx
jne 0x1003263
push 1
call fcn.01002d5c
cmp eax, ebx
je 0x1003263
push eax
push 1
push dword [ebp - 0x46c]
call fcn.01002f08
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01003a9f
leave
ret 4
Function at 0x1003399
Capabilities:
Get common file path
Log keystrokes
Log keystrokes via polling
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x730
mov eax, dword [0x100e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x730], eax
mov dword [0x100ef84], eax
mov eax, 0x1001598
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10033c4
push ebx
push esi
push edi
sub eax, ecx
mov esi, 0x104
push esi
mov edi, eax
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], dl
call fcn.01003ac0
add esp, 0xc
mov eax, esi
sub eax, edi
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, eax
test ebx, ebx
je 0x10034d1
push 0xd
push 0x1001598
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.01003d70
add esp, 0x10
test eax, eax
jne 0x10035c5
add ebx, edi
mov byte [ebp + ebx - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call fcn.01002aa5
test al, al
je 0x10034d1
mov edi, 0x208
xor ebx, ebx
push edi
lea eax, [ebp - 0x316]
push ebx
push eax
mov word [ebp - 0x318], bx
call fcn.01003ac0
push edi
lea eax, [ebp - 0x522]
push ebx
push eax
mov word [ebp - 0x524], bx
call fcn.01003ac0
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
add esp, 0x18
push esi
lea eax, [ebp - 0x524]
push eax
push 0x67
push dword [0x100ef84]
call edi
test eax, eax
je 0x10035c5
push esi
lea eax, [ebp - 0x318]
push eax
push 0x6c
push dword [0x100ef84]
call edi
test eax, eax
je 0x10035c5
push 0x30
lea eax, [ebp - 0x524]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x10035c5
call fcn.01002983
call fcn.01002af4
call fcn.01002e1c
push 1
push 0x100157c
push 0x100156c
mov ebx, 0x10014e0
push ebx
mov edi, 0x80000001
push edi
call fcn.01002b41
push 1
push 0x100157c
push 0x10014cc
push ebx
push edi
call fcn.01002b41
push esi
lea eax, [ebp - 0x72c]
push eax
push dword [ebp - 0x730]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x72c]
push 0x5c
push eax
call fcn.01003840
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
je 0x1003550
cmp word [eax], 0x5c
jne 0x1003550
mov word [eax], di
lea eax, [ebp - 0x72c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa2
call esi
push 0xa3
movzx ebx, ax
call esi
test bl, bl
movzx eax, ax
js 0x10035b5
test al, al
js 0x10035b5
push edi
push dword [ebp - 0x730]
push 0x1002928
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
push edi
push 0x1003279
push edi
push 0x81
push dword [ebp - 0x730]
mov dword [0x100ef88], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov eax, dword [0x100ef88]
cmp eax, edi
je 0x10035c5
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
jmp 0x10035c5
push edi
mov dword [0x100ef8c], 1
call fcn.01003005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.01003a9f
leave
ret 0x10

Function at 0x1003a9f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100e004]
jne 0x1003aa9
repz ret
jmp fcn.010062fe
Function at 0x10041fa
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x100e018]
je 0x1004215
inc edi
cmp edi, 0x17
jb 0x1004206
cmp edi, 0x17
jae 0x1004395
push ebp
push 3
call fcn.01007bda
cmp eax, 1
pop ecx
je 0x1004361
push 3
call fcn.01007bda
test eax, eax
pop ecx
jne 0x1004249
cmp dword [section..data], 1
je 0x1004361
cmp ebx, 0xfc
je 0x1004394
push 0x1001b68
mov ebx, 0x314
push ebx
mov ebp, 0x100eff8
push ebp
call fcn.01007b70
add esp, 0xc
test eax, eax
je 0x100427f
push esi
push esi
push esi
push esi
push esi
call fcn.01005778
add esp, 0x14
push 0x104
mov esi, 0x100f011
push esi
push 0
mov byte [0x100f115], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10042c3
push 0x1001b50
push 0x2fb
push esi
call fcn.01007b70
add esp, 0xc
test eax, eax
je 0x10042c3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.01005778
add esp, 0x14
push esi
call fcn.01007ae0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1004308
push esi
call fcn.01007ae0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100f30c
push 0x1001b4c
sub ecx, eax
push ecx
push eax
call fcn.01007a28
add esp, 0x14
test eax, eax
je 0x1004308
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.01005778
add esp, 0x14
jmp 0x100430a
xor esi, esi
push 0x1001b48
push ebx
push ebp
call fcn.010079b2
add esp, 0xc
test eax, eax
je 0x100432a
push esi
push esi
push esi
push esi
push esi
call fcn.01005778
add esp, 0x14
push dword [edi*8 + 0x100e01c]
push ebx
push ebp
call fcn.010079b2
add esp, 0xc
test eax, eax
je 0x100434c
push esi
push esi
push esi
push esi
push esi
call fcn.01005778
add esp, 0x14
push 0x12010
push 0x1001b20
push ebp
call fcn.010077f0
add esp, 0xc
jmp 0x1004394
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1004394
cmp ebp, 0xffffffff
je 0x1004394
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100e01c]
push dword [esi]
call fcn.01007ae0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10077f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.01004d98
xor ebx, ebx
cmp dword [0x100f91c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10078c6
push 0x1001d0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10079a6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001d00
push edi
call esi
cmp eax, ebx
je 0x10079a6
push eax
call fcn.01004d25
mov dword [esp], 0x1001cf0
push edi
mov dword [0x100f91c], eax
call esi
push eax
call fcn.01004d25
mov dword [esp], 0x1001cdc
push edi
mov dword [0x100f920], eax
call esi
push eax
call fcn.01004d25
mov dword [0x100f924], eax
lea eax, [ebp - 0xc]
push eax
call fcn.01003f58
test eax, eax
pop ecx
pop ecx
je 0x1007894
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01005778
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10078c6
push 0x1001cc0
push edi
call esi
push eax
call fcn.01004d25
cmp eax, ebx
pop ecx
mov dword [0x100f92c], eax
je 0x10078c6
push 0x1001ca8
push edi
call esi
push eax
call fcn.01004d25
pop ecx
mov dword [0x100f928], eax
mov eax, dword [0x100f928]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100794b
cmp dword [0x100f92c], ecx
je 0x100794b
push eax
call fcn.01004da6
push dword [0x100f92c]
mov esi, eax
call fcn.01004da6
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100794b
cmp edi, ebx
je 0x100794b
call esi
cmp eax, ebx
je 0x1007918
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1007918
test byte [ebp - 0x18], 1
jne 0x100794b
lea eax, [ebp - 0x10]
push eax
call fcn.01003f94
test eax, eax
pop ecx
je 0x1007933
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01005778
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1007942
or dword [ebp + 0x10], 0x200000
jmp 0x1007986
or dword [ebp + 0x10], 0x40000
jmp 0x1007986
mov eax, dword [0x100f920]
cmp eax, dword [ebp - 8]
je 0x1007986
push eax
call fcn.01004da6
cmp eax, ebx
pop ecx
je 0x1007986
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1007986
mov eax, dword [0x100f924]
cmp eax, dword [ebp - 8]
je 0x1007986
push eax
call fcn.01004da6
cmp eax, ebx
pop ecx
je 0x1007986
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100f91c]
call fcn.01004da6
cmp eax, ebx
pop ecx
je 0x10079a6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10079a8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406a26
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a4a
xor eax, eax
test eax, eax
je 0x406a5d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a5d
xor ecx, ecx
jmp 0x406a60
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b83
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406bba
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b94
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b8f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406beb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bcd
pop edi
not eax
pop esi
ret 0xc

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2c9a25eb
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1cd0742a
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219