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

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x40fece
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00431c20
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x40fea1
sub eax, ebx
jmp 0x40fea3
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x40fe92
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x40fec2
sub eax, ebx
jmp 0x40fec4
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x40feb3
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x40ffa2
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.0040fc60
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x40ff19
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x40ff2d
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x40fe56
mov eax, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jae 0x40ffa2
mov esi, dword [edi + 0x6c]
add esi, edx
cmp eax, esi
jae 0x40ff71
sub ecx, esi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x40ff54
mov ebx, 0x102
mov ecx, dword [edi + 0x38]
push ebx
add ecx, esi
push 0
push ecx
call fcn.00431f90
add esp, 0xc
add ebx, esi
pop esi
pop ebp
mov dword [edi + 0x16c0], ebx
pop ebx
ret
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x40ffa2
sub esi, eax
add esi, 0x102
sub ecx, eax
cmp esi, ecx
jbe 0x40ff8b
mov esi, ecx
mov ecx, dword [edi + 0x38]
push esi
add ecx, eax
push 0
push ecx
call fcn.00431f90
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebp
pop ebx
ret
Function at 0x415c7c
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x4625e0]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x415d1a
push 0x44f1cc
push 4
push eax
call fcn.00430f21
push eax
call fcn.00401800
add esp, 0x10
push ebx
push edi
call fcn.0043368f
mov edi, dword [eax]
call fcn.0043368f
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00431081
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.0043368f
cmp dword [eax], ebx
je 0x415d31
call fcn.0043368f
push dword [eax]
call fcn.00415bdf
pop ecx
jmp 0x415d38
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x415ccb
jmp 0x415daa
call fcn.0043368f
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x415da6
cmp dword [ebp - 0x40], esi
jae 0x415da6
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00431f90
add esp, 0xc
push 0x44ef2c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x415d98
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x415d98
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x415d98
push ebx
push ebx
push esi
jmp 0x415d9e
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x415da8
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.00431056
add ebp, 0x1f4
leave
ret
Function at 0x4183f5
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x4182a9
cmp dword [eax + 0xc], ebx
je 0x41834c
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00417d04
jno 0x418329
std
popal
cmp dword [ebp + 0xc], ebx
jne 0x4182d8
push edi
call dword [ebp - 0xb8]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4184f3
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
cmp eax, ebx
lea edi, [ecx + esi]
jne 0x4182ec
mov dword [ebp + 0x10], edi
jmp 0x4182f1
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.00417d04
sar dword [ebx + 0x56], cl
cmp byte [ebx + 0x8b1045], cl
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x41833a
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x418315
and eax, 0xffff
push eax
jmp 0x418319
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00417cc9
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x4184f3
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x4182fa
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x41829b
call fcn.00417d04
mov bh, 0x8c
push ss
or eax, 0xa0878b
add byte [eax], al
cmp eax, ebx
je 0x4183b8
add eax, esi
cmp dword [eax], ebx
je 0x4183b8
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4183b3
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x41839d
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4183a5
cmp edx, ebx
jne 0x4184f3
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x418374
add eax, dword [eax + 4]
jmp 0x418361
mov dword [ebp + 0xc], ebx
jmp 0x4183c3
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4183db
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4183f9
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
invalid
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x418457
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x41843e
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x418447
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x418451
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x418433
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4183bd
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x41988c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
inc dword [eax]
mov byte [ebp - 0x788], 3
invalid
Function at 0x421560
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 0x42158e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4215ac
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004214ca
jmp 0x4215ac
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4215ac
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004214ca
test edi, edi
mov eax, edi
jne 0x421596
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4657f4]
test ecx, ecx
je 0x42166f
jmp 0x42155f
ret 8

