joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402090
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x409074
call sym._EnterCriticalSection_4
mov ebx, dword [0x40906c]
sub esp, 4
test ebx, ebx
je 0x4020db
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4020d4
test esi, esi
je 0x4020d4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020b0
mov dword [esp], 0x409074
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4022c0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402310
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4023e8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40234e
cmp eax, 4
jne 0x402370
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40235e
cmp edx, 4
je 0x40235e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004022c0
Function at 0x5d78d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x176000]
push edi
or ebp, 0xffffffff
jmp 0x5d78f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5d78f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d78e8
mov eax, 1
add ebx, ebx
jne 0x5d790b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5d791c
jne 0x5d793b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d793b
dec eax
add ebx, ebx
jne 0x5d7928
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5d7900
add ebx, ebx
jne 0x5d7937
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5d798d
xor ecx, ecx
sub eax, 3
jb 0x5d7953
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5d79c2
sar eax, 1
mov ebp, eax
jmp 0x5d795e
add ebx, ebx
jne 0x5d795e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d792c
inc ecx
add ebx, ebx
jne 0x5d796c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d792c
add ebx, ebx
jne 0x5d7979
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5d796e
jne 0x5d798a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5d796e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5d79ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5d799e
jmp 0x5d78ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5d79ac
add edi, ecx
jmp 0x5d78ee
pop esi
mov edi, esi
mov ecx, 0x2833
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5d79ca
cmp byte [edi], 0x11
jne 0x5d79ca
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 0x5d79cf
lea edi, [esi + 0x1d4000]
mov eax, dword [edi]
or eax, eax
je 0x5d7a47
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ebadc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ebba4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5d79fc
mov ecx, edi
jns 0x5d7a2b
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 + 0x1ebba8]
or eax, eax
je 0x5d7a41
mov dword [ebx], eax
add ebx, 4
jmp 0x5d7a19
call dword [esi + 0x1ebbb8]
mov ebp, dword [esi + 0x1ebbac]
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 0x5d7a7b
sub esp, 0xffffff80
jmp 0x406b53
Function at 0x401407
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4593b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], ecx
push eax
mov ebx, edx
mov dword [ebp - 0x24], 0x4e52454b
mov dword [ebp - 0x20], 0x32334c45
mov dword [ebp - 0x1c], 0x6c6c642e
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x64616f4c
mov dword [ebp - 0x10], 0x7262694c
mov dword [ebp - 0xc], 0x41797261
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x401488
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x401488
push ebx
call dword [ebp - 0x2c]
test eax, eax
je 0x40148c
push edi
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428999
leave
ret

Function at 0x40149b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4593b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], 0x4e52454b
push edi
mov esi, edx
mov dword [ebp - 0x10], 0x32334c45
mov ebx, ecx
mov dword [ebp - 0xc], 0x6c6c642e
push eax
lea edx, [ebp - 0x14]
mov byte [ebp - 8], 0
xor ecx, ecx
mov dword [ebp - 0x3c], 0x50746547
mov dword [ebp - 0x38], 0x65636f72
mov dword [ebp - 0x34], 0x65487373
mov word [ebp - 0x30], 0x7061
mov byte [ebp - 0x2e], 0
call fcn.00401407
mov edi, eax
mov dword [ebp - 0x2c], 0x70616548
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0x6c416552
push eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x24], 0x636f6c
xor ecx, ecx
call fcn.00401407
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x70616548
push eax
xor ecx, ecx
mov dword [ebp - 0x1c], 0x6f6c6c41
mov word [ebp - 0x18], 0x63
call fcn.00401407
add esp, 0xc
mov dword [ebp - 0x44], eax
push esi
test ebx, ebx
je 0x401558
push ebx
push 0
call edi
push eax
call dword [ebp - 0x40]
jmp 0x401560
push 0
call edi
push eax
call dword [ebp - 0x44]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428999
leave
ret
Function at 0x40156f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4593b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0x4e52454b
push edi
mov ebx, ecx
mov dword [ebp - 0x10], 0x32334c45
push eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0xc], 0x6c6c642e
xor ecx, ecx
mov byte [ebp - 8], 0
mov dword [ebp - 0x30], 0x50746547
mov dword [ebp - 0x2c], 0x65636f72
mov dword [ebp - 0x28], 0x65487373
mov word [ebp - 0x24], 0x7061
mov byte [ebp - 0x22], 0
call fcn.00401407
mov edi, eax
mov dword [ebp - 0x20], 0x70616548
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x65657246
push eax
lea edx, [ebp - 0x14]
mov byte [ebp - 0x18], 0
xor ecx, ecx
call fcn.00401407
pop ecx
pop ecx
push ebx
push 0
mov esi, eax
call edi
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428999
leave
ret

Function at 0x401607
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4593b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push esi
push edi
mov dword [ebp - 0x30], edx
xor ecx, ecx
push eax
lea edx, [ebp - 0x24]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], 0x4e52454b
mov dword [ebp - 0x20], 0x32334c45
mov dword [ebp - 0x1c], 0x6c6c642e
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x74726956
mov dword [ebp - 0x10], 0x416c6175
mov dword [ebp - 0xc], 0x636f6c6c
mov byte [ebp - 8], 0
call fcn.00401407
mov esi, dword [ebx + 4]
mov edx, eax
pop ecx
mov ecx, dword [ebx]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], esi
movzx edi, word [ecx + 0x14]
add edi, 0x28
cmp ax, word [ecx + 6]
jae 0x4016f4
add edi, ecx
cmp dword [edi], 0
jne 0x4016b2
mov eax, dword [ebp - 0x30]
mov esi, dword [eax + 0x38]
test esi, esi
jle 0x4016e0
mov eax, dword [edi - 4]
add eax, dword [ebp - 0x2c]
push 4
push 0x1000
push esi
push eax
call edx
push esi
push 0
push eax
mov dword [edi - 8], eax
call fcn.0042a8b0
jmp 0x4016da
mov eax, dword [edi - 4]
push 4
push 0x1000
push dword [edi]
add eax, esi
push eax
call edx
push dword [edi]
mov ecx, dword [edi + 4]
mov esi, eax
add ecx, 0x459e30
push ecx
push esi
call fcn.0042a330
mov dword [edi - 8], esi
mov edx, dword [ebp - 0x28]
add esp, 0xc
mov eax, dword [ebp - 0x34]
inc ebx
mov esi, dword [ebp - 0x2c]
add edi, 0x28
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp ebx, eax
jl 0x401684
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428999
leave
ret
Function at 0x401703
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4593b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], 0x4e52454b
lea eax, [ebp - 0x20]
mov dword [ebp - 0x48], esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], 0x32334c45
push eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0xc], 0x6c6c642e
xor ecx, ecx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 8], bl
mov dword [ebp - 0x20], 0x74726956
mov dword [ebp - 0x1c], 0x466c6175
mov dword [ebp - 0x18], 0x656572
call fcn.00401407
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x74726956
push eax
xor ecx, ecx
mov dword [ebp - 0x2c], 0x506c6175
mov dword [ebp - 0x28], 0x65746f72
mov word [ebp - 0x24], 0x7463
mov byte [ebp - 0x22], bl
call fcn.00401407
mov edi, dword [esi]
mov dword [ebp - 0x44], eax
xor eax, eax
pop ecx
pop ecx
movzx esi, word [edi + 0x14]
add esi, 0x28
cmp ax, word [edi + 6]
jae 0x40183b
add esi, edi
mov ebx, dword [esi + 0x14]
mov edx, dword [esi]
test ebx, 0x2000000
je 0x4017c1
push 0x4000
push edx
push dword [esi - 8]
call dword [ebp - 0x40]
jmp 0x401820
mov ecx, ebx
mov eax, ebx
shr eax, 0x1e
shr ecx, 0x1d
and eax, 1
and ecx, 1
lea ecx, [eax + ecx*2]
mov eax, ebx
shr eax, 0x1f
lea eax, [eax + ecx*2]
mov ecx, dword [eax*4 + 0x4503bc]
mov dword [ebp - 0x38], ecx
or dword [ebp - 0x38], 0x200
test ebx, 0x4000000
mov eax, dword [ebp - 0x38]
cmove eax, ecx
mov ecx, edx
test edx, edx
jne 0x401814
test bl, 0x40
je 0x401809
mov edx, dword [edi + 0x20]
jmp 0x401810
test bl, bl
jns 0x401820
mov edx, dword [edi + 0x24]
test edx, edx
je 0x401820
lea edx, [ebp - 0x34]
push edx
push eax
push ecx
push dword [esi - 8]
call dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
add esi, 0x28
mov ecx, dword [ebp - 0x3c]
inc ecx
mov dword [ebp - 0x3c], ecx
mov edi, dword [eax]
movzx eax, word [edi + 6]
cmp ecx, eax
jl 0x4017a6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428999
leave
ret
Function at 0x4018d3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4593b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x14], 0x4e52454b
lea eax, [ebp - 0x24]
mov dword [ebp - 0x4c], ebx
push edi
push eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], 0x32334c45
xor ecx, ecx
mov dword [ebp - 0xc], 0x6c6c642e
mov byte [ebp - 8], 0
mov dword [ebp - 0x24], 0x61427349
mov dword [ebp - 0x20], 0x61655264
mov dword [ebp - 0x1c], 0x72745064
mov byte [ebp - 0x18], 0
call fcn.00401407
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x64616f4c
push eax
xor ecx, ecx
mov dword [ebp - 0x30], 0x7262694c
mov dword [ebp - 0x2c], 0x41797261
mov byte [ebp - 0x28], 0
call fcn.00401407
mov edi, dword [ebx]
xor esi, esi
pop ecx
mov dword [ebp - 0x44], eax
inc esi
mov eax, dword [ebx + 4]
cmp dword [edi + 0x84], 0
pop ecx
mov dword [ebp - 0x38], eax
jbe 0x401a43
mov edi, dword [edi + 0x80]
add edi, eax
push 0x14
push edi
call dword [ebp - 0x40]
test eax, eax
jne 0x401a43
add edi, 0x10
mov ecx, dword [edi - 4]
xor esi, esi
inc esi
test ecx, ecx
je 0x401a43
mov eax, dword [ebp - 0x38]
add eax, ecx
push eax
call dword [ebp - 0x44]
mov esi, eax
mov dword [ebp - 0x48], esi
cmp esi, 0xffffffff
je 0x401a41
mov ecx, dword [ebx + 0xc]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebx + 8]
call fcn.0040149b
mov dword [ebx + 8], eax
test eax, eax
je 0x401a41
mov ecx, dword [ebx + 0xc]
mov dword [eax + ecx*4], esi
inc dword [ebx + 0xc]
mov ecx, dword [edi - 0x10]
test ecx, ecx
jne 0x4019db
mov ecx, dword [edi]
mov edx, dword [ebp - 0x38]
xor esi, esi
mov eax, dword [edi]
inc esi
add eax, edx
mov dword [ebp - 0x3c], eax
lea ebx, [ecx + edx]
mov eax, dword [ebx]
test eax, eax
je 0x401a29
mov esi, dword [ebp - 0x48]
jns 0x4019fb
movzx eax, ax
jmp 0x401a00
add eax, 2
add eax, edx
push eax
xor edx, edx
mov ecx, esi
call fcn.00401407
pop ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
test eax, eax
je 0x401a41
mov edx, dword [ebp - 0x38]
add ebx, 4
add ecx, 4
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebx]
test eax, eax
jne 0x4019f4
xor esi, esi
inc esi
add edi, 0x14
push 0x14
lea eax, [edi - 0x10]
push eax
call dword [ebp - 0x40]
test eax, eax
jne 0x401a43
mov ebx, dword [ebp - 0x4c]
jmp 0x40198b
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428999
leave
ret
Function at 0x401a54
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4593b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0x4e52454b
push edi
xor ebx, ebx
mov dword [ebp - 0x10], 0x32334c45
push eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0xc], 0x6c6c642e
xor ecx, ecx
mov byte [ebp - 8], bl
mov dword [ebp - 0x30], 0x74726956
mov dword [ebp - 0x2c], 0x416c6175
mov dword [ebp - 0x28], 0x636f6c6c
mov byte [ebp - 0x24], bl
call fcn.00401407
mov edi, eax
mov dword [ebp - 0x40], 0x50746547
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], edi
push eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x3c], 0x65636f72
xor ecx, ecx
mov dword [ebp - 0x38], 0x65487373
mov word [ebp - 0x34], 0x7061
mov byte [ebp - 0x32], bl
call fcn.00401407
mov dword [ebp - 0x4c], eax
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x70616548
push eax
xor ecx, ecx
mov dword [ebp - 0x1c], 0x6f6c6c41
mov word [ebp - 0x18], 0x63
call fcn.00401407
mov dword [ebp - 0x50], eax
add esp, 0xc
mov eax, 0x5a4d
cmp word [0x459e30], ax
jne 0x401c0f
mov ecx, dword [0x459e6c]
lea esi, [ecx + 0x459e30]
cmp dword [esi], 0x4550
mov dword [ebp - 0x48], esi
jne 0x401c0f
push 4
push 0x2000
push dword [esi + 0x50]
push dword [esi + 0x34]
call edi
mov ebx, eax
test ebx, ebx
jne 0x401b5c
push 4
push 0x2000
push dword [esi + 0x50]
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x401c0f
push 0x14
push 0
call dword [ebp - 0x4c]
push eax
call dword [ebp - 0x50]
mov edi, eax
xor eax, eax
push 4
push 0x1000
mov dword [edi + 4], ebx
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
push dword [esi + 0x50]
push ebx
call dword [ebp - 0x44]
push 4
push 0x1000
push dword [esi + 0x54]
push ebx
call dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
mov esi, eax
mov ecx, dword [ecx + 0x54]
add ecx, dword [0x459e6c]
push ecx
push 0x459e30
push esi
call fcn.0042a330
mov eax, dword [0x459e6c]
add eax, esi
mov esi, dword [ebp - 0x48]
mov dword [edi], eax
mov edx, esi
push edi
mov dword [eax + 0x34], ebx
call fcn.00401607
mov edx, ebx
add esp, 0x10
sub edx, dword [esi + 0x34]
je 0x401bd5
mov ecx, edi
call fcn.0040184a
mov ecx, edi
call fcn.004018d3
test eax, eax
je 0x401c08
mov ecx, edi
call fcn.00401703
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x401c04
add eax, ebx
je 0x401c08
push 0
xor esi, esi
inc esi
push esi
push ebx
call eax
test eax, eax
je 0x401c08
mov dword [edi + 0x10], esi
mov eax, edi
jmp 0x401c11
mov ecx, edi
call fcn.00401cce
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428999
leave
ret
Function at 0x401cce
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4593b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0x4e52454b
push edi
mov esi, ecx
mov dword [ebp - 0x10], 0x32334c45
xor ebx, ebx
mov dword [ebp - 0xc], 0x6c6c642e
push eax
lea edx, [ebp - 0x14]
mov byte [ebp - 8], bl
xor ecx, ecx
mov dword [ebp - 0x2c], 0x65657246
mov dword [ebp - 0x28], 0x7262694c
mov dword [ebp - 0x24], 0x797261
call fcn.00401407
mov dword [ebp - 0x50], eax
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x74726956
push eax
xor ecx, ecx
mov dword [ebp - 0x34], 0x466c6175
mov dword [ebp - 0x30], 0x656572
call fcn.00401407
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x50746547
push eax
xor ecx, ecx
mov dword [ebp - 0x44], 0x65636f72
mov dword [ebp - 0x40], 0x65487373
mov word [ebp - 0x3c], 0x7061
mov byte [ebp - 0x3a], bl
call fcn.00401407
mov edi, eax
mov dword [ebp - 0x20], 0x70616548
lea eax, [ebp - 0x20]
mov dword [ebp - 0x54], edi
push eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x1c], 0x65657246
xor ecx, ecx
mov byte [ebp - 0x18], bl
call fcn.00401407
add esp, 0x10
mov dword [ebp - 0x5c], eax
test esi, esi
je 0x401e13
xor eax, eax
lea ebx, [esi + 4]
mov dword [ebp - 0x4c], ebx
cmp dword [esi + 0x10], eax
je 0x401dc4
push eax
push eax
mov eax, dword [esi]
push dword [ebx]
mov eax, dword [eax + 0x28]
add eax, dword [ebx]
call eax
xor eax, eax
mov dword [esi + 0x10], eax
jmp 0x401dc7
mov dword [ebp - 0x4c], ebx
cmp dword [esi + 8], eax
je 0x401dfa
mov edi, eax
cmp dword [esi + 0xc], eax
jle 0x401ded
mov ebx, dword [ebp - 0x50]
mov eax, dword [esi + 8]
cmp dword [eax + edi*4], 0xffffffff
je 0x401de4
push dword [eax + edi*4]
call ebx
inc edi
cmp edi, dword [esi + 0xc]
jl 0x401dd6
mov ebx, dword [ebp - 0x4c]
mov ecx, dword [esi + 8]
call fcn.0040156f
mov edi, dword [ebp - 0x54]
xor eax, eax
cmp dword [ebx], 0
je 0x401e0a
push 0x8000
push eax
push dword [ebx]
call dword [ebp - 0x58]
push esi
push 0
call edi
push eax
call dword [ebp - 0x5c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428999
leave
ret

Function at 0x401e22
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
push 0
mov esi, edi
call dword [sym.imp.KERNEL32.dll_Sleep]
movsx eax, byte [ebx + 0x459e20]
mov ecx, 0x68f7
cdq
idiv ecx
push 0
add dl, 2
xor byte [edi + 0x459e30], dl
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov eax, esi
push 5
pop ecx
div ecx
inc ebx
inc edi
neg edx
sbb edx, edx
and ebx, edx
cmp edi, 0x110000
jl 0x401e29
pop edi
pop esi
pop ebx
ret
Function at 0x402039
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4593b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
xor ecx, ecx
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
cpuid
mov esi, ebx
lea edi, [ebp - 0x28]
pop ebx
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
inc eax
mov dword [edi + 8], ecx
xor ecx, ecx
push ebx
mov dword [edi + 0xc], edx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
xor ecx, ecx
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x1c]
push 3
mov dword [ebp - 0x6c], eax
pop eax
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x6c]
push eax
lea eax, [ebp - 0x18]
push str._08X
push eax
call fcn.00402354
add esp, 0xc
lea edx, [ebp - 0x18]
mov esi, str.178F02CO
xor ecx, ecx
movzx eax, byte [edx + ecx]
cmp al, byte [esi + ecx]
jne 0x4020e7
inc ecx
cmp ecx, 9
jne 0x4020d1
mov eax, 0x44fb00
jmp 0x4020ec
mov eax, 0x44fb0c
push eax
call fcn.004026fc
pop ecx
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428999
leave
ret

Function at 0x40239f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4023f9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4023f9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4023e9
cmp esi, ecx
jae 0x4023f9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4023d7
cmp esi, ecx
jae 0x4023f9
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x4023fb
xor eax, eax
pop esi
pop ebp
ret
Function at 0x405609
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x40564e
call fcn.0040909d
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40564b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405695
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x405671
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4455b8]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x405692
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x4455b8]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc