joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443bf0
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x30
movzx eax, word [ecx + 4]
mov esi, dword [esp + 0x40]
mov byte [esp + 0x1a], 0x50
mov byte [esp + 0x1b], 0x4b
mov byte [esp + 0x1e], al
movsx eax, ah
mov byte [esp + 0x1f], al
movzx eax, word [ecx + 6]
mov byte [esp + 0x1c], 5
mov byte [esp + 0x1d], 6
mov byte [esp + 0x20], al
movsx eax, ah
mov byte [esp + 0x21], al
movzx eax, word [ecx + 8]
mov byte [esp + 0x22], al
movsx eax, ah
mov byte [esp + 0x23], al
movzx eax, word [ecx + 0xa]
mov byte [esp + 0x24], al
movsx eax, ah
mov byte [esp + 0x25], al
mov eax, dword [ecx + 0xc]
mov edx, eax
sar edx, 8
mov byte [esp + 0x26], al
mov byte [esp + 0x27], dl
mov edx, eax
sar eax, 0x18
mov byte [esp + 0x29], al
mov eax, dword [ecx + 0x10]
sar edx, 0x10
mov byte [esp + 0x28], dl
mov edx, eax
sar edx, 8
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], dl
mov edx, eax
sar eax, 0x18
mov byte [esp + 0x2d], al
movzx eax, word [ecx + 0x14]
sar edx, 0x10
mov byte [esp + 0x2c], dl
mov byte [esp + 0x2e], al
movsx eax, ah
mov byte [esp + 0x2f], al
lea eax, [esp + 0x1a]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x16
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, 0x16
jne 0x443cf9
movzx edx, word [ebx + 0x14]
xor edi, edi
test dx, dx
jne 0x443cd6
add esp, 0x30
mov eax, edi
pop ebx
pop esi
pop edi
ret 4
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
movzx edx, word [ebx + 0x14]
cmp eax, edx
je 0x443ccb
add esp, 0x30
mov edi, 0x80000000
mov eax, edi
pop ebx
pop esi
pop edi
ret 4
Function at 0x446670
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
mov ebx, dword [ebp + 0x14]
mov dword [esp], eax
call fcn.0047db20
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
sub esp, 4
mov dword [esp], eax
call fcn.0047ded0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
sub esp, 4
mov dword [esp], eax
call fcn.0047ded0
mov edx, 0x5850ec
mov eax, 0x5850f0
lea ecx, [ebp - 0x20]
sub esp, 4
test bl, bl
cmove eax, edx
mov dword [esp], eax
call fcn.0047ded0
mov eax, dword [ebp - 0x20]
mov edx, 0x1505
lea ecx, [eax + 2]
movzx eax, word [eax]
sub esp, 4
test ax, ax
je 0x4466f5
nop
mov ebx, edx
add ecx, 2
shl ebx, 5
add eax, ebx
add edx, eax
movzx eax, word [ecx - 2]
test ax, ax
jne 0x4466e0
mov eax, dword [0x5850dc]
mov dword [ebp - 0x1c], edx
test eax, eax
je 0x4467a0
mov ebx, 0x5850d8
jmp 0x446719
mov ebx, eax
mov eax, dword [eax + 8]
test eax, eax
je 0x446725
cmp dword [eax + 0x10], edx
jae 0x446710
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x446719
cmp ebx, 0x5850d8
je 0x4467a0
cmp edx, dword [ebx + 0x10]
jb 0x4467a0
lea ecx, [ebx + 0x14]
call fcn.0047dc40
lea ecx, [ebp - 0x20]
mov esi, dword [ebx + 0x14]
mov edi, eax
call fcn.0047dc40
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.0047fe30
test eax, eax
jne 0x446780
add dword [0x5850fc], 1
mov ebx, dword [ebx + 0x18]
lea ecx, [ebp - 0x20]
call fcn.0047dc10
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, 0x5850d4
mov dword [esp], eax
xor ebx, ebx
add dword [0x5850f4], 1
call fcn.00532c00
sub esp, 4
jmp 0x44676c
add dword [0x5850f8], 1
xor ebx, ebx
jmp 0x44676c
Function at 0x4467d0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 0x14]
cmp dword [0x5850e8], 0x7ff
jbe 0x4467f3
mov eax, dword [ebp + 0x18]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
lea esi, [ebp - 0x24]
mov ecx, esi
mov dword [esp], eax
call fcn.0047db20
mov eax, dword [ebp + 0xc]
mov ecx, esi
sub esp, 4
mov dword [esp], eax
call fcn.0047ded0
mov eax, dword [ebp + 8]
mov ecx, esi
sub esp, 4
mov dword [esp], eax
call fcn.0047ded0
mov edx, 0x5850ec
mov eax, 0x5850f0
mov ecx, esi
sub esp, 4
test bl, bl
cmove eax, edx
mov dword [esp], eax
call fcn.0047ded0
mov eax, dword [ebp - 0x24]
mov edx, 0x1505
lea ecx, [eax + 2]
movzx eax, word [eax]
sub esp, 4
test ax, ax
je 0x44686a
mov ebx, edx
add ecx, 2
shl ebx, 5
add eax, ebx
add edx, eax
movzx eax, word [ecx - 2]
test ax, ax
jne 0x446855
lea edi, [ebp - 0x20]
mov ebx, 0x5850d8
mov dword [esp], esi
mov ecx, edi
mov dword [ebp - 0x2c], edx
call fcn.0047db20
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5850dc]
sub esp, 4
test eax, eax
jne 0x44689f
jmp 0x4468bc
mov ebx, eax
mov eax, dword [eax + 8]
test eax, eax
je 0x4468ab
cmp edx, dword [eax + 0x10]
jbe 0x446896
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x44689f
cmp ebx, 0x5850d8
je 0x4468bc
cmp edx, dword [ebx + 0x10]
jae 0x446980
mov dword [esp], 0x1c
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ebx
call fcn.0053ea30
mov edx, dword [ebp - 0x2c]
test eax, eax
mov ebx, eax
je 0x446988
lea eax, [ebx + 0x14]
mov dword [ebx], 0
mov ecx, eax
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], edx
mov dword [ebp - 0x2c], eax
call fcn.0047dad0
lea eax, [ebx + 0x10]
mov ecx, 0x5850d4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00532b30
sub esp, 8
test edx, edx
je 0x446994
test eax, eax
mov ecx, 1
je 0x4469b4
mov dword [esp + 0xc], 0x5850d8
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], ecx
call fcn.005399e0
add dword [0x5850e8], 1
mov ecx, dword [ebp - 0x2c]
mov dword [esp], edi
call fcn.0047dc60
mov eax, dword [ebp - 0x1c]
mov ecx, edi
mov dword [ebx + 0x18], eax
sub esp, 4
call fcn.0047dc10
mov ecx, esi
call fcn.0047dc10
mov eax, dword [ebp + 0x18]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x14]
mov dword [ebp - 0x2c], eax
jmp 0x446950
mov dword [ebp - 0x2c], 0x14
jmp 0x446906
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call fcn.0047dc10
mov dword [esp], ebx
call fcn.0053e980
mov eax, dword [ebp - 0x30]
lea ecx, [eax + 0x14]
mov ebx, eax
mov dword [ebp - 0x2c], ecx
jmp 0x446950
cmp edx, 0x5850d8
je 0x446931
mov eax, dword [edx + 0x10]
xor ecx, ecx
cmp dword [ebx + 0x10], eax
setb cl
jmp 0x446931
Function at 0x45b780
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov dword [esp], ebx
call sub.msvcrt.dll_getc
cmp eax, 0x1f
je 0x45b7a2
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call sub.msvcrt.dll_getc
cmp eax, 0x8b
jne 0x45b798
mov dword [esp], ebx
call sub.msvcrt.dll_getc
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_getc
cmp esi, 8
mov edi, eax
jne 0x45b798
cmp eax, 0xffffffff
mov si, 6
je 0x45b798
mov dword [esp], ebx
call sub.msvcrt.dll_getc
sub esi, 1
jne 0x45b7d3
test edi, 4
jne 0x45b960
test edi, 8
jne 0x45b902
test edi, 0x10
jne 0x45b930
and edi, 2
jne 0x45b996
mov dword [esp], ebx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x45b798
mov dword [esp], ebx
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x45b798
mov dword [esp], ebx
call sub.msvcrt.dll_ftell
mov dword [esp + 8], 2
mov dword [esp + 4], 0xfffffff8
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
call sub.msvcrt.dll_ftell
mov edx, dword [esp + 0x4c]
sub eax, esi
mov dword [edx], eax
lea eax, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 8
jne 0x45b798
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_fseek
mov eax, dword [esp + 0x44]
movzx edx, byte [esp + 0x1a]
mov dword [eax], 8
movzx eax, byte [esp + 0x19]
shl edx, 0x10
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x18]
or eax, edx
movzx edx, byte [esp + 0x1b]
shl edx, 0x18
or eax, edx
mov edx, dword [esp + 0x50]
mov dword [edx], eax
movzx eax, byte [esp + 0x1d]
movzx edx, byte [esp + 0x1e]
shl eax, 8
shl edx, 0x10
or eax, edx
movzx edx, byte [esp + 0x1c]
or eax, edx
movzx edx, byte [esp + 0x1f]
shl edx, 0x18
or eax, edx
mov edx, dword [esp + 0x48]
mov dword [edx], eax
mov eax, 1
jmp 0x45b79a
mov dword [esp], ebx
call sub.msvcrt.dll_getc
add eax, 1
cmp eax, 1
jbe 0x45b7f8
mov dword [esp], ebx
call sub.msvcrt.dll_getc
add eax, 1
cmp eax, 1
ja 0x45b902
jmp 0x45b7f8
mov dword [esp], ebx
call sub.msvcrt.dll_getc
lea edx, [eax + 1]
cmp edx, 1
jbe 0x45b804
mov dword [esp], ebx
call sub.msvcrt.dll_getc
lea edx, [eax + 1]
cmp edx, 1
ja 0x45b930
jmp 0x45b804
mov dword [esp], ebx
call sub.msvcrt.dll_getc
mov dword [esp], ebx
mov ebp, eax
call sub.msvcrt.dll_getc
mov esi, eax
shl esi, 8
or esi, ebp
test esi, esi
je 0x45b7ec
mov dword [esp], ebx
sub esi, 1
call sub.msvcrt.dll_getc
cmp eax, 0xffffffff
jne 0x45b979
jmp 0x45b7ec
mov dword [esp], ebx
call sub.msvcrt.dll_getc
mov dword [esp], ebx
call sub.msvcrt.dll_getc
jmp 0x45b80d
Function at 0x45d050
Capabilities:
Read file on windows

Disassembly:
push ebp
xor eax, eax
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
mov edx, dword [ecx + 0x7c]
mov esi, dword [ecx + 0x78]
cmp edx, esi
jae 0x45d0a1
sub esi, edx
mov edx, dword [ecx + 0x74]
cmp esi, edx
cmova esi, edx
test esi, esi
je 0x45d0a1
mov eax, dword [ebx + 0x70]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov edi, eax
je 0x45d0b0
test eax, eax
js 0x45d0f3
mov eax, dword [ebx + 0x70]
add dword [ebx + 0x7c], edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x14], eax
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [sym.imp.msvcrt.dll__errno]
call ebp
cmp dword [eax], 4
je 0x45d073
call ebp
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 8], str.Error_reading_asset_data:__s
mov dword [esp + 4], str.szipinf
mov dword [esp], 6
mov dword [esp + 0xc], eax
call fcn.00482510
add esp, 0x1c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [sym.imp.msvcrt.dll__errno]
jmp 0x45d0bd

Function at 0x45f110
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
movzx edx, byte [ebx + 0x80]
add ebx, 0x84
movzx ecx, byte [ebx - 1]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
shl edx, 0x18
mov dword [esp + 0x18], eax
movzx eax, byte [ebx - 3]
shl eax, 0x10
add edx, eax
movzx eax, byte [ebx - 2]
add edx, ecx
shl eax, 8
add edx, eax
mov dword [esp + 0x10], edx
jne 0x45f180
jmp 0x45f217
add esi, 1
add ebx, 0xc
cmp esi, dword [esp + 0x10]
je 0x45f217
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
movzx edx, byte [ebx + 3]
movzx ebp, byte [ebx + 7]
shl ecx, 0x18
shl eax, 0x10
add ecx, eax
movzx eax, byte [ebx + 2]
add ecx, edx
movzx edx, byte [ebx + 4]
shl eax, 8
add ecx, eax
movzx eax, byte [ebx + 5]
shl edx, 0x18
shl eax, 0x10
add edx, eax
movzx eax, byte [ebx + 6]
add edx, ebp
movzx ebp, byte [ebx + 8]
shl eax, 8
add edx, eax
movzx eax, byte [ebx + 9]
shl ebp, 0x18
shl eax, 0x10
add eax, ebp
movzx ebp, byte [ebx + 0xb]
add ebp, eax
movzx eax, byte [ebx + 0xa]
shl eax, 8
add eax, ebp
cmp edx, edi
ja 0x45f224
mov ebp, edi
sub ebp, edx
cmp eax, ebp
ja 0x45f224
and edx, 3
je 0x45f170
mov dword [esp], ecx
mov eax, dword [esp + 0x14]
xor edx, edx
mov ecx, dword [esp + 0x18]
add esi, 1
add ebx, 0xc
mov dword [esp + 4], str.ICC_profile_tag_start_not_a_multiple_of_4
call fcn.0045d910
cmp esi, dword [esp + 0x10]
jne 0x45f180
add esp, 0x2c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x44], str.ICC_profile_tag_outside_profile
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0045d910
Function at 0x4618d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
test eax, eax
je 0x4618f7
mov edx, dword [eax + 0x40]
test edx, edx
je 0x4618f7
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4618f7
mov ecx, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call edx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x46e880
Capabilities:
Compress data via zlib inflate or deflate
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
cmp byte [eax + 0x154], 0
je 0x46e8ad
mov ecx, dword [eax + 0x84]
test ecx, ecx
je 0x46e8ad
mov ecx, dword [eax + 0x80]
cmp byte [ecx], 0
js 0x46e8c0
mov byte [eax + 0x154], 0
sub eax, 0xffffff80
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp fcn.004a8a00
mov dword [eax + 0x98], str.invalid_window_size__libpng_
mov eax, 0xfffffffd
ret

