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

Disassembly:
push ecx
mov eax, dword [0x517f1c]
xor edx, edx
cmp eax, edx
jne 0x493086
xor eax, eax
mov byte [eax + 0x517e1c], al
inc eax
cmp eax, 0x100
jl 0x49306e
mov dword [0x517f1c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x517e1c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x493117
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4930ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4930b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x493190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4931e3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4931ca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x499b90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c74be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0049a4b0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4d51fc
call fcn.004b87fc
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x499c23
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b87fc
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x499c1c
push 0
mov ecx, eax
call fcn.00490c90
mov dword [esi + 0xc], eax
jmp 0x499c25
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x499c25
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4bae8c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4baec4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b8f16
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b8eee
jmp 0x4baed0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4bc57a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4bc5bc
call fcn.004c2033
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4bc5bc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4bc5b3
xor eax, eax
jmp 0x4bc5c4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004bc5ca
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c2563
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c2591
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c25af
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c24c9
jmp 0x4c25af
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c25af
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c24c9
test edi, edi
mov eax, edi
jne 0x4c2599
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401b4b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0x14]
mov dword [esi], 0x4052d0
cmp dword [edi], ebx
je 0x401bf0
push str._mozilla.org_observer_service_1
mov edx, 0x405930
mov dword [ebp - 4], ebx
lea ecx, [ebp - 4]
call fcn.0040375e
mov eax, dword [ebp - 4]
test eax, eax
je 0x401bd0
mov ecx, dword [eax]
push ebx
push str.profile_change_net_teardown
push ebx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_change_teardown
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_qm
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_telemetry
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
xor edx, edx
mov ecx, edi
call fcn.0040384b
mov eax, dword [ebp - 4]
test eax, eax
je 0x401bf0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x401c27
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.xul.dll_NS_ShutdownXPCOM]
pop ecx
mov ecx, eax
shr ecx, 0x1f
test cl, 1
je 0x401c27
push eax
push str.XPCOM_shutdown_failed_with_code_0x_x
call fcn.004028da
pop ecx
pop ecx
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push dword [esi + 8]
push str.Finished_running__s_tests._n
call fcn.0040336b
pop ecx
pop ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x401c43
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x401c50
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x401c5c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x10]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x401c6c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4deec0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9c000]
push edi
jmp 0x4deeda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4deee1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4deed0
mov eax, 1
add ebx, ebx
jne 0x4deef3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4def04
jne 0x4def23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4def23
dec eax
add ebx, ebx
jne 0x4def10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4deee8
add ebx, ebx
jne 0x4def1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4def75
xor ecx, ecx
sub eax, 3
jb 0x4def3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4defaa
sar eax, 1
mov ebp, eax
jmp 0x4def46
add ebx, ebx
jne 0x4def46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4def14
inc ecx
add ebx, ebx
jne 0x4def54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4def14
add ebx, ebx
jne 0x4def61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4def56
jne 0x4def72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4def56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4def94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4def86
jmp 0x4deed6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4def94
add edi, ecx
jmp 0x4deed6
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4defb2
cmp byte [edi], 0x13
jne 0x4defb2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4defb7
lea edi, [esi + 0xda000]
mov eax, dword [edi]
or eax, eax
je 0x4df02f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10c07c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10c1d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4defe4
mov ecx, edi
jns 0x4df013
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10c1d4]
or eax, eax
je 0x4df029
mov dword [ebx], eax
add ebx, 4
jmp 0x4df001
call dword [esi + 0x10c1e4]
mov ebp, dword [esi + 0x10c1d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4df063
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748

Function at 0x433001
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40adb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
je 0x40ae56
jne 0x40ae56
lea edx, [esi - 3]
mov eax, dword [0x10120214]
push 0x9f8c74
mov al, byte [edx + ecx + 0x4ed8]
cmp edx, 0x384
lodsb al, byte [esi]
rol dword [ebx - 0x79f0f01f], cl
inc ebp
add byte [eax], al
add cl, ch
add eax, dword [eax]
add byte [eax], al
lea ecx, [ecx]
cmp esi, eax
jae 0x40aecf
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
push 0x40ae23
ret
push ebx
mov ebx, dword [ebp + 8]
push edi
je 0x40aef1
jne 0x40aef1
lea ecx, [edx + edi + 0x2d40]
and ebx, dword [edx]
mov al, byte [0xe49678]
add eax, 0x344a48c
invalid
pop esi
pop edi
xor eax, eax
push 0x40ae8a
ret
mov edi, dword [ebp + 0xc]
push edi
push ebx
jmp 0x40af5a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40aecf
push edi
push 0x40af8e
ret
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40af6c
pop edi
pop ebx
pop ebp
ret
push esi
jmp 0x40af11

Function at 0x41cef0
Capabilities:
Check if file exists
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cbf8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4901c4]
xor eax, ebp
je 0x41d02d
jne 0x41d02d
mov esi, dword [ebp + 0x2ac]
call dword [0x44b8b4]
mov dword [0x407398], eax
inc edi
lds ebx, [edx]
sbb eax, 0x840fc33b
mov dword [ebx], eax
add byte [eax], al
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x28]
je 0x41d2c0
mov edi, dword [ebp + 8]
push 0x401930
lea eax, [ebp - 0x18]
push edi
push eax
mov dword [ebp - 0x18], ebx
call fcn.00432627
add esp, 0xc
je 0x41d000
jne 0x41d000
mov word [ebp - 0x10], ax
mov dword [esi], 0xad29e8
mov dword [ebp - 0x3c], 0x42bd28
sub byte [eax], bl
pushfd
pop es
adc cl, byte [ebp - 0x44161bb3]
add al, byte [eax]
add ah, bl
or eax, 0x4aaddc
js 0x41cfc0
call fcn.0041c2c0
cmp eax, ebx
je 0x41d2b0
mov eax, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0x41cfde
ret
push edi
and eax, 0xfff5d9e8
call dword [esi - 0x73]
dec ebp
or byte [eax - 0x73], ch
iretd
test eax, eax
jne 0x41d2c0
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x41d2c0
jmp 0x41d0d3
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
jmp fcn.0041d1c6
mov eax, dword [ebp - 0x2c]
je 0x41d27f
jne 0x41d27f
lea eax, [ebp + 0x13]
push 0xa72238
push 0x6978abd0
cmp dword [edi], 0x76
mov esi, 0x84d8d57
xor ecx, ecx
cmp esi, eax
sete cl
push edx
mov esi, ecx
call fcn.00431f45
add esp, 0x14
cmp esi, ebx
je 0x41d2c0
mov eax, dword [0x490144]
mov edx, dword [eax + 0xc]
mov ecx, 0x490144
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
je 0x41d124
jne 0x41d124
mov dword [ebp + eax*4 - 0x4c], edi
mov dword [esi + 0x10], 0x697de8ec
mov esi, dword [ebp - 0x28]
push ecx
sub esi, eax
push esi
push 1
push eax
call fcn.004324ef
mov edx, dword [ebp - 0x18]
jmp 0x41d16d
lea ecx, [ebp + 8]
call fcn.0041ae90
Function at 0x4308e1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4901c4]
jne 0x4308eb
repz ret
jmp fcn.004340bf

Function at 0x432e26
Capabilities:
Write file on windows

Disassembly:
pushal
popal
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x4901c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call 0x432e00
mov edi, eax
xor ebx, ebx
pop ecx
mov dword [ebp - 0x1fc], edi
cmp edi, ebx
je 0x432fc6
push 3
call fcn.00439a02
pop ecx
cmp eax, 1
je 0x432f72
push 3
call fcn.00439a02
pop ecx
test eax, eax
jne 0x432e84
cmp dword [0x4901c0], 1
je 0x432f72
cmp esi, 0xfc
je 0x432fc6
push 0x40253c
push 0x314
mov edi, 0x491208
push edi
call fcn.00437d78
add esp, 0xc
or eax, eax
jne 0x432f68
push 0x104
mov esi, 0x49123a
push esi
push ebx
mov word [0x491442], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x2fb
or eax, eax
jne 0x432ef0
push 0x40250c
push ebx
push esi
call fcn.00437d78
add esp, 0xc
test eax, eax
je 0x432ef0
sub eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004343b7
push esi
call fcn.004399e7
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x432f27
push esi
call fcn.004399e7
lea eax, [eax*2 + 0x4911c4]
mov ecx, eax
sub ecx, esi
push 3
sar ecx, 1
push 0x402504
sub ebx, ecx
push ebx
push eax
call fcn.0043991a
add esp, 0x14
test eax, eax
jne 0x432ee4
push 0x4024fc
mov esi, 0x314
push esi
push edi
call fcn.004398a5
add esp, 0xc
or eax, eax
jne 0x432ee4
push dword [ebp - 0x1fc]
push esi
push edi
call fcn.004398a5
add esp, 0xc
or eax, eax
jne 0x432ee4
push 0x12010
push 0x4024b0
push edi
call fcn.00439739
add esp, 0xc
jmp 0x432fc6
push ebx
push ebx
push ebx
push ebx
push ebx
jmp 0x432eeb
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
cmp esi, ebx
je 0x432fc6
cmp esi, 0xffffffff
je 0x432fc6
xor eax, eax
mov cl, byte [edi + eax*2]
mov byte [ebp + eax - 0x1f8], cl
cmp word [edi + eax*2], bx
je 0x432f9f
inc eax
cmp eax, 0x1f4
jb 0x432f87
push ebx
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.00436f60
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004308e1
leave
ret

Function at 0x43347e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
sub ecx, ecx
cmp esi, ecx
jne 0x433493
sub eax, eax
pop esi
ret
cmp word [esi], cx
je 0x4334a8
add eax, 2
cmp word [eax], cx
jne 0x433498
add eax, 2
cmp word [eax], cx
jne 0x433498
push ebx
sub eax, esi
lea ebx, [eax + 2]
push edi
push ebx
call fcn.00436feb
mov edi, eax
pop ecx
test edi, edi
jne 0x4334c9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
push ebx
push esi
push edi
call fcn.00430580
add esp, 0xc
jmp 0x4334bc
Function at 0x433e60
Capabilities:
Parse pe header

Disassembly:
pushal
popal
push ebp
push esp
pop ebp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x433e76
sub eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x433e72
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
pop ebp
ret

Function at 0x433ea0
Capabilities:
Enumerate pe sections

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
je 0x433edd
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x433ed5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x433edf
inc edx
add eax, 0x28
cmp edx, esi
jb 0x433ec5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret