joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1adb11ce
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..text_1
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x74fa3147
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427230
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x427258
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x427267
mov eax, 1
ret 4

Function at 0x427ee0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x433158]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x4284f0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, 0x3f
mov byte [eax + esi + 0x40], 0x80
inc eax
push edi
mov edi, edx
cmp eax, 0x38
jbe 0x428533
cmp eax, 0x40
je 0x428525
mov edx, 0x40
sub edx, eax
push edx
lea ecx, [eax + esi + 0x40]
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor eax, eax
mov ecx, 0x38
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x40]
push 0
push edx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
add esp, 0xc
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
lea ecx, [esi + 0x20]
mov edx, 4
mov eax, dword [ecx + 4]
mov ebp, dword [ecx]
bswap ebp
bswap eax
mov dword [edi], ebp
mov dword [edi + 4], eax
add edi, 8
add ecx, 8
dec edx
jne 0x428578
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret

Function at 0x438c99
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x438a14
add eax, 0x8b44195d
call fcn.00438ce1
sub edx, 0xadfc746
xor dword [ebx], edi
or edx, eax
add eax, 0xd12feb94
add ebx, 1
sub esp, 4
mov dword [esp], eax
mov eax, dword [esp]
add esp, 4
cmp ebx, esi
jne fcn.00438c99
add eax, edx
add edx, edx
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40127d
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x433cd8]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x78], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1a8]
xor ecx, ecx
mov eax, ecx
cdq
idiv dword [ebp + 0x1a4]
mov eax, dword [ebp + 0x1a0]
mov byte [ebp + ecx + 0x8c], cl
inc ecx
cmp ecx, 0x100
mov al, byte [edx + eax]
mov byte [ebp + ecx - 0x75], al
jl 0x4012a7
xor eax, eax
movzx esi, byte [ebp + eax - 0x74]
add esi, dword [ebp - 0x78]
lea ecx, [ebp + eax + 0x8c]
mov dl, byte [ecx]
movzx ebx, dl
add esi, ebx
and esi, 0x800000ff
jns 0x4012f5
dec esi
or esi, 0xffffff00
inc esi
mov dword [ebp - 0x78], esi
lea esi, [ebp + esi + 0x8c]
mov bl, byte [esi]
inc eax
cmp eax, 0x100
mov byte [esi], dl
mov byte [ecx], bl
jl 0x4012cf
mov edx, dword [ebp + 0x19c]
and dword [ebp - 0x78], 0
test edx, edx
jle 0x401394
mov ecx, dword [ebp + 0x198]
sub ecx, edi
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], edx
inc eax
and eax, 0x800000ff
jns 0x401338
dec eax
or eax, 0xffffff00
inc eax
lea ecx, [ebp + eax + 0x8c]
movzx edx, byte [ecx]
add edx, dword [ebp - 0x78]
and edx, 0x800000ff
jns 0x401355
dec edx
or edx, 0xffffff00
inc edx
mov bl, byte [ecx]
lea esi, [ebp + edx + 0x8c]
mov dword [ebp - 0x78], edx
mov dl, byte [esi]
mov byte [esi], bl
mov byte [ecx], dl
movzx ecx, dl
movzx edx, byte [esi]
add ecx, edx
and ecx, 0x800000ff
jns 0x40137f
dec ecx
or ecx, 0xffffff00
inc ecx
mov cl, byte [ebp + ecx + 0x8c]
mov edx, dword [ebp - 0x80]
xor cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec dword [ebp - 0x7c]
jne 0x401329
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410ba4
add ebp, 0x190
leave
ret
Function at 0x4025b6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ebx
mov ebx, dword [ecx + eax + 0x78]
push esi
push edi
mov edi, str.g3xgvdpSl0mMwoeD7ZOC61I2oKqGKlZByzMI8TuH7KmHG94vRs
push edi
mov esi, 0x437cc0
push esi
add ebx, eax
call fcn.004023b6
push eax
call fcn.0040259d
push edi
push esi
call fcn.004023b6
push eax
call fcn.0040259d
push edi
push esi
call fcn.004023b6
push eax
call fcn.0040259d
push edi
push esi
call fcn.004023b6
push eax
call fcn.0040259d
push edi
push esi
call fcn.004023b6
push eax
call fcn.0040259d
push edi
push esi
call fcn.004023b6
add esp, 0x44
push eax
call fcn.0040259d
push edi
push esi
call fcn.004023b6
push eax
call fcn.0040259d
push edi
push esi
call fcn.004023b6
push eax
call fcn.0040259d
push edi
push esi
call fcn.004023b6
push eax
call fcn.0040259d
push edi
push esi
call fcn.004023b6
push eax
call fcn.0040259d
push edi
push esi
call fcn.004023b6
push eax
call fcn.0040259d
add esp, 0x40
push edi
push esi
call fcn.004023b6
push eax
call fcn.0040259d
push edi
push esi
call fcn.004023b6
push eax
call fcn.0040259d
push edi
push esi
call fcn.004023b6
push eax
call fcn.0040259d
push edi
push esi
call fcn.004023b6
push eax
call fcn.0040259d
mov eax, dword [ebx + 0x24]
mov esi, dword [ebx + 0x20]
mov edi, dword [ebx + 0x1c]
add eax, dword [ebp + 8]
mov ebx, dword [ebx + 0x18]
add esi, dword [ebp + 8]
add edi, dword [ebp + 8]
and dword [ebp - 4], 0
add esp, 0x30
mov dword [ebp - 8], eax
test ebx, ebx
jbe 0x4026e4
mov eax, dword [ebp - 4]
mov eax, dword [esi + eax*4]
add eax, dword [ebp + 8]
push dword [0x43308c]
push eax
call fcn.00401200
pop ecx
pop ecx
cmp eax, dword [ebp + 0xc]
je 0x4026eb
inc dword [ebp - 4]
cmp dword [ebp - 4], ebx
jb 0x4026c0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [edi + eax*4]
add eax, dword [ebp + 8]
jmp 0x4026e6

Function at 0x405bfb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x405c1f
cmp dword [edi + 0x54], 0
jne 0x405c1f
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040beba
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00405bbc
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40afad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40aff4
call fcn.0040beba
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40aff4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40b010
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040ab27
mov esi, eax
test edi, edi
je 0x40b00e
test ebx, ebx
je 0x40b00e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x410ba4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433cd8]
jne 0x410bae
repz ret
jmp fcn.00415a8c

Function at 0x41ec40
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00415476
and dword [ebp - 4], 0
cmp dword [0x437c30], 0
mov ebx, eax
jne 0x41ecf1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41eda2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42d94c
push edi
call esi
test eax, eax
je 0x41eda2
push eax
call fcn.00415404
mov dword [esp], 0x42d93c
push edi
mov dword [0x437c30], eax
call esi
push eax
call fcn.00415404
mov dword [esp], 0x42d928
push edi
mov dword [0x437c34], eax
call esi
push eax
call fcn.00415404
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x437c38], eax
call esi
push eax
call fcn.00415404
pop ecx
mov dword [0x437c40], eax
test eax, eax
je 0x41ecf1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00415404
pop ecx
mov dword [0x437c3c], eax
mov eax, dword [0x437c3c]
cmp eax, ebx
je 0x41ed49
cmp dword [0x437c40], ebx
je 0x41ed49
push eax
call fcn.0041547f
push dword [0x437c40]
mov esi, eax
call fcn.0041547f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41ed49
test edi, edi
je 0x41ed49
call esi
test eax, eax
je 0x41ed40
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ed40
test byte [ebp - 0xc], 1
jne 0x41ed49
or dword [ebp + 0x10], 0x200000
jmp 0x41ed82
mov eax, dword [0x437c34]
cmp eax, ebx
je 0x41ed82
push eax
call fcn.0041547f
pop ecx
test eax, eax
je 0x41ed82
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41ed82
mov eax, dword [0x437c38]
cmp eax, ebx
je 0x41ed82
push eax
call fcn.0041547f
pop ecx
test eax, eax
je 0x41ed82
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x437c30]
call fcn.0041547f
pop ecx
test eax, eax
je 0x41eda2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41eda4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x548518d0
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x55995d6b
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10013322
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10013322
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10013322
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10013322
cmp dword [ecx + 0x74], 0xe
jbe 0x10013322
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10015f9f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001603c
push ebx
push esi
call fcn.10015f68
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10015efc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015fe9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001603b
push edi
push eax
call fcn.10016f5a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10016009
call fcn.10014a44
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001603a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10015efc
add esp, 0x20
test eax, eax
jne 0x10016028
push edi
call fcn.10014a44
jmp 0x10016030
push ebx
call fcn.10014a44
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100162a9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d678
push 0x1001d670
push str.FlsAlloc
push 0x1f
call fcn.100161c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100162dd
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c158]
call esi
jmp 0x100162e3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10016327
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d688
push 0x1001d680
push str.FlsGetValue
push 0x21
call fcn.100161c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001635e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10016366
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d690
push 0x1001d688
push str.FlsSetValue
push 0x22
call fcn.100161c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100163a0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001c158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001ba20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001ba4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ba4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x435000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x435175
cmp dword [esp + 0x54], 0x40
jne 0x435175
cmp word [esp + 0x10], 0x5a4d
jne 0x435175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x435175
lea eax, [esp + 0x54]
push 0
push eax
push pe_nt_image_headers32
push 0x43b960
push esi
call ebx
test eax, eax
je 0x435175
cmp dword [esp + 0x54], 0xf8
jne 0x435175
cmp dword [0x43b960], 0x4550
jne 0x435175
mov eax, dword [0x43b976]
test ah, 0x20
jne 0x435175
mov edx, dword [0x43ba80]
xor eax, eax
mov ax, word [0x43b966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x43ba58], eax
je 0x435175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x43ba6c], eax
xor eax, eax
mov ax, word [0x43b966]
mov edx, dword [0x43ba58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x435175
cmp dword [esp + 0x54], edi
jne 0x435175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x43ba80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x43b9b4]
cmp edx, eax
ja 0x435175
mov edi, dword [0x43ba58]
mov ecx, dword [0x43b988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x435175
xor eax, eax
push 2
mov ax, word [0x43b966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x435175
cmp dword [edi - 0x20], ebx
ja 0x435175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret