joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1f37430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1989000]
push edi
or ebp, 0xffffffff
jmp 0x1f37452
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1f37459
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f37448
mov eax, 1
add ebx, ebx
jne 0x1f3746b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1f3747c
jne 0x1f3749b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f3749b
dec eax
add ebx, ebx
jne 0x1f37488
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1f37460
add ebx, ebx
jne 0x1f37497
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1f374ed
xor ecx, ecx
sub eax, 3
jb 0x1f374b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1f37522
sar eax, 1
mov ebp, eax
jmp 0x1f374be
add ebx, ebx
jne 0x1f374be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f3748c
inc ecx
add ebx, ebx
jne 0x1f374cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f3748c
add ebx, ebx
jne 0x1f374d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1f374ce
jne 0x1f374ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1f374ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1f3750c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1f374fe
jmp 0x1f3744e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1f3750c
add edi, ecx
jmp 0x1f3744e
pop esi
mov edi, esi
mov ecx, 0x1ae22
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1f3752a
cmp byte [edi], 0xd6
jne 0x1f3752a
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 0x1f3752f
lea edi, [esi + 0x1afa000]
mov eax, dword [edi]
or eax, eax
je 0x1f3759e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2fc1838]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2fc197c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1f3755c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2fc1984]
or eax, eax
je 0x1f37598
mov dword [ebx], eax
add ebx, 4
jmp 0x1f37579
call dword [esi + 0x2fc1980]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1f375cf
cmp al, 0xef
ja 0x1f375c2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1f375a4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1f375b1
mov ebp, dword [esi + 0x2fc1988]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x1f37603
sub esp, 0xffffff80
jmp 0x93215c
Function at 0x4016b1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
add edx, 2
push esi
shl eax, 4
add ecx, 8
push 4
add edx, eax
pop esi
mov al, byte [edx - 2]
xor byte [ecx - 8], al
mov al, byte [edx - 1]
xor byte [ecx - 4], al
mov al, byte [edx]
lea edx, [edx + 4]
xor byte [ecx], al
mov al, byte [edx - 3]
xor byte [ecx + 4], al
inc ecx
sub esi, 1
jne 0x4016c7
pop esi
pop ebp
ret
Function at 0x401767
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x485004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [0x4873e8]
push esi
inc bl
mov esi, edx
push edi
mov edi, ecx
shl bl, 2
mov ecx, dword [0x4873ec]
xor edx, edx
mov dword [ebp - 0x10], esi
test ecx, ecx
jle 0x4017ce
mov ecx, edx
mov esi, dword [ebp - 0x10]
inc dl
mov al, byte [edi + ecx*4]
mov byte [esi + ecx*4], al
mov al, byte [edi + ecx*4 + 1]
mov byte [esi + ecx*4 + 1], al
mov al, byte [edi + ecx*4 + 2]
mov byte [esi + ecx*4 + 2], al
mov al, byte [edi + ecx*4 + 3]
mov byte [esi + ecx*4 + 3], al
movzx ecx, dl
cmp ecx, dword [0x4873ec]
jl 0x40179a
mov ecx, dword [0x4873ec]
cmp cl, bl
jae 0x4018f3
movzx edx, cl
mov dword [ebp - 0x14], edx
lea edi, [edx*4 - 3]
add edi, esi
sub bl, cl
movzx eax, bl
mov dword [ebp - 0x18], eax
mov bh, byte [edi]
mov al, byte [edi + 1]
mov byte [ebp - 9], al
mov byte [ebp - 6], al
mov al, byte [edi + 2]
mov byte [ebp - 0xa], al
mov byte [ebp - 5], al
mov eax, edx
cdq
idiv ecx
mov bl, byte [edi - 1]
mov byte [ebp - 8], bl
mov byte [ebp - 7], bh
test edx, edx
jne 0x401902
lea ecx, [ebp - 8]
call fcn.00401755
push 4
pop edx
movzx eax, byte [ecx]
mov al, byte [eax + 0x4702c0]
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x401822
mov eax, dword [ebp - 0x14]
cdq
idiv dword [0x4873ec]
mov cl, al
cmp cl, 1
jne 0x40184b
mov byte [0x485af0], al
jmp 0x401878
jbe 0x401873
dec cl
mov al, 2
mov byte [0x485af0], al
cmp cl, 1
jbe 0x401878
dec cl
movzx ecx, cl
movzx eax, al
shl eax, 8
mov al, byte [eax + 0x4703c2]
sub ecx, 1
jne 0x401860
jmp 0x401844
mov al, byte [0x485af0]
mov bl, byte [ebp - 8]
mov bh, byte [ebp - 7]
xor bl, al
mov al, byte [ebp - 6]
xor al, byte [0x485af2]
xor bh, byte [0x485af1]
mov ecx, dword [0x4873ec]
mov esi, dword [ebp - 0x10]
mov byte [ebp - 9], al
mov al, byte [ebp - 5]
xor al, byte [0x485af3]
mov byte [ebp - 0xa], al
mov ah, byte [ebp - 9]
mov edx, dword [ebp - 0x14]
sub edx, ecx
mov ecx, dword [0x4873ec]
mov al, byte [esi + edx*4]
xor al, bl
mov byte [edi + 3], al
mov al, byte [esi + edx*4 + 1]
xor al, bh
mov byte [ebp - 9], al
mov bh, byte [ebp - 9]
mov byte [edi + 4], al
mov al, byte [esi + edx*4 + 2]
xor al, ah
mov byte [edi + 5], al
mov al, byte [esi + edx*4 + 3]
xor al, byte [ebp - 0xa]
mov edx, dword [ebp - 0x14]
mov byte [edi + 6], al
inc edx
add edi, 4
mov dword [ebp - 0x14], edx
sub dword [ebp - 0x18], 1
jne 0x4017ef
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414740
leave
ret
cmp ecx, 6
jle 0x4018a7
cmp edx, 4
jne 0x4018a7
push 4
lea edx, [ebp - 8]
pop esi
movzx eax, byte [edx]
mov al, byte [eax + 0x4702c0]
mov byte [edx], al
inc edx
sub esi, 1
jne 0x401912
mov al, byte [ebp - 5]
mov ah, byte [ebp - 6]
mov bh, byte [ebp - 7]
mov bl, byte [ebp - 8]
mov esi, dword [ebp - 0x10]
mov byte [ebp - 0xa], al
jmp 0x4018aa
Function at 0x410c43
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x485004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
push esi
mov esi, ecx
push edi
cmp dword [ebx + 0x18], 0x10
lea edi, [ebx + 4]
mov dword [ebp - 0x320], esi
mov eax, edi
mov dword [ebp - 0x320], esi
jb 0x410c76
mov eax, dword [edi]
lea ecx, [ebp - 0x318]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x410cca
mov edx, str.Failed_to_open_registry_key:
mov ecx, 0x486438
call fcn.00413a72
cmp dword [ebx + 0x18], 0x10
jb 0x410cab
mov edi, dword [edi]
push dword [ebx + 0x14]
mov edx, edi
mov ecx, eax
call fcn.004145de
pop ecx
push eax
call fcn.00413c0a
mov dword [esp], 0x480588
jmp 0x410e63
xor edi, edi
lea eax, [ebp - 0x30c]
push edi
push edi
push edi
push edi
push eax
lea eax, [ebp - 0x108]
mov ebx, edi
push eax
push edi
jmp 0x410e34
lea eax, [ebp - 0x31c]
inc ebx
push eax
push 0x20019
push edi
lea eax, [ebp - 0x108]
mov dword [ebp - 0x320], ebx
push eax
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410e21
mov eax, 0x100
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x208]
push eax
push edi
push edi
push str.DisplayName
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x410e15
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x308]
push eax
push edi
push edi
push str.InstallLocation
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x410e15
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x344]
call fcn.0040209f
cmp dword [eax + 0x18], 0x10
lea ebx, [eax + 4]
jb 0x410d95
mov ebx, dword [ebx]
mov eax, dword [eax + 0x14]
cmp eax, 0xb
jb 0x410de3
add eax, 0xfffffff6
add eax, ebx
mov dword [ebp - 0x324], eax
sub eax, ebx
push eax
push 0x56
push ebx
jmp 0x410dd5
push 0xb
push str.VideoClient
push edi
call fcn.004197d0
add esp, 0xc
test eax, eax
je 0x410e7b
mov eax, dword [ebp - 0x324]
inc edi
sub eax, edi
push eax
push 0x56
push edi
call fcn.00419570
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x410db0
or edi, 0xffffffff
lea ecx, [ebp - 0x344]
call fcn.00402185
mov eax, dword [ebp - 0x344]
and dword [ebp - 0x344], 0
push 8
push eax
call fcn.004029bf
pop ecx
pop ecx
cmp edi, 0xffffffff
jne 0x410e82
mov ebx, dword [ebp - 0x320]
xor edi, edi
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push dword [ebp - 0x318]
mov dword [ebp - 0x30c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x410ce6
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x480588
mov ecx, esi
call fcn.0040209f
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414740
leave
ret
sub edi, ebx
jmp 0x410de6
lea eax, [ebp - 0x308]
push eax
jmp 0x410e63
Function at 0x411752
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
test esi, esi
jg 0x41177c
jl 0x411773
test ebx, ebx
jne 0x41177c
xor eax, eax
xor edx, edx
jmp 0x411834
cmp dword [ecx + 0x38], 0
je 0x41178f
push esi
push ebx
push edx
call fcn.00411d01
jmp 0x411834
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4117cf
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x4117cf
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.00418fa0
mov ecx, dword [ebp - 8]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x41182a
call fcn.00412a0b
mov ecx, dword [ebp - 4]
mov edx, edi
cmp edi, 0xfff
jbe 0x411812
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push 0xfff
push 1
push ecx
call fcn.0042cbf0
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x41182a
jmp 0x4117df
test edx, edx
je 0x41182a
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push edi
push 1
push ecx
call fcn.0042cbf0
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41c470
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0041c090
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41c4a2
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x45c180]
call dword [ebp - 8]
jmp 0x41c4ac
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x43b1a0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0043a9b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43b1d4
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x45c180]
call dword [ebp - 8]
jmp 0x43b1da
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x43b230
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0043a9f0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43b264
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x45c180]
call dword [ebp - 8]
jmp 0x43b26e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4