Function at 0x431056
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4625e0]
jne 0x431060
repz ret
jmp fcn.00438458
Function at 0x43289c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4328d9
cmp dword [ebp + 0x14], edi
je 0x4328d9
cmp ecx, edi
jne 0x4328e0
call fcn.0043368f
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00432395
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4328f4
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x432915
cmp ebx, 0xffffffff
je 0x432904
push ebx
push edi
push ecx
call fcn.00431f90
add esp, 0xc
cmp esi, edi
je 0x4328c1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4328c1
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x432931
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x432938
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x432a29
test word [esi + 0xc], 0x10c
je 0x43298c
mov eax, dword [esi + 4]
test eax, eax
je 0x43298c
jl 0x432a8a
cmp ebx, eax
mov edi, ebx
jb 0x43295d
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x432a31
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004309a2
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x432a21
cmp ebx, dword [ebp - 0xc]
jb 0x4329f9
cmp dword [ebp - 0xc], 0
je 0x4329b6
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4329ab
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4329b2
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4329c1
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4329c1
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x432a5d
push eax
push dword [ebp - 8]
push esi
call fcn.0043b7b2
pop ecx
push eax
call fcn.0043b519
add esp, 0xc
test eax, eax
je 0x432a9c
cmp eax, 0xffffffff
je 0x432a8a
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x432a21
push esi
call fcn.0043c033
cmp eax, 0xffffffff
pop ecx
je 0x432a8e
cmp dword [ebp - 4], 0
je 0x432a5d
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x432940
mov eax, dword [ebp + 0x14]
jmp 0x4328db
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x432a48
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00431f90
add esp, 0xc
call fcn.0043368f
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4328d1
cmp dword [ebp + 0xc], 0xffffffff
je 0x432a73
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00431f90
add esp, 0xc
call fcn.0043368f
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4328d1
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4328db
or dword [esi + 0xc], 0x10
jmp 0x432a8e
Function at 0x43626c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x462770]
je 0x436287
inc edi
cmp edi, 0x17
jb 0x436278
cmp edi, 0x17
jae 0x436407
push ebp
push 3
call fcn.004404d0
cmp eax, 1
pop ecx
je 0x4363d3
push 3
call fcn.004404d0
test eax, eax
pop ecx
jne 0x4362bb
cmp dword [0x4625b8], 1
je 0x4363d3
cmp ebx, 0xfc
je 0x436406
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x465b58
push ebp
call fcn.0043ade6
add esp, 0xc
test eax, eax
je 0x4362f1
push esi
push esi
push esi
push esi
push esi
call fcn.00432299
add esp, 0x14
push 0x104
mov esi, 0x465b71
push esi
push 0
mov byte [0x465c75], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x436335
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043ade6
add esp, 0xc
test eax, eax
je 0x436335
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00432299
add esp, 0x14
push esi
call fcn.0043ae50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43637a
push esi
call fcn.0043ae50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x465e6c
push 0x4524c4
sub ecx, eax
push ecx
push eax
call fcn.00431963
add esp, 0x14
test eax, eax
je 0x43637a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00432299
add esp, 0x14
jmp 0x43637c
xor esi, esi
push 0x4524c0
push ebx
push ebp
call fcn.0044045f
add esp, 0xc
test eax, eax
je 0x43639c
push esi
push esi
push esi
push esi
push esi
call fcn.00432299
add esp, 0x14
push dword [edi*8 + 0x462774]
push ebx
push ebp
call fcn.0044045f
add esp, 0xc
test eax, eax
je 0x4363be
push esi
push esi
push esi
push esi
push esi
call fcn.00432299
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004402a2
add esp, 0xc
jmp 0x436406
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x436406
cmp ebp, 0xffffffff
je 0x436406
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x462774]
push dword [esi]
call fcn.0043ae50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4402a2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00436e30
xor ebx, ebx
cmp dword [0x466658], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x440378
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x440458
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x440458
push eax
call fcn.00436dc2
mov dword [esp], 0x4527fc
push edi
mov dword [0x466658], eax
call esi
push eax
call fcn.00436dc2
mov dword [esp], 0x4527e8
push edi
mov dword [0x46665c], eax
call esi
push eax
call fcn.00436dc2
mov dword [0x466660], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004333e1
test eax, eax
pop ecx
pop ecx
je 0x440346
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00432299
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x440378
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00436dc2
cmp eax, ebx
pop ecx
mov dword [0x466668], eax
je 0x440378
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00436dc2
pop ecx
mov dword [0x466664], eax
mov eax, dword [0x466664]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4403fd
cmp dword [0x466668], ecx
je 0x4403fd
push eax
call fcn.00436e39
push dword [0x466668]
mov esi, eax
call fcn.00436e39
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4403fd
cmp edi, ebx
je 0x4403fd
call esi
cmp eax, ebx
je 0x4403ca
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4403ca
test byte [ebp - 0x18], 1
jne 0x4403fd
lea eax, [ebp - 0x10]
push eax
call fcn.00433418
test eax, eax
pop ecx
je 0x4403e5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00432299
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4403f4
or dword [ebp + 0x10], 0x200000
jmp 0x440438
or dword [ebp + 0x10], 0x40000
jmp 0x440438
mov eax, dword [0x46665c]
cmp eax, dword [ebp - 8]
je 0x440438
push eax
call fcn.00436e39
cmp eax, ebx
pop ecx
je 0x440438
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x440438
mov eax, dword [0x466660]
cmp eax, dword [ebp - 8]
je 0x440438
push eax
call fcn.00436e39
cmp eax, ebx
pop ecx
je 0x440438
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x466658]
call fcn.00436e39
cmp eax, ebx
pop ecx
je 0x440458
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44045a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4476a3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4625e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00447638
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00431f90
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4476f2
cmp dword [ebp - 0x1c], 5
jb 0x44770a
jmp 0x447706
cmp dword [ebp - 0x10], 1
jne 0x44770a
cmp dword [ebp - 0x1c], 4
ja 0x447706
jne 0x44770a
cmp dword [ebp - 0x18], 0
jbe 0x44770a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4540fc
call fcn.00447529
test eax, eax
jge 0x44772b
mov byte [0x467428], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00431056
add ebp, 0x78
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x58064cea
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x39a02b7e
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x9d8370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x9d838e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xa01074
push ecx
mov edi, eax
call fcn.009ec198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9d83cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.009ec02e
push esi
call fcn.009ebfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x9db850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x9db8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xa06720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9db8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.009ec1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x9db8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xa06720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9db92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.009ed082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x9db957
mov word [eax], si
add eax, 2
push eax
call fcn.009ed030
add esp, 4
jmp 0x9db959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x9db8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x9db8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x9dbff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x9dc080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x9dc0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xa01458
push ecx
call fcn.009ec1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009ec1e1
add esp, 0x10
jmp 0x9dc0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.009ec20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.009ebdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.009dc050
mov eax, dword [0xa06728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x9dc13b
push esi
call fcn.009dbfb0
add esp, 4
mov dword [0xa06728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x9dc14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.009dbff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x9df440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9df4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x9df48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x9df471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x9df47e
add edx, ecx
cmp ebx, edx
jb 0x9df48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x9df467
xor ecx, ecx
jmp 0x9df4a2
test eax, eax
jne 0x9df492
xor ecx, ecx
jmp 0x9df4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.009df3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x9df8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x9df921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x9df946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x9df96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x9df993
push ecx
push esi
call fcn.009df4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret