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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
shr eax, 2
xor ecx, ecx
xor edx, edx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x46a31c
mov esi, ebx
mov edx, edi
sub esi, edi
mov dword [ebp - 4], eax
mov ebx, dword [esi + edx]
xor ebx, dword [edx]
add edx, 4
or ecx, ebx
dec eax
jne 0x46a306
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 4]
lea eax, [edx*4]
sub esi, eax
jne 0x46a335
pop edi
xor eax, eax
test ecx, ecx
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
add ebx, eax
add edi, eax
mov eax, ecx
mov edx, ecx
shr edx, 0x10
shr eax, 0x18
or al, dl
mov edx, ecx
shr edx, 8
or dl, al
or dl, cl
test esi, esi
je 0x46a363
mov ecx, ebx
mov eax, edi
sub ecx, edi
mov bl, byte [eax + ecx]
xor bl, byte [eax]
inc eax
or dl, bl
dec esi
jne 0x46a358
pop edi
xor eax, eax
test dl, dl
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475bad
Capabilities:
Get common file path

Disassembly:
push 0xc44
mov eax, 0x47dda1
call fcn.00433305
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, ecx
xor edi, edi
mov dword [ebp - 0xc50], eax
cmp esi, edi
je 0x475c18
cmp word [esi], di
je 0x475c18
push edi
push esi
call fcn.0042e775
pop ecx
pop ecx
test eax, eax
jne 0x475c18
mov dword [ebp - 0xc4c], edi
call fcn.004111c9
test al, al
je 0x475c18
push esi
call fcn.0042ecb7
pop ecx
test eax, eax
je 0x475c18
push 0xc8
call ebx
inc dword [ebp - 0xc4c]
cmp dword [ebp - 0xc4c], 0x3e8
jl 0x475beb
mov eax, dword [ebp - 0xc50]
cmp eax, edi
je 0x475c6d
cmp word [eax], di
je 0x475c6d
push edi
push eax
call fcn.0042e775
pop ecx
pop ecx
test eax, eax
jne 0x475c6d
mov dword [ebp - 0xc4c], edi
mov esi, dword [ebp - 0xc50]
call fcn.004111c9
test al, al
je 0x475c6d
push esi
call fcn.0042ecb7
pop ecx
test eax, eax
je 0x475c6d
push 0xc8
call ebx
inc dword [ebp - 0xc4c]
cmp dword [ebp - 0xc4c], 0x3e8
jl 0x475c3a
push 7
pop eax
xor ecx, ecx
mov dword [ebp - 0xc18], eax
mov dword [ebp - 0xc1c], edi
mov word [ebp - 0xc2c], cx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc34], eax
xor eax, eax
mov dword [ebp - 0xc38], edi
mov word [ebp - 0xc48], ax
lea eax, [ebp - 0xc48]
push eax
push dword [ebp - 0xc50]
lea ecx, [ebp - 0xc2c]
mov byte [ebp - 4], 1
call fcn.0040d81d
xor eax, eax
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
call fcn.0042ef80
add esp, 0x14
lea eax, [ebp - 0x410]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push 0x7fe
mov word [ebp - 0xc10], ax
lea eax, [ebp - 0xc0e]
push edi
push eax
call fcn.0042ef80
add esp, 0xc
push 0x400
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp dword [ebp - 0xc1c], edi
je 0x475d8e
cmp dword [ebp - 0xc18], 8
mov eax, dword [ebp - 0xc2c]
jae 0x475d3d
lea eax, [ebp - 0xc2c]
lea ecx, [ebp - 0xc10]
push ecx
push eax
call fcn.0042d560
pop ecx
pop ecx
test eax, eax
je 0x475d8e
cmp dword [ebp - 0xc18], 8
mov eax, dword [ebp - 0xc2c]
jae 0x475d65
lea eax, [ebp - 0xc2c]
push edi
push eax
call fcn.0042e775
pop ecx
pop ecx
test eax, eax
jne 0x475d8e
cmp dword [ebp - 0xc18], 8
mov eax, dword [ebp - 0xc2c]
jae 0x475d87
lea eax, [ebp - 0xc2c]
push eax
call fcn.0042eb02
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0xc48]
call fcn.00402144
push 1
lea esi, [ebp - 0xc2c]
call fcn.00402144
call fcn.00433388
ret 4
Function at 0x475faa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, 0x4abf80
cmp dword [0x4abf90], edi
jne 0x4760d9
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x475fed
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x804]
call fcn.00401f96
cmp dword [0x4abf94], 8
mov eax, dword [0x4abf80]
jae 0x476017
mov eax, esi
push edi
push eax
call fcn.0042e775
pop ecx
pop ecx
test eax, eax
je 0x476037
xor eax, eax
mov ecx, 0x48cba4
call fcn.00401f96
mov ecx, esi
call fcn.00411357
cmp dword [0x4abf90], edi
je 0x47605c
cmp dword [0x4abf94], 8
mov eax, dword [0x4abf80]
jae 0x47604f
mov eax, esi
push edi
push eax
call fcn.0042e775
pop ecx
pop ecx
test eax, eax
je 0x47606e
push str.TEMP
call fcn.0042ea88
pop ecx
push eax
push esi
call fcn.00402011
cmp dword [0x4abf90], edi
je 0x476093
cmp dword [0x4abf94], 8
mov eax, dword [0x4abf80]
jae 0x476086
mov eax, esi
push edi
push eax
call fcn.0042e775
pop ecx
pop ecx
test eax, eax
je 0x4760a5
push 0x491214
call fcn.0042ea88
pop ecx
push eax
push esi
call fcn.00402011
cmp dword [0x4abf90], edi
je 0x4760ca
cmp dword [0x4abf94], 8
mov eax, dword [0x4abf80]
jae 0x4760bd
mov eax, esi
push edi
push eax
call fcn.0042e775
pop ecx
pop ecx
test eax, eax
je 0x4760d9
push 0xffffffffffffffff
push edi
mov eax, 0x4abf48
mov ecx, esi
call fcn.00401d19
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042cc90
leave
ret
Function at 0x476289
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47dec0
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x4a0234]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov eax, dword [0x4a0234]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040bd73
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
call fcn.0040bcab
xor ebx, ebx
mov dword [esp + 0x460], ebx
mov eax, dword [eax]
cmp eax, ebx
je 0x4762f0
mov eax, dword [eax]
jmp 0x4762f2
xor eax, eax
push eax
lea esi, [esp + 0x34]
call fcn.00402ed2
lea edi, [esp + 0x2c]
call fcn.00401a09
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x460], 3
push dword [esp + 0x28]
lea ecx, [esp + 0x1c]
call fcn.004110d6
pop ecx
cmp eax, 1
jle 0x4763c6
xor eax, eax
push 0x3fe
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push ebx
push eax
call fcn.0042ef80
mov esi, dword [esp + 0x24]
add esp, 0xc
jmp 0x4763ba
push 0x200
lea eax, [esp + 0x50]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [esp + 0x44], 8
mov ecx, dword [esp + 0x30]
jae 0x476384
lea ecx, [esp + 0x30]
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4763ae
cmp dx, bx
je 0x4763aa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4763ae
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x476388
xor eax, eax
jmp 0x4763b3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4763c2
add esi, 4
cmp esi, dword [esp + 0x1c]
jne 0x476363
jmp 0x4763dd
mov eax, dword [esi]
jmp 0x4763d9
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub ecx, eax
sar ecx, 2
test ecx, ecx
je 0x4763dd
mov eax, dword [eax]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], ebx
je 0x4763ed
push dword [esp + 0x18]
call fcn.0042cc85
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x34]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00402144
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.0042cc90
mov esp, ebp
pop ebp
ret

Function at 0x476d2a
Capabilities:
Create thread

Disassembly:
push esi
call fcn.0042dd1c
mov esi, eax
xor eax, eax
cmp dword [0x4ac19c], eax
jne 0x476d74
cmp word [0x4ac2a2], 3
jne 0x476d57
test byte [0x4ac2b0], 1
je 0x476d57
cmp byte [0x4ac059], al
je 0x476d74
push 0x4ac1a4
push eax
push 0x4ac298
push 0x4084c3
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4ac1a8], eax
mov eax, esi
pop esi
ret
Function at 0x476d78
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x47e069
call fcn.00433305
xor ebx, ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea eax, [ebp - 0x2c]
push eax
push 0x401
push 0x4abf48
mov dword [ebp - 4], ebx
call fcn.004764cf
call fcn.004764f4
mov esi, eax
cmp esi, ebx
je 0x476dde
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x476dc0
lea eax, [ebp - 0x2c]
push esi
push 1
push dword [ebp - 0x1c]
push eax
call fcn.0042e59b
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
push esi
inc bl
call fcn.0042e682
add esp, 0x14
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.004081c7
mov al, bl
call fcn.00433388
ret

Function at 0x476df2
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x47e096
call fcn.00433305
and dword [ebp - 0x1c], 0
mov bl, 1
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push 0x3fc
push 0x4abf48
call fcn.004764cf
call fcn.00476580
mov esi, eax
test esi, esi
je 0x476e7b
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x476e3d
lea eax, [ebp - 0x2c]
mov eax, dword [eax]
cmp eax, dword [0x49038b]
jne 0x476e72
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x476e53
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
push esi
push 1
add ecx, 0xfffffffc
push ecx
add eax, 4
push eax
call fcn.0042e59b
add esp, 0x10
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
push esi
call fcn.0042e682
pop ecx
jmp 0x476e7d
xor bl, bl
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.004081c7
mov al, bl
call fcn.00433388
ret
Function at 0x477894
Capabilities:
Create thread

Disassembly:
push 0x64
mov eax, 0x47e42a
call fcn.0043333b
xor ebx, ebx
lea eax, [ebp - 0x50]
push eax
push ebx
push 0x4abf48
push 0x40384e
push ebx
push ebx
mov dword [0x4ac1a0], ebx
mov dword [ebp - 0x50], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], ebx
call fcn.00413310
or dword [ebp - 4], 0xffffffff
mov dword [0x4ac1a0], eax
jmp 0x4778e1
cmp dword [ebp - 0x50], ebx
je 0x4778fe
push ebx
push ebx
push 0x502
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4ac1a0], ebx
jne 0x4779bc
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov dword [ebp - 4], 2
cmp byte [0x4ac05b], bl
push str.KRglXTx2gH3c24R6o3JfvDqdFO9DgW9GgOnUdF
lea ebx, [ebp - 0x4c]
je 0x47795f
mov ecx, str.FY_izZbA2i5Uge3Hw_PzSVtCqR01pMBk_FJsF6ZxyR3ZTkoZSgTNqAREIIqufCgs8Wbr468wrhj3h5LHfzZoEvizA5WBjWXvxrmfNQiwlmgQMTkwuhOLsRtGday_pkqXYHuV3
call fcn.0040fa4e
pop ecx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00402b1a
push 0
push 1
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004020f6
lea esi, [ebp - 0x30]
call fcn.00412b20
jmp 0x477987
mov ecx, str.gbbqE3svfLcyUk3bNyrX4_MkGzsMd1MUZ5vNukEb9Mxb5HkegYFmsZRQtJI5gUSsrElb2D
call fcn.0040fa4e
pop ecx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00402b1a
push 0
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.004020f6
lea eax, [ebp - 0x30]
lea esi, [ebp - 0x70]
call fcn.0040a76d
mov eax, esi
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.0042cdbd
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
push 0x49939c
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], 0x490794
call fcn.0043276d
call fcn.00433397
ret
Function at 0x176a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x176a1a8
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 0x176a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x176a06a
add dl, dl
jne 0x176a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x176a0dc
xor eax, eax
add dl, dl
jne 0x176a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x176a17d
add dl, dl
jne 0x176a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x176a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x176a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x176a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x176a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x176a075
mov eax, 1
add dl, dl
jne 0x176a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x176a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x176a0e1
sub eax, ebx
mov ebx, 1
jne 0x176a128
mov ecx, 1
add dl, dl
jne 0x176a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x176a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x176a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x176a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x176a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x176a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x176a136
cmp eax, 0x7d00
jae 0x176a16d
cmp eax, 0x500
jb 0x176a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x176a075
cmp eax, 0x7f
ja 0x176a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x176a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x176a19e
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 0x176a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xeec0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00eec200
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 0xeec0d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xeec0c2
add dl, dl
jne 0xeec0e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xeec134
xor eax, eax
add dl, dl
jne 0xeec0ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xeec1d5
add dl, dl
jne 0xeec0fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xeec108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xeec113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xeec11e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xeec12a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xeec0cd
mov eax, 1
add dl, dl
jne 0xeec142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xeec14d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xeec139
sub eax, ebx
mov ebx, 1
jne 0xeec180
mov ecx, 1
add dl, dl
jne 0xeec166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xeec171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xeec15d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xeec0cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xeec197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xeec1a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xeec18e
cmp eax, 0x7d00
jae 0xeec1c5
cmp eax, 0x500
jb 0xeec1c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xeec0cd
cmp eax, 0x7f
ja 0xeec1c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xeec0cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xeec1f6
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 0xeec0cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401540
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x46bfe0]
push esi
xor esi, esi
test al, al
jne 0x401559
push 0x4c10db7
call fcn.00401480
add esp, 4
mov ecx, dword [esp + 0xc]
test ecx, ecx
jbe 0x401581
mov eax, dword [esp + 8]
push edi
movzx edi, byte [eax]
mov edx, esi
shr edx, 0x18
xor edx, edi
mov edi, dword [edx*4 + 0x46bbe0]
shl esi, 8
xor esi, edi
inc eax
dec ecx
jne 0x401566
pop edi
mov eax, esi
pop esi
ret

Function at 0x401880
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x1e8
mov eax, dword [0x46ad0c]
push esi
push edi
mov dword [esp + 0x1ec], eax
xor eax, eax
mov dword [esp + 0x18], 0x44
mov ecx, 0x10
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
push 0x190
lea eax, [esp + 0x60]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x5c]
push 0x5c
push ecx
call fcn.0044b7e0
lea edi, [esp + 0x64]
add esp, 8
mov byte [eax], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4018d2
mov edx, dword [str.loadwb.exe]
mov eax, dword [0x45d2b8]
mov ecx, dword [0x45d2bc]
mov dword [edi], edx
mov dword [edi + 4], eax
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
mov dword [edi + 8], ecx
push 0
lea ecx, [esp + 0x7c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x1ec]
pop edi
pop esi
call fcn.0044b7c8
add esp, 0x1e8
ret
Function at 0x401da0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x46ad0c]
push ebx
mov dword [esp + 0x43c], eax
push esi
push edi
xor eax, eax
mov ebx, ecx
mov byte [esp + 0x128], 0
mov ecx, 0x40
lea edi, [esp + 0x129]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x20], 0
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [esp + 0x24]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x20]
push 0x5c
push edx
call fcn.0044b7e0
add esp, 8
mov byte [eax], 0
mov dword [esp + 0x10], str.winpy
mov dword [esp + 0x14], str.winsp
mov dword [esp + 0x18], str.winwb86
mov dword [esp + 0x1c], str.winwb98
xor esi, esi
jmp 0x401e50
mov edi, dword [esp + esi*4 + 0x10]
push edi
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x340]
push str._s_s.mb
push ecx
call fcn.0044b73f
push edi
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x248]
push str._s_s.txt
push eax
call fcn.0044b73f
add esp, 0x20
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x33c]
push edx
mov ecx, ebx
call fcn.00401940
inc esi
cmp esi, 4
jb 0x401e50
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x33c]
push str._swinpy.txt
push ecx
call fcn.0044b73f
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x240]
push str._spy_gb.txt
push eax
call fcn.0044b73f
add esp, 0x18
push 1
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x340]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x444]
call fcn.0044b7c8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403ed0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esi + 0xc]
push ecx
push 0
push esi
push 0x403e50
push 0
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop esi
ret 4

Function at 0x403f00
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push str.kernel32.dll
mov esi, ecx
call ebx
test eax, eax
mov dword [esi], eax
jne 0x403f1a
pop esi
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.IsWow64Process
push eax
call edi
mov ecx, dword [esi]
push str.Wow64DisableWow64FsRedirection
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi]
push str.GetSystemWow64DirectoryA
push eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
test eax, eax
mov dword [esi + 4], eax
jne 0x403f72
pop edi
pop esi
pop ebx
ret
push str.Wow64RevertWow64FsRedirection
push eax
call edi
mov ecx, dword [esi + 4]
push str.Wow64RevertWow64FsRedirection
push ecx
mov dword [esi + 0x20], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
pop esi
mov eax, 1
pop ebx
ret

Function at 0x405590
Capabilities:
Suspend thread
Terminate thread

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_PostThreadMessageA]
mov esi, ecx
xor ebp, ebp
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
jne 0x4055f1
test ebp, ebp
jne 0x4055d5
mov edx, dword [esi + 0x20]
push ebp
push ebp
push 0x12
push edx
call edi
push 0xc8
call ebx
jmp 0x4055eb
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [esi + 0x1c]
push 0x2f
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
inc ebp
cmp ebp, 2
jl 0x4055a5
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4056b0
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45a788
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x18], 0
call fcn.004045f0
lea ecx, [esi + 0x20]
push ecx
push 0
push esi
push 0x405610
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
cmp dword [esp + 0x2c], 0x10
jb 0x40570b
mov edx, dword [esp + 0x18]
push edx
call fcn.0044afc3
add esp, 4
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x1c