Function at 0x43b280
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0043aa10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43b2b8
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call dword [0x45c180]
call dword [ebp - 8]
jmp 0x43b2c6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8

Function at 0x43b2d0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0043aa90
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43b310
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x45c180]
call dword [ebp - 8]
jmp 0x43b32e
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0043b520
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43d020
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.0045a180
mov eax, dword [0x485004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x4870c0]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x43d1f8
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x43d147
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x43d147
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x43d125
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x43d0a9
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43d1b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x43d218
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x43d1f3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x43d218
jmp 0x43d082
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414740
mov esp, ebp
pop ebp
ret
Function at 0x43d230
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.0045a180
mov eax, dword [0x485004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x4870c0]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x43d41b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x43d366
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x43d366
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x43d342
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x43d2b9
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43d3d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x43d43b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x43d416
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x43d43b
jmp 0x43d292
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414740
mov esp, ebp
pop ebp
ret
Function at 0x447ac0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.0041dda0
lea ecx, [ebp - 4]
call fcn.00447a90
movzx eax, al
test eax, eax
jne 0x447afd
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.004479d0
mov eax, dword [ebp - 0x18]
jmp 0x447c25
lea ecx, [ebp - 4]
call fcn.0041d7a0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00447a50
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.0041d7a0
push eax
push 0
push 0
call fcn.00447910
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x447b63
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.004479d0
mov eax, dword [ebp - 0x20]
jmp 0x447c25
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004213b0
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.00417890
lea ecx, [ebp - 8]
call fcn.00417d70
movzx edx, al
test edx, edx
jne 0x447bac
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.00417d50
lea ecx, [ebp - 4]
call fcn.004479d0
mov eax, dword [ebp - 0x24]
jmp 0x447c25
lea ecx, [ebp - 8]
call fcn.00417900
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.0041d7a0
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.00447910
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x447c07
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.00417d50
lea ecx, [ebp - 4]
call fcn.004479d0
mov eax, dword [ebp - 0x34]
jmp 0x447c25
lea ecx, [ebp - 8]
call fcn.0042ac00
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.00417d50
lea ecx, [ebp - 4]
call fcn.004479d0
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x4541b0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
lea ecx, [ebp - 0x4c]
call fcn.00436fd0
lea ecx, [ebp - 0x34]
call fcn.00436fd0
call fcn.00439350
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00436f20
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x454203
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x34]
call fcn.00437070
lea ecx, [ebp - 0x4c]
call fcn.00437070
mov eax, dword [ebp - 8]
jmp 0x454278
call fcn.00439350
push eax
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00436f20
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45423e
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.00437070
lea ecx, [ebp - 0x4c]
call fcn.00437070
mov eax, dword [ebp - 0x10]
jmp 0x454278
lea ecx, [ebp - 0x34]
call fcn.00437320
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
call fcn.00437320
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x34]
call fcn.00437070
lea ecx, [ebp - 0x4c]
call fcn.00437070
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
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
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219