Function at 0x46ed80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x70]
mov eax, dword [ebx + 0x70]
test al, 1
jne 0x46ef36
cmp dword [esp + 0x78], 0xd
jne 0x46ef26
or eax, 1
lea esi, [esp + 0x43]
mov dword [ebx + 0x70], eax
mov dword [esp + 4], esi
mov dword [esp + 8], 0xd
mov dword [esp], ebx
call fcn.0046e5c0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.0046e6c0
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0046e410
mov dword [esp], ebx
mov esi, eax
lea eax, [esp + 0x47]
mov dword [esp + 4], eax
call fcn.0046e410
movzx edx, byte [esp + 0x4b]
movzx ebp, byte [esp + 0x4f]
mov dword [ebx + 0xfc], esi
mov byte [ebx + 0x14c], dl
mov edi, eax
movzx eax, dl
mov dword [esp + 0x30], eax
movzx eax, byte [esp + 0x4c]
mov dword [ebx + 0x100], edi
movzx ecx, al
cmp al, 4
mov dword [esp + 0x34], ecx
movzx ecx, byte [esp + 0x4d]
mov byte [ebx + 0x14b], al
mov dword [esp + 0x38], ecx
movzx ecx, byte [esp + 0x4e]
mov dword [esp + 0x3c], ecx
movzx ecx, byte [esp + 0x4f]
mov byte [ebx + 0x148], cl
movzx ecx, byte [esp + 0x4e]
mov byte [ebx + 0x250], cl
movzx ecx, byte [esp + 0x4d]
mov byte [ebx + 0x270], cl
je 0x46ef04
cmp al, 6
je 0x46eee0
cmp al, 2
je 0x46ef15
mov byte [ebx + 0x14f], 1
mov eax, 1
imul eax, edx
cmp al, 7
mov byte [ebx + 0x14e], al
ja 0x46eef9
movzx eax, al
imul eax, esi
add eax, 7
shr eax, 3
mov dword [ebx + 0x10c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esp], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
call fcn.00473720
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 4
imul eax, edx
mov byte [ebx + 0x14f], 4
cmp al, 7
mov byte [ebx + 0x14e], al
jbe 0x46ee84
shr al, 3
movzx eax, al
imul eax, esi
jmp 0x46ee90
mov byte [ebx + 0x14f], 2
mov eax, 2
jmp 0x46ee77
mov byte [ebx + 0x14f], 3
mov eax, 3
jmp 0x46ee77
mov dword [esp + 4], str.invalid
mov dword [esp], ebx
call fcn.004619e0
mov dword [esp + 4], str.out_of_place
mov dword [esp], ebx
call fcn.004619e0
lea esi, [esi]
lea edi, [edi]
Function at 0x47e680
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x3c
mov dword [esp], 8
call fcn.0053ea30
lea edx, [ebp - 0x1c]
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x47e750
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
test eax, eax
je 0x47e700
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
test ebx, ebx
je 0x47e726
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], str.WARNING:_thread_create_failed_n
mov dword [esp + 4], 0x56939f
mov dword [esp], 5
call fcn.00482510
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 1
jmp 0x47e6f1

Function at 0x4883e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
mov esi, edx
push ebx
sub esp, 0x44
mov ebx, dword [ecx + 0x1d8]
test ebx, ebx
jne 0x4883f8
jmp 0x488493
mov ebx, eax
mov eax, dword [ebx + 0x1d8]
test eax, eax
jne 0x4883f6
add ebx, 0x1ec
mov ecx, dword [ebx]
mov dword [esp + 8], 0x70736575
mov dword [esp + 0xc], 0x736f6d65
mov dword [esp + 0x14], 0x646f7261
mov edx, ecx
mov eax, ecx
xor eax, 0x79746573
xor edx, 0x6e646f6d
xor ecx, ecx
cmp byte [esi], 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], 0x6e657261
mov dword [esp + 0x1c], 0x6c796765
mov dword [esp + 0x24], 0x74656462
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
je 0x488479
add ecx, 1
cmp byte [esi + ecx], 0
jne 0x488470
mov edx, esi
lea eax, [esp + 8]
call fcn.00487c10
lea eax, [esp + 8]
call fcn.00487d10
add esp, 0x44
pop ebx
pop esi
ret
lea ebx, [ecx + 0x1ec]
jmp 0x488408
Function at 0x48f3f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x2c
mov dword [esp], str.EXPAT_ENTROPY_DEBUG
call sub.msvcrt.dll_getenv
test eax, eax
je 0x48f44b
mov edi, 0x56a57d
mov ecx, 2
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x48f44b
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 8
add eax, 0x40
mov dword [esp + 8], ebp
mov dword [esp + 4], str.Entropy:__s_____0x_0lx___lu_bytes__n
mov dword [esp], eax
call fcn.0048f3c0
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x48f460
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
mov eax, dword [eax + 0x1ec]
test eax, eax
je 0x48f497
cmp byte [ebx + 0xe8], 0
mov eax, 1
je 0x48f48f
mov edx, str.xmlhttp:__www.w3.org_XML_1998_namespace
mov eax, ebx
call fcn.0048a280
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.ADVAPI32.DLL
call fcn.0049dd10
test eax, eax
mov esi, eax
je 0x48f50c
mov dword [esp + 4], str.SystemFunction036
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x48f500
lea edx, [ebp - 0x24]
mov dword [esp], edx
mov dword [esp + 4], 4
call eax
sub esp, 8
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
sub esp, 4
cmp al, 1
jne 0x48f50c
mov edx, dword [ebp - 0x24]
mov eax, str.RtlGenRandom
call fcn.0048f3f0
mov dword [ebx + 0x1ec], eax
jmp 0x48f475
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
lea eax, [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 0x20]
xor esi, dword [ebp - 0x1c]
sub esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, esi
mov edx, eax
shl edx, 0x1f
mov dword [ebp - 0x24], eax
sub edx, eax
mov eax, str.fallback_4_
call fcn.0048f3f0
jmp 0x48f4f5
Function at 0x49dd10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5718e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x49ddf0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], str.LoadLibraryExA
mov dword [esp], eax
call edi
mov esi, eax
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [esp + 4], 0x5718f8
mov dword [esp], eax
call sub.msvcrt.dll_strpbrk
test eax, eax
je 0x49dd90
test esi, esi
je 0x49ddb2
mov dword [esp + 8], 8
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, esi
je 0x49ddd0
mov dword [esp + 4], str.AddDllDirectory
mov dword [esp], ebx
call edi
sub esp, 8
test eax, eax
je 0x49ddd0
mov dword [esp + 8], 0x800
jmp 0x49dd6e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
sub esp, 8
test eax, eax
mov edi, eax
jne 0x49ddf4
xor eax, eax
jmp 0x49dd81
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea eax, [edi + eax + 1]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov ecx, eax
je 0x49de27
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x1c], eax
call ebx
mov ecx, dword [ebp - 0x1c]
sub esp, 8
test eax, eax
jne 0x49de38
xor ebx, ebx
mov dword [esp], ecx
call sub.msvcrt.dll_free
mov eax, ebx
jmp 0x49dd81
mov ebx, ecx
mov edi, dword [ebx]
add ebx, 4
lea eax, [edi - 0x1010101]
not edi
and eax, edi
and eax, 0x80808080
je 0x49de3a
mov edi, eax
shr edi, 0x10
test eax, 0x8080
cmove eax, edi
lea edi, [ebx + 2]
cmove ebx, edi
add al, al
mov eax, dword [ebp + 8]
sbb ebx, 3
sub ebx, ecx
mov byte [ecx + ebx], 0x5c
mov dword [esp + 4], eax
lea eax, [ecx + ebx + 1]
mov dword [esp], eax
mov dword [ebp - 0x1c], ecx
call sub.msvcrt.dll_strcpy
test esi, esi
mov ecx, dword [ebp - 0x1c]
je 0x49dead
mov dword [esp], ecx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call esi
mov ecx, dword [ebp - 0x1c]
sub esp, 0xc
mov ebx, eax
jmp 0x49de29
mov dword [esp], ecx
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x1c]
push edx
mov ebx, eax
jmp 0x49de29