joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a32c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, 0xfffefdfc
mov ecx, 0x40
mov ebx, dword [ebp + 0x10]
mov dword [ebx + ecx*4 - 4], eax
sub eax, 0x4040404
dec ecx
jne 0x1001a33f
mov edi, dword [ebp + 0xc]
mov esi, 0x40
xor ebx, ebx
push ebp
mov ebp, dword [ebp + 0x10]
mov eax, ecx
xor edx, edx
div esi
mov al, cl
mov dl, byte [edi + edx]
add dl, byte [ebp + eax]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
xchg byte [ebp + eax], dl
mov byte [ebp + ebx], dl
inc ecx
cmp ecx, 0x300
jne 0x1001a359
pop ebp
xor ecx, ecx
mov edi, dword [ebp + 8]
mov esi, 0x20
push ebp
mov ebp, dword [ebp + 0x10]
mov eax, ecx
xor edx, edx
div esi
mov al, cl
mov dl, byte [edi + edx]
add dl, byte [ebp + eax]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
xchg byte [ebp + eax], dl
mov byte [ebp + ebx], dl
inc ecx
cmp ecx, 0x300
jne 0x1001a392
pop ebp
xor ecx, ecx
mov edi, dword [ebp + 0xc]
mov esi, 0x40
push ebp
mov ebp, dword [ebp + 0x10]
mov eax, ecx
xor edx, edx
div esi
mov al, cl
mov dl, byte [edi + edx]
add dl, byte [ebp + eax]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
xchg byte [ebp + eax], dl
mov byte [ebp + ebx], dl
inc ecx
cmp ecx, 0x300
jne 0x1001a3cb
pop ebp
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x1001a400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor eax, eax
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
xor edx, edx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
je 0x1001a44c
push ebp
mov ebp, dword [ebp + 0x10]
mov dl, byte [ebp + ecx]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
mov dl, byte [ebp + edx]
inc dl
mov al, byte [ebp + edx]
xor byte [edi], al
mov dl, byte [ebp + ebx]
xchg byte [ebp + ecx], dl
mov byte [ebp + ebx], dl
inc cl
inc edi
dec esi
test esi, esi
jne 0x1001a41d
pop ebp
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x1001a454
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, 6
lodsd eax, dword [esi]
bswap eax
ror eax, 0xd
mov edx, eax
not edx
lodsd eax, dword [esi]
rol eax, 0xb
bswap eax
xor eax, edx
stosd dword es:[edi], eax
lodsd eax, dword [esi]
rol eax, 9
bswap eax
mov edx, eax
not edx
stosd dword es:[edi], eax
lodsd eax, dword [esi]
rol eax, 7
bswap eax
xor eax, edx
mov edx, eax
not edx
stosd dword es:[edi], eax
rol eax, 5
xor eax, edx
stosd dword es:[edi], eax
lea esi, [edi - 0x10]
dec ebx
test ebx, ebx
jne 0x1001a465
pop edi
pop esi
pop ebx
pop ebp
ret 8

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 0x41da8c
Capabilities:
Encode data using xor

Disassembly:
das
and ecx, 0x70d3646a
xor esi, 0xf5
cmp eax, 0x5740
jae 0x41dab7
mov ecx, 0xcc125bff
add ecx, 0x38106fc8
and eax, 0x3dc2f05f
imul ebx, edx, 0xad5e05bd
mov cl, cl
push esi
mov edx, eax
pop edx
movzx ebx, ax
cmp ecx, 0x49f5
je 0x41daca
mov bl, bh
xor edx, 0xab158
dec edx
bswap ebx
xor ebp, 0xd93224c6
cmp edx, 0x521
jae 0x41dad0
movd ebp, mm0
mov bh, 0xf0
dec ah
not eax
jmp 0x41daee
lea edx, [0x8b]
imul edx, edx, 0xb
xadd ebp, edx
inc eax
inc ebx
and eax, 0x7581413e
cmp dl, ah
mov eax, 0xff0b091a
cmp ecx, ebp
ja 0x41db14
imul edi, esi, 0x763233a4
push 0x9eaf84
push 0x4c97e3
jo 0x41db23
movzx ecx, ah
jmp 0x41db28
mov edx, edi
push ebp
movzx ebx, bl
test dl, cl
lea eax, [0x10f946ee]
cmp esi, ebp
neg ah
ret
Function at 0x4055f0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push eax
xor eax, 0xd45a
sub eax, 0x14aa2
add eax, 0xf67c
pop eax
push edi
and edi, 0xaf42
pop edi
push ebx
push edi
add esp, 4
call fcn.004055f0
add byte [edx], bh
inc esp
cmp dword [ecx*2 - 0x3b7cb0cb], edi
add esp, 4
pop ebx
add esp, 4
pop ebx
lea ecx, [ebp - 0x1738]
mov dword [ebp - 0xc94], ecx
mov edx, dword [ebp - 0x504]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0xc90], eax
xor ecx, ecx
mov word [ebp - 0x210], cx
xor edx, edx
mov word [ebp - 0x10c], dx
push ebx
jmp 0x405629
or ebx, 0x9979
jmp 0x405638
pop ebx
push esi
or esi, 0x4a29
xor esi, 0x1661f
pop esi
push ebx
push esi
add esp, 4
sub ebx, 0x7167
pop ebx
mov eax, dword [ebp - 0xc90]
mov cx, word [eax]
mov word [ebp - 0x1032], cx
mov edx, dword [ebp - 0xc90]
add edx, 2
mov dword [ebp - 0xc90], edx
mov ax, word [ebp - 0x1032]
mov word [ebp - 0x210], ax
mov ecx, dword [ebp - 0xc94]
mov dx, word [ecx]
mov word [ebp - 0x1034], dx
mov eax, dword [ebp - 0xc94]
add eax, 2
mov dword [ebp - 0xc94], eax
mov cx, word [ebp - 0x1034]
mov word [ebp - 0x10c], cx
push edx
push edi
add esp, 4
jmp 0x4056b8
xor edx, 0xf280
or edx, 0x171d
add edx, 0x118e1
pop edx
push edi
add edi, 0x2822
pop edi
push eax
push ecx
add esp, 4
xor eax, 0x13670
pop eax
movzx edx, word [ebp - 0x10c]
test edx, edx
jne 0x405702
movzx eax, word [ebp - 0x210]
movzx ecx, word [ebp - 0x10c]
sub eax, ecx
mov dword [ebp - 0x15e0], eax
jmp 0x405765
movzx edx, word [ebp - 0x210]
movzx eax, word [ebp - 0x10c]
cmp edx, eax
je 0x405621
movzx ecx, word [ebp - 0x210]
xor ecx, 0x20
movzx edx, word [ebp - 0x10c]
cmp ecx, edx
je 0x405621
movzx eax, word [ebp - 0x210]
movzx ecx, word [ebp - 0x10c]
cmp eax, ecx
jge 0x40574f
mov dword [ebp - 0x15dc], 0xffffffff
jmp 0x405759
mov dword [ebp - 0x15dc], 1
mov edx, dword [ebp - 0x15dc]
mov dword [ebp - 0x15e0], edx
cmp dword [ebp - 0x15e0], 0
jne 0x4057ae
push edi
xor edi, 0x445c
sub edi, 0x11652
xor edi, 0x16e3
pop edi
push edx
sub edx, 0x98c8
call 0x405796
add byte [edx + 0x44], al
dec ecx
cmp dword [edi], esi
dec ebp
inc esi
add esp, 4
add edx, 0x16911
pop edx
mov eax, dword [ebp - 0x504]
mov dword [ebp - 0x31c], eax
jmp 0x405816
push edi
push edi
add esp, 4
jmp 0x4057bb
add edi, 0xcbc
jmp 0x4057c7
pop edi
push ecx
push eax
add esp, 4
xor ecx, 0x8402
add ecx, 0x8d3a
jmp 0x4057df
pop ecx
mov ecx, dword [ebp - 0x504]
mov edx, dword [ecx]
mov dword [ebp - 0x504], edx
mov eax, dword [ebp - 0x504]
cmp eax, dword [ebp - 0xc98]
je 0x40580c
mov ecx, dword [ebp - 0x504]
cmp dword [ecx + 0x30], 0
jne 0x4055c2
mov dword [ebp - 0x31c], 0
Function at 0x405796
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push eax
xor eax, 0xd45a
sub eax, 0x14aa2
add eax, 0xf67c
pop eax
push edi
and edi, 0xaf42
pop edi
push ebx
push edi
add esp, 4
call fcn.004055f0
add byte [edx], bh
inc esp
cmp dword [ecx*2 - 0x3b7cb0cb], edi
add esp, 4
pop ebx
add esp, 4
pop ebx
lea ecx, [ebp - 0x1738]
mov dword [ebp - 0xc94], ecx
mov edx, dword [ebp - 0x504]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0xc90], eax
xor ecx, ecx
mov word [ebp - 0x210], cx
xor edx, edx
mov word [ebp - 0x10c], dx
push ebx
jmp 0x405629
or ebx, 0x9979
jmp 0x405638
pop ebx
push esi
or esi, 0x4a29
xor esi, 0x1661f
pop esi
push ebx
push esi
add esp, 4
sub ebx, 0x7167
pop ebx
mov eax, dword [ebp - 0xc90]
mov cx, word [eax]
mov word [ebp - 0x1032], cx
mov edx, dword [ebp - 0xc90]
add edx, 2
mov dword [ebp - 0xc90], edx
mov ax, word [ebp - 0x1032]
mov word [ebp - 0x210], ax
mov ecx, dword [ebp - 0xc94]
mov dx, word [ecx]
mov word [ebp - 0x1034], dx
mov eax, dword [ebp - 0xc94]
add eax, 2
mov dword [ebp - 0xc94], eax
mov cx, word [ebp - 0x1034]
mov word [ebp - 0x10c], cx
push edx
push edi
add esp, 4
jmp 0x4056b8
xor edx, 0xf280
or edx, 0x171d
add edx, 0x118e1
pop edx
push edi
add edi, 0x2822
pop edi
push eax
push ecx
add esp, 4
xor eax, 0x13670
pop eax
movzx edx, word [ebp - 0x10c]
test edx, edx
jne 0x405702
movzx eax, word [ebp - 0x210]
movzx ecx, word [ebp - 0x10c]
sub eax, ecx
mov dword [ebp - 0x15e0], eax
jmp 0x405765
movzx edx, word [ebp - 0x210]
movzx eax, word [ebp - 0x10c]
cmp edx, eax
je 0x405621
movzx ecx, word [ebp - 0x210]
xor ecx, 0x20
movzx edx, word [ebp - 0x10c]
cmp ecx, edx
je 0x405621
movzx eax, word [ebp - 0x210]
movzx ecx, word [ebp - 0x10c]
cmp eax, ecx
jge 0x40574f
mov dword [ebp - 0x15dc], 0xffffffff
jmp 0x405759
mov dword [ebp - 0x15dc], 1
mov edx, dword [ebp - 0x15dc]
mov dword [ebp - 0x15e0], edx
cmp dword [ebp - 0x15e0], 0
jne 0x4057ae
push edi
xor edi, 0x445c
sub edi, 0x11652
xor edi, 0x16e3
pop edi
push edx
sub edx, 0x98c8
call 0x405796
add byte [edx + 0x44], al
dec ecx
cmp dword [edi], esi
dec ebp
inc esi
add esp, 4
add edx, 0x16911
pop edx
mov eax, dword [ebp - 0x504]
mov dword [ebp - 0x31c], eax
jmp 0x405816
push edi
push edi
add esp, 4
jmp 0x4057bb
add edi, 0xcbc
jmp 0x4057c7
pop edi
push ecx
push eax
add esp, 4
xor ecx, 0x8402
add ecx, 0x8d3a
jmp 0x4057df
pop ecx
mov ecx, dword [ebp - 0x504]
mov edx, dword [ecx]
mov dword [ebp - 0x504], edx
mov eax, dword [ebp - 0x504]
cmp eax, dword [ebp - 0xc98]
je 0x40580c
mov ecx, dword [ebp - 0x504]
cmp dword [ecx + 0x30], 0
jne 0x4055c2
mov dword [ebp - 0x31c], 0
Function at 0x405c1a
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop edx
push esi
sub esi, 0x8e4f
or esi, 0x1647d
add esi, 0x1269
pop esi
mov ecx, dword [ebp - 0x508]
mov dword [ebp - 0x750], ecx
jmp 0x405ca8
Function at 0x41d8c4
Capabilities:
Encode data using xor

Disassembly:
add dword [ecx], eax
xor eax, 0x3b354849
xor edi, dword [0xe905c584]
or al, byte [ecx]
add dword [ecx], eax
add dword [ebx + 0x50], eax
xor al, 0x42
xor eax, dword [edx + 0x33]
dec ebp
test ch, al
add eax, 0x81968c5a
xor ecx, dword [ebp - 0x7c]
lds eax, [0x81968c5a]
jecxz 0x41d8e7
add byte [edx + 0xe37d96], cl
add byte [esi + 0xef8586], cl
add byte [ecx], dl
xchg esi, eax
jge 0x41d8dc
add byte [eax], al
xchg cl, al
jbe 0x41d941
pop eax
push esp
test ch, al
add eax, 0x3378c882
add al, byte [ecx]
jmp 0x142da18
push edi
test ch, al
add eax, 0x3b8cd082
add al, byte [ecx]
sub al, 0xe7
outsb dx, byte [esi]
add dword [ecx], eax
xor al, 0x35
jecxz 0x41d957
add dword [edx + 0x1fc63c8], eax
add dword [eax + 0x57], esp
or al, 0x63
cld
add dword [ecx], eax
pushal
push edi
jmp 0x142da6f

Function at 0x4225eb
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x422658
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x207
push str.msuengine.cpp
call fcn.0043c22c
push str.Failed_to_stop_wusa_service.
push esi
call fcn.0043d011
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00429d4c
mov esp, ebp
pop ebp
ret 4
Function at 0x4256c1
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov ebx, 0x44a580
mov eax, dword [edi + 4]
test eax, eax
je 0x4256e0
mov edx, dword [eax]
jmp 0x4256ed
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4256eb
mov edx, dword [ecx]
jmp 0x4256ed
mov edx, ebx
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4256f6
mov ebx, dword [ecx]
test eax, eax
je 0x425708
xor eax, eax
test ecx, ecx
setne al
add eax, 0x20000150
jmp 0x425716
cmp dword [edi + 8], esi
mov eax, 0x2000014f
lea ecx, [eax + 3]
cmovne eax, ecx
push dword [ebp + 0xc]
push str.copy
push ebx
push edx
push eax
push 2
call fcn.004020b3
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push ebx
call fcn.00443887
test eax, eax
je 0x425794
mov eax, dword [ebp - 4]
test al, 1
je 0x425794
and eax, 0xfffffffe
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x425794
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x54c
push str.apply.cpp
call fcn.0043c22c
push ebx
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.0043d011
add esp, 0xc
jmp 0x425812
push esi
lea eax, [edi + 0x20]
push eax
push edi
push fcn.004255a6
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x425812
cmp dword [edi + 0x20], esi
je 0x4257d2
mov esi, 0x80070642
push esi
push 0x556
push str.apply.cpp
call fcn.0043c22c
push ebx
push dword [ebp + 0xc]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
jmp 0x425809
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x55a
push str.apply.cpp
call fcn.0043c22c
push ebx
push dword [ebp + 0xc]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push esi
call fcn.0043d011
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x425c89
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 4], 0
mov eax, 0x44a580
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 8], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x425cac
mov eax, dword [ecx]
jmp 0x425cb5
mov edx, dword [esi + 8]
test edx, edx
je 0x425cb5
mov eax, dword [edx]
mov edx, dword [esi + 0xc]
mov dword [ebp + 8], eax
test edx, edx
je 0x425cc4
mov eax, dword [edx]
mov dword [ebp - 8], eax
lea ebx, [ecx + 0x2c]
test ecx, ecx
jne 0x425d04
mov eax, dword [edx + 0x10]
lea ebx, [edx + 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x14]
and dword [ebp - 0x18], 0
lea edi, [ebp - 0x24]
and dword [ebp - 0x14], 0
mov dword [ebp - 0xc], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
je 0x425d0f
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x425d1e
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x1c]
jmp 0x425cd7
cmp dword [esi + 8], 0
mov eax, 0x2000014f
lea ecx, [eax + 3]
cmovne eax, ecx
push dword [ebx]
push str.download
push dword [ebp - 8]
push dword [ebp + 8]
push eax
push 2
call fcn.004020b3
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push edi
call fcn.00443887
test eax, eax
je 0x425da2
mov eax, dword [ebp - 4]
test al, 1
je 0x425da2
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x425da2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x57c
push str.apply.cpp
call fcn.0043c22c
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.0043d011
add esp, 0xc
jmp 0x425e4b
and dword [ebp - 0x20], 0
mov dword [ebp - 0x24], fcn.004255a6
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx]
push 0x62
pop ecx
cmp cx, word [eax]
jne 0x425e01
push 0x69
pop ecx
cmp cx, word [eax + 2]
jne 0x425e01
push 0x74
pop ecx
cmp cx, word [eax + 4]
jne 0x425e01
push 0x73
pop edx
cmp dx, word [eax + 6]
jne 0x425e01
movzx ecx, word [eax + 8]
mov dword [ebp + 0xc], 0x3a
cmp word [ebp + 0xc], cx
je 0x425df4
cmp dx, cx
jne 0x425e01
mov ecx, dword [ebp + 0xc]
cmp cx, word [eax + 0xa]
jne 0x425e01
push edi
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.00429913
jmp 0x425e34
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], 0x4254bf
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call fcn.00445eab
mov esi, eax
test esi, esi
jns 0x425e4b
push edi
push dword [ebx]
push str.Failed_attempt_to_download_URL:__ls_to:__ls
push esi
call fcn.0043d011
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42cff7
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push str.FlsAlloc
push 0x45f170
push str.FlsAlloc
push 0
call fcn.0042cf00
add esp, 0x10
test eax, eax
je 0x42d01e
push dword [ebp + 8]
call eax
pop ebp
ret
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x42d054
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push str.FlsGetValue
push 0x45f194
push str.FlsGetValue
push 2
call fcn.0042cf00
add esp, 0x10
push dword [ebp + 8]
test eax, eax
je 0x42d07b
call eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop ebp
ret

Function at 0x42d083
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push str.FlsSetValue
push 0x45f1a8
push str.FlsSetValue
push 3
call fcn.0042cf00
add esp, 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
test eax, eax
je 0x42d0ad
call eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop ebp
ret

Function at 0x42ffcd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xfffffffffffffff4
call fcn.00433ac7
mov esi, eax
pop ecx
test esi, esi
je 0x430039
cmp esi, 0xffffffff
je 0x430039
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1f8]
mov al, byte [edx]
mov byte [ecx], al
inc ecx
lea eax, [ebp - 4]
cmp ecx, eax
je 0x430014
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42fffd
xor eax, eax
push eax
mov byte [ebp - 5], al
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
sub ecx, eax
dec ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00429d4c
mov esp, ebp
pop ebp
ret

Function at 0x430584
Capabilities:
Parse pe header

Disassembly:
call fcn.00433b32
test al, al
jne 0x430590
xor al, al
ret
push 0
call fcn.00433a5d
pop ecx
mov ecx, eax
test ecx, ecx
je 0x43058d
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x43058d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43058d
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x43058d
cmp dword [eax + 0x74], 0xe
jbe 0x43058d
cmp dword [eax + 0xe8], 0
setne al
ret
Function at 0x4337aa
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
call fcn.00433b23
test al, al
jne 0x4337bf
xor eax, eax
jmp 0x4338e6
push ebx
xor ecx, ecx
mov ebx, 0x46ce38
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
jne 0x4338e3
push esi
push edi
push 0x800
push eax
mov edi, str.user32.dll
push edi
call fcn.00433ad6
mov esi, eax
add esp, 0xc
mov dword [ebp - 4], esi
test esi, esi
jne 0x433822
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4338d4
push esi
push esi
push edi
call fcn.00433ad6
add esp, 0xc
lea ecx, [ebp - 4]
push eax
call fcn.00433784
mov esi, dword [ebp - 4]
test esi, esi
je 0x4338d4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push esi
call edi
mov dword [ebp - 4], eax
test eax, eax
je 0x4338d4
push 0x4607e0
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x4338d4
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_EncodePointer]
call edi
mov ecx, 0x46ce3c
xchg dword [ecx], eax
push dword [ebp - 8]
call edi
mov ecx, 0x46ce40
xchg dword [ecx], eax
push str.GetActiveWindow
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ecx, 0x46ce44
xchg dword [ecx], eax
push str.GetLastActivePopup
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ecx, 0x46ce48
xchg dword [ecx], eax
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ecx, 0x46ce4c
xchg dword [ecx], eax
push str.GetUserObjectInformationW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ecx, 0x46ce50
xchg dword [ecx], eax
mov ecx, esi
xor eax, eax
lock cmpxchg dword [ebx], ecx
neg eax
sbb eax, eax
and esi, eax
jmp 0x4338d6
xor ebx, ebx
test esi, esi
je 0x4338e1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4339b4
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043363f
Function at 0x43442a
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
push esi
push edi
cmp edx, ebx
je 0x434473
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004345b3
test al, al
jne 0x43446d
sub edx, 2
cmp edx, ebx
jne 0x434453
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x434492
lea eax, [ebx + 2]
cmp edx, eax
je 0x434492
push ecx
xor edi, edi
push edi
push edi
push ebx
call fcn.00434375
add esp, 0x10
jmp 0x434504
push esi
lea ecx, [ebp - 0x255]
call fcn.004345b3
sub edx, ebx
movzx eax, al
sar edx, 1
inc edx
neg eax
push 0x250
sbb eax, eax
xor edi, edi
and eax, edx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push edi
push eax
call fcn.0042a6f0
add esp, 0xc
lea eax, [ebp - 0x254]
push edi
push edi
push edi
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
mov eax, dword [ebp - 0x25c]
cmp esi, 0xffffffff
jne 0x434515
push eax
push edi
push edi
push ebx
call fcn.00434375
add esp, 0x10
mov edi, eax
cmp esi, 0xffffffff
je 0x434502
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429d4c
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
push 0x2e
mov dword [ebp - 0x264], ecx
pop ecx
cmp word [ebp - 0x228], cx
jne 0x43454a
cmp word [ebp - 0x226], di
je 0x434565
cmp word [ebp - 0x226], cx
jne 0x43454a
cmp word [ebp - 0x224], di
je 0x434565
push eax
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push ebx
push eax
call fcn.00434375
add esp, 0x10
test eax, eax
jne 0x4344f4
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
mov eax, dword [ebp - 0x25c]
pop ecx
jne 0x434526
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x264]
sub eax, edx
sar eax, 2
cmp ecx, eax
je 0x4344f6
push 0x434128
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00438e20
add esp, 0x10
jmp 0x4344f6