joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa88d90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0xa88d97
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0xa88e74
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xab0a48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0xab0a48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0xab0a48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xab0a48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xab0a48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xab0a48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xab0a48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xab0a48]
inc ecx
sub edx, 8
sub esi, 1
jne 0xa88db0
pop edi
test edx, edx
je 0xa88e9b
jmp 0xa88e80
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0xab0a48]
inc ecx
sub edx, 1
jne 0xa88e80
not eax
pop esi
ret

Function at 0xa88ea0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0xab0a48]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0xab0a48]
mov dword [edx + 8], ecx
ret

Function at 0xa88ef0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0xab0a48]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0xab0a48]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0xa8a2f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0xa8a30e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0xa8a302
cmp dword [edi + 0x7c], ebx
je 0xa8a31d
call fcn.00a8a6e0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00a8a060
add esp, 0xc
test eax, eax
je 0xa8a344
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.00a9565a
mov esi, eax
add esp, 4
cmp esi, ebx
je 0xa8a385
push 0x4000
call fcn.00a9565a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0xa8a392
push esi
call fcn.00a95724
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0xa8a3da
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00a891b0
test eax, eax
jne 0xa8a3da
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0xa8a404
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0xa8a40d
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x70]
mov dword [esi + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmp ebp, ebx
je 0xa8a447
mov cl, byte [ebp]
cmp cl, bl
je 0xa8a447
call fcn.00a88ea0
add ebp, 1
jne 0xa8a436
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
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 0x70fa4d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x70fa4dfc
push esi
push edi
mov eax, dword [ebp + 8]
mov esi, dword [eax]
cmp esi, ebx
je 0x70fa4dfa
cmp dword [ebp + 0xc], ebx
je 0x70fa4d5f
cmp dword [esi + 0x18], 1
jne 0x70fa4df0
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x70fa4d6d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 4]
push eax
push 1
push ebx
push dword [esi + 4]
lea edi, [esi + 0x14]
push dword [esi]
mov dword [esi + 0x10], ebx
mov dword [edi], ebx
mov dword [esi + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x70fa4df0
push edi
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [esi + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x70fa4de5
mov eax, dword [edi]
cmp eax, ebx
jbe 0x70fa4de5
mov ecx, dword [esi + 0xc]
cmp ecx, dword [ebp - 8]
jne 0x70fa4de5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x70fa4de5
push edi
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [esi + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x70fa4de7
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 0x10], ebx
mov dword [edi], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [ebp + 8], 4
jne 0x70fa4d43
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x70fa4e01
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x70fa4e65
push esi
mov esi, dword [ebx]
test esi, esi
je 0x70fa4e64
cmp dword [esi + 0x10], 0
je 0x70fa4e5f
cmp dword [ebp + 0xc], 1
je 0x70fa4e25
cmp dword [esi + 0x18], 1
jne 0x70fa4e5f
lea eax, [ebp + 8]
push eax
push 2
push 0
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x70fa4e5b
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
push eax
push dword [esi + 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esi + 0x18], 0
add ebx, 4
jne 0x70fa4e0d
pop esi
pop ebx
pop ebp
ret 8
Function at 0x70faaa06
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
mov esi, ecx
push eax
push dword [esi + 0x10]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov edi, dword [ebp + 0xc]
push 0x32
mov word [edi], bx
mov dword [ebp - 8], ebx
pop ebx
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x70faaa76
cmp dword [ebp - 8], 1
jne 0x70faaa62
movzx eax, word [edi]
mov cl, byte [ebp + 0xf]
mov edx, dword [ebp + 8]
mov byte [eax + edx], cl
inc word [edi]
cmp byte [ebp + 0xf], 0xa
je 0x70faaa92
jmp 0x70faaa76
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x70faaa8b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp - 4], 0x32
push 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp + 0xf]
push eax
push dword [esi + 0x10]
call ebx
test eax, eax
jne 0x70faaa45
mov dword [ebp - 0xc], 0xb
movzx eax, word [edi]
mov ecx, dword [ebp + 8]
and byte [eax + ecx], 0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x70faaca0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x70faacc8
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x70faaced
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [esi + 4], 0
pop esi
leave
ret

Function at 0x70faacfe
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
xor edi, edi
push edi
mov esi, ecx
push esi
push 0x70faacf0
push 0x2000
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 8], eax
jne 0x70faad2a
push 0x49
pop edi
push eax
call fcn.70fb4d8a
mov eax, edi
pop edi
pop esi
pop ecx
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 0x40364f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.0040344a
mov ds, word [ecx + 0x3b]
and cl, byte [edi]
mov bh, 0x47
push es
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.0040344a
xchg ecx, eax
lds ebx, [edx]
sbb eax, 0x6478b66
cmp ax, bx
jbe 0x4036a4
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x40369e
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x40368f
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0040344a
pop ebp
and al, 0xcc
popal
lea eax, [ebp - 0x58]
push eax
call fcn.0040345a
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0040340f
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x403738
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040344a
das
sahf
fimul word [ebp - 0x17af3fbb]
invalid
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 0xa98268
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa983b8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa9828e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9827a
add dl, dl
jne 0xa98299
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa982ec
xor eax, eax
add dl, dl
jne 0xa982a6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9838d
add dl, dl
jne 0xa982b5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa982c0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa982cb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa982d6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa982e2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa98285
mov eax, 1
add dl, dl
jne 0xa982fa
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa98305
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa982f1
sub eax, ebx
mov ebx, 1
jne 0xa98338
mov ecx, 1
add dl, dl
jne 0xa9831e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa98329
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa98315
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa98285
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa9834f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa9835a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa98346
cmp eax, 0x7d00
jae 0xa9837d
cmp eax, 0x500
jb 0xa98378
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa98285
cmp eax, 0x7f
ja 0xa98380
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa98285
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa983ae
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 0xa98285
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

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 0x4017a0
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
cmp eax, 0x11
je 0x4017c5
cmp eax, 0x13
jne 0x4017bf
test byte [section..data], 8
jne 0x4017d0
leave
xor eax, eax
ret 0x10
leave
jmp sym._ExtCabCallback_16.part.0
mov eax, dword [edx]
call sym._wine_dbgstr_wn.constprop.1
mov dword [esp + 0xc], str.Extracted__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.ExtCabCallback
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.2
xor eax, eax
leave
ret 0x10
Function at 0x402a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
mov esi, eax
xor eax, eax
test esi, esi
je 0x402a68
cmp byte [ebx + esi - 1], 0xa
je 0x402a3c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4070a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x403080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call dbg.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x403244
mov edx, dword fs:[0x18]
xor eax, eax
mov edi, dword [0x4070a4]
cmp dword [edx + 0x24], edi
je 0x403167
test byte [0x404018], 8
jne 0x4031f0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x404028], 8
jne 0x4031b3
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x403109
cmp esi, 3
jbe 0x403172
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x40311a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x406298]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.2
jmp 0x403109
mov dword [esp], 0x404028
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x4030e0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x4030e0
mov dword [esp], 0x404018
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x4030cb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x4030d3
mov eax, 0xffffffff
jmp 0x403167

Function at 0x4032b0
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov ebx, dword [eax]
call sym.___p___wargv
mov esi, dword [eax]
call sym.__get_initial_wide_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dbg.wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x403320
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x4033a6
cmp ax, 9
je 0x403394
cmp ax, 0x20
je 0x403394
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x4033f2
cmp ax, 0x22
je 0x403400
mov dword [ebp - 0x54], 0
add ebx, 2
movzx eax, word [ebx]
test ax, ax
je 0x4033a6
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x403350
test edi, 1
jne 0x403350
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x403394
cmp ax, 0x20
je 0x403394
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x403412
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.wWinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40336b
and dword [ebp - 0x54], 1
jne 0x403364
xor edi, 1
jmp 0x40336b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x4033bf

Function at 0x40119f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push ebx
mov dword [ebp - 4], 0x479aebb
mov eax, dword [ebp - 4]
test eax, eax
je 0x4011bc
mov dword [ebp - 4], 0x456e297
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], eax
jae 0x401288
call fcn.00401488
mov esi, eax
lea eax, [esi + 0x1b78]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
add ecx, 1
and ecx, 0xff
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], 0x132e062
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
movzx edx, byte [edx + ebx]
add ecx, edx
and ecx, 0xff
mov dword [ebp - 0xc], ecx
call fcn.00401498
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
push eax
call section..text
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
movzx ecx, byte [ecx + edx]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
movzx edx, byte [edx + ebx]
add ecx, edx
and ecx, 0xff
movsx eax, byte [eax + ecx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
movsx ecx, byte [ecx + edx]
xor eax, ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
inc dword [ebp - 0x10]
jmp 0x4011d7
mov dword [ebp - 0x10], 0x304ed05
mov eax, 0
pop ebx
pop esi
mov esp, ebp
pop ebp
ret