joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bdb3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x40bdd2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
movzx eax, word [eax + 0x56]
mov dword [ecx], eax
mov eax, 0x8abc000b
jmp 0x40be4a
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x50]
test ecx, ecx
jne 0x40bde3
mov eax, 0x80004005
jmp 0x40be4a
mov eax, dword [esi + 0x168]
test eax, eax
jne 0x40bdf2
push 1
pop eax
jmp 0x40be2c
cmp eax, edi
ja 0x40bdf8
mov edi, eax
mov eax, dword [esi + 0x164]
push 0
add eax, dword [esi + 0x160]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push 0
push eax
push edi
push dword [ebp + 0xc]
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40be34
mov eax, 0x80004005
mov ecx, dword [ebp + 0x14]
and dword [ecx], 0
jmp 0x40be4a
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov dword [ecx], eax
add dword [esi + 0x160], eax
sub dword [esi + 0x168], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x40c846
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi + 0x18c]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x422c28]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x6c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c8a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, word [esi + 0x18c]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x422c28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80004005
jmp 0x40c8c8
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov dword [ecx], eax
add dword [esi + 8], eax
movzx eax, word [esi + 0x18c]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x422c28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x4210f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x421143
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x42112a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x59ef20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x126000]
push edi
or ebp, 0xffffffff
jmp 0x59ef42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x59ef49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59ef38
mov eax, 1
add ebx, ebx
jne 0x59ef5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x59ef6c
jne 0x59ef8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59ef8b
dec eax
add ebx, ebx
jne 0x59ef78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x59ef50
add ebx, ebx
jne 0x59ef87
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x59efdd
xor ecx, ecx
sub eax, 3
jb 0x59efa3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x59f012
sar eax, 1
mov ebp, eax
jmp 0x59efae
add ebx, ebx
jne 0x59efae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59ef7c
inc ecx
add ebx, ebx
jne 0x59efbc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59ef7c
add ebx, ebx
jne 0x59efc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x59efbe
jne 0x59efda
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x59efbe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x59effc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x59efee
jmp 0x59ef3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x59effc
add edi, ecx
jmp 0x59ef3e
pop esi
mov edi, esi
mov ecx, 0x596f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x59f01a
cmp byte [edi], 0x23
jne 0x59f01a
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 0x59f01f
lea edi, [esi + 0x19a000]
mov eax, dword [edi]
or eax, eax
je 0x59f08e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1bb38c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1bb490]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x59f04c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1bb494]
or eax, eax
je 0x59f088
mov dword [ebx], eax
add ebx, 4
jmp 0x59f069
call dword [esi + 0x1bb4a4]
mov ebp, dword [esi + 0x1bb498]
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 0x59f0c2
sub esp, 0xffffff80
jmp 0x4f6d84
Function at 0x101d52f0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x101d54ce
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe2000]
push edi
or ebp, 0xffffffff
jmp 0x101d531a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x101d5321
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101d5310
mov eax, 1
add ebx, ebx
jne 0x101d5333
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x101d5344
jne 0x101d5363
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101d5363
dec eax
add ebx, ebx
jne 0x101d5350
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x101d5328
add ebx, ebx
jne 0x101d535f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x101d53b5
xor ecx, ecx
sub eax, 3
jb 0x101d537b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101d53ea
sar eax, 1
mov ebp, eax
jmp 0x101d5386
add ebx, ebx
jne 0x101d5386
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101d5354
inc ecx
add ebx, ebx
jne 0x101d5394
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101d5354
add ebx, ebx
jne 0x101d53a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x101d5396
jne 0x101d53b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x101d5396
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101d53d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101d53c6
jmp 0x101d5316
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101d53d4
add edi, ecx
jmp 0x101d5316
pop esi
mov edi, esi
mov ecx, 0xe2d95
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x101d540f
cmp byte [edi], 0x23
jne 0x101d53f4
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x101d53f2
lea edi, [esi + 0x1cd000]
mov eax, dword [edi]
or eax, eax
je 0x101d5460
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e7804]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e7930]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x101d5415
mov ecx, edi
jns 0x101d5444
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 + 0x1e7934]
or eax, eax
je 0x101d545a
mov dword [ebx], eax
add ebx, 4
jmp 0x101d5432
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x101d5491
cmp al, 0xef
ja 0x101d5484
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x101d5466
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x101d5473
mov ebp, dword [esi + 0x1e7938]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
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 0x101d54c5
sub esp, 0xffffff80
jmp 0x100ad025
Function at 0x619bbf
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x619917
push word [esp + 1]
pop dword [esp]
push esp
jmp 0x619897
lea esp, [esp + 2]
mov dword [esp + 8], esi
jmp 0x6198c3
push word [esp + 1]
pop dword [esp]
push esp
lea esp, [esp + 2]
mov dword [esp + 8], esi
call fcn.006198df
pushfd
call fcn.006198ed
or ecx, dword [edx + eax - 0x60db6b9b]
sbb dword [ecx - 0x752e418], ecx
invalid
mov dword [esp + 4], ebp
pushfd
mov word [esp], cx
push dword [esp + 1]
jns 0x6198b2
js 0x619888
sub ax, 0x3150
mov cx, 0xe41
lea edi, [ecx - 0x209]
rcr cl, 2
lea edx, [edx - 0x25e]
lea esi, [esp + edx]
jmp 0x619b59
clc
call 0x619ab0
not edx
jmp 0x619bab
mov bl, 0x29
mov ax, word [esp]
bsr eax, edi
ja 0x619bb6
not bx
jmp 0x619bb9
mov ax, word [esp]
not ebx
rol esi, 0
jmp 0x619b95
not bx
call 0x619bbf
and bl, ch
cmp ecx, dword [ebp + 0xad14]
add byte [eax], al
mov byte [esp + 1], ah
bswap eax
jmp 0x619be6
add esi, dword [edi]
bts edx, esp
je 0x619c3b
inc eax
bswap edx
mov ax, word [esp]
jmp fcn.0061a074
inc eax
call fcn.00619c0a
lds ecx, [ebp - 0x2080]
lea eax, [eax - 0x21]

Function at 0x63b4c7
Capabilities:
Encrypt data using aes

Disassembly:
lea esp, [esp + 4]
popal
jmp 0x63b4e4
pushal
mov dword [esp], edx
pushfd
jmp 0x63b4b1
and ecx, esi
call 0x63b4ce
shr edi, 0x10
pushfd
and edi, esi
jmp 0x63b534
lea esp, [esp + 0xc]
and ecx, 0xff0000
and edi, 0xff000000
jmp 0x63b51e
mov edi, dword [edi*4 + 0x613024]
jmp 0x63b4f3

Function at 0x63b8f4
Capabilities:
Encrypt data using aes

Disassembly:
movzx ebx, byte [esi + 0x11]
jmp 0x63b944
mov edx, dword [esi]
mov edi, edx
shr edi, 0x18
jmp 0x63b925
mov edi, dword [edi*4 + 0x613024]
call fcn.0063b956
inc esp
fisttp dword [ebx + 0x2e]
invalid
mov ebx, dword [ebx*4 + 0x613024]
lea esp, [esp + 4]
add esi, 0x10
mov dh, 0xc2
jmp 0x63b918

Function at 0x63ba78
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov edi, dword [edi*4 + 0x613024]
and edi, ecx
stc
call fcn.0063bae7
sbb al, 0xa3
xor edx, dword [esi - 0x5b]
push ss
invalid

Function at 0x63bae7
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea eax, [eax + 0x613424]
mov edi, dword [eax]
pop eax
jmp 0x63bac5
push eax
mov eax, edi
lea eax, [eax*4]
jmp 0x63baa3
and ebx, ecx
sub esp, 0xa
pop dword [esp]
lea esp, [esp + 2]
jmp 0x63bb16
jmp 0x63bab9
lea esp, [esp + 0x30]
xor edi, dword [ebx*4 + 0x613c24]
setg bh
call fcn.0063baff
lea esp, [esp + 4]
xor edi, dword [ebx*4 + 0x613824]
mov bh, bl
lea ebx, [ebp*4]
bsf bx, si
jmp 0x63bb7e
movzx ebx, byte [esi + 9]
call fcn.0063bb61

Function at 0x63baff
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
movzx ebx, byte [esi + 6]
jmp 0x63bb54
mov dword [esp], edi
jmp 0x63bae9
mov ebx, dword [ebx*4 + 0x613024]
and ebx, ecx
stc
cmc
jmp 0x63bb29
Function at 0x63bbe5
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
add esp, 0
jmp 0x63bc04
jmp 0x63bbcf
mov edx, dword [esp]
mov dl, ch
push ebx
pushal
jmp 0x63bc2a
and edx, ecx
stc
lea esp, [esp + 0x10]
xor edi, dword [edx*4 + 0x614024]
jmp 0x63bbe7
lea esp, [esp + 0xc]
popal
jmp 0x63bc71
mov bp, word [esp]
mov dword [esp + 0x10], esi
sub esp, 9
push dword [esp + 8]
lea esp, [esp + 1]
jmp 0x63bc14
add ebx, 8
mov edx, dword [ebx]
pop ebx
pushal
mov word [esp + 0xd], ax
jmp 0x63bc5b

Function at 0x63bece
Capabilities:
Encrypt data using aes

Disassembly:
call fcn.0063c1ad
and ebx, ecx
clc
lea esp, [esp + 0x30]
xor edi, dword [ebx*4 + 0x613c24]
jmp 0x63c12d
push ebx
jmp 0x63beb0
mov ebx, dword [edi]
pop edi
and edx, ecx
pushfd
jmp 0x63be7c
pop ebx
jmp 0x63bec3
mov ebx, edx
lea ebx, [ebx*4]
lea ebx, [ebx + 0x613024]
mov edx, dword [ebx]
jmp 0x63be9a
and ebx, ecx
sub esp, 0xb
call 0x63bece
lcall 0x648d, 0x324648d
and al, 0x10
jmp 0x63bf15
push edi
mov edi, ebx
lea edi, [edi*4]
lea edi, [edi + 0x613024]
jmp 0x63be92
xor edi, dword [ebx*4 + 0x613824]
and edx, ecx
call fcn.0063beff
shr bx, cl
movzx ebx, byte [esi + 0xe]
stc
stc
jmp 0x63beed

Function at 0x63beff
Capabilities:
Encrypt data using aes

Disassembly:
lea esp, [esp + 4]
xor edi, dword [edx*4 + 0x614024]
jmp 0x63bf3b
dec dword [ebp - 4]
call fcn.0063bf23
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43ea0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x43ea08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43ea08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4010c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560500
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5bbd60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [0x5ca470], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00427b27
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40110d
push 0x80004005
call fcn.00405090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.00427b27
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401139
push 0x80004005
call fcn.00405090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 4], eax
mov byte [ebp - 4], 2
call fcn.00427b27
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401166
push 0x80004005
call fcn.00405090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
mov byte [ebp - 4], 3
call fcn.00427b27
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401193
push 0x80004005
call fcn.00405090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 4
call fcn.00427b27
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4011c0
push 0x80004005
call fcn.00405090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 5
call fcn.00427b27
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4011ed
push 0x80004005
call fcn.00405090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [ebp - 4], 6
call fcn.00427b27
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40121a
push 0x80004005
call fcn.00405090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 7
call fcn.00427b27
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401247
push 0x80004005
call fcn.00405090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
push ebx
push 0x59040b
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.00404f50
push ebx
push 0x59043a
lea ecx, [esi + 4]
call fcn.00404f50
push 1
push 0x593ed8
lea ecx, [esi + 8]
call fcn.00404f50
push ebx
push 0x59043b
lea ecx, [esi + 0x1c]
mov dword [esi + 0x10], 0x10100
mov dword [esi + 0x48], ebx
mov word [esi + 0x14], bx
call fcn.00404f50
push ebx
push 0x59049b
lea ecx, [esi + 0x20]
call fcn.00404f50
push ebx
push 0x5904c7
lea ecx, [esi + 0x24]
call fcn.00404f50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5bbd60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00404ce0
lea edi, [eax + 0x10]
mov dword [ebp - 0x34], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 4]
sub eax, 0x10
push eax
call fcn.00404ce0
lea esi, [eax + 0x10]
add esp, 8
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 1
cmp dword [edi - 0xc], ebx
je 0x402593
cmp dword [esi - 0xc], ebx
je 0x402593
cmp dword [edi - 4], 1
jle 0x402493
mov eax, dword [edi - 0xc]
push eax
lea ecx, [ebp - 0x34]
call fcn.00404db0
mov edi, dword [ebp - 0x34]
mov eax, edi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4024a5
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403690
push 4
push 0x593f80
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00403e80
cmp dword [esi - 4], 1
jle 0x4024e0
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00404db0
mov esi, dword [ebp - 0x38]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4024e5
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403e80
push 4
push 0x593f88
lea ecx, [ebp - 0x2c]
call fcn.00403e80
push 0x593f90
lea edx, [ebp - 0x30]
push str.UserPass.ini
push edx
call fcn.00528484
mov ecx, dword [ebp - 0x30]
add esp, 0xc
cmp ecx, ebx
je 0x40255f
cmp eax, ebx
jne 0x40255f
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402534
lea eax, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x1c]
push ecx
push 1
push eax
call fcn.00528b3a
mov edx, dword [ebp - 0x30]
push edx
push 2
push 1
push 0x593fa4
call fcn.00528b3a
mov eax, dword [ebp - 0x30]
push eax
call fcn.0052896f
add esp, 0x24
cmp dword [ebp - 0x18], 0x10
jb 0x402571
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00427ab5
add esp, 4
lea eax, [esi - 0x10]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4025a6
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527d0f
mov esp, ebp
pop ebp
ret
Function at 0x402990
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5bbd60]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x594020
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebx + 0x2c]
je 0x402a66
push 0x59402c
lea ecx, [ebp - 0x24]
push str.config.ini
push ecx
call fcn.00528484
add esp, 0xc
cmp dword [ebp - 0x24], 0
je 0x402a66
test eax, eax
jne 0x402a66
push esi
mov esi, dword [ebx + 0x28]
cmp esi, dword [ebx + 0x2c]
je 0x402a59
push edi
lea edi, [eax + 0x10]
lea esp, [esp]
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.00403ad0
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], edi
jae 0x402a1a
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
push edx
push ecx
push 1
push eax
call fcn.00528b3a
mov edx, dword [ebp - 0x24]
push edx
push 2
push 1
push 0x59403c
call fcn.00528b3a
add esp, 0x20
cmp dword [ebp - 0xc], edi
jb 0x402a50
mov eax, dword [ebp - 0x20]
push eax
call fcn.00427ab5
add esp, 4
add esi, 0x1c
cmp esi, dword [ebx + 0x2c]
jne 0x4029f0
pop edi
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0052896f
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00527d0f
mov esp, ebp
pop ebp
ret

Function at 0x4049d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4049eb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404a22
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x404a1e
jmp 0x404a10
cmp esi, eax
jae 0x404a22
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404a10
cmp esi, eax
jb 0x404a29
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x408da6
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x408dd3
or ecx, 0xffffffff
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov word [esi + 0x1c], bx
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.0042a532
mov ecx, dword [ebp + 0xc]
movzx edx, word [ebp + 8]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
je 0x408d9e
call fcn.0042a532
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x408d9e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
call fcn.0042a532
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 8]
push ebx
push ecx
push eax
call fcn.0052f500
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [ebp - 4]
push edx
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x408e67
mov eax, dword [ebp - 4]
push eax
mov ecx, esi
call fcn.0040aa00
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret