joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011220c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x101122a9
push ebx
push esi
call fcn.101121d5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10112169
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10112256
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101122a8
push edi
push eax
call fcn.1010ee22
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10112276
call fcn.1010bc0d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101122a7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10112169
add esp, 0x20
test eax, eax
jne 0x10112295
push edi
call fcn.1010bc0d
jmp 0x1011229d
push ebx
call fcn.1010bc0d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x101122ac
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x101122bd
pop esi
ret
push ebx
push edi
push esi
call fcn.101121d5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1010ee22
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x101122e5
push ebx
push esi
push edi
call fcn.100e0e30
add esp, 0xc
push 0
call fcn.1010bc0d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10112a3f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1011255a

Function at 0x10112ef1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101321d8
push 0x101321d0
push str.FlsAlloc
push 0x1f
call fcn.10112d5c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10112f25
push dword [ebp + 8]
mov ecx, esi
call dword [0x101282e4]
call esi
jmp 0x10112f2b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10112f6f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101321e8
push 0x101321e0
push str.FlsGetValue
push 0x21
call fcn.10112d5c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10112fa6
push dword [ebp + 8]
mov ecx, esi
call dword [0x101282e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10112fae
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101321f0
push 0x101321e8
push str.FlsSetValue
push 0x22
call fcn.10112d5c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10112fe8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101282e4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10113086
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x101320c4
push str.GetTempPath2W
push 5
call fcn.10112d5c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101130c0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101282e4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]
Function at 0x1011c5d3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1010c3b2
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1011c642
cmp esi, dword [ebp - 4]
je 0x1011c63d
cmp dword [ebp + 0xc], 0
je 0x1011c63d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1011c61a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1011c125
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1011c644
xor eax, eax
inc eax
jmp 0x1011c644
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1011c6a9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1014800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1010c3b2
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1010c3b2
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1011c720
cmp word [ecx], dx
je 0x1011c720
mov eax, dword [0x10132d84]
push edi
dec eax
push eax
push 0x10132c70
call fcn.1011c648
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1011c793
cmp word [eax], dx
je 0x1011c793
mov eax, dword [edi]
test eax, eax
je 0x1011c744
cmp word [eax], dx
je 0x1011c744
lea eax, [ebp - 0x10]
push eax
call fcn.1011c02b
jmp 0x1011c74d
lea eax, [ebp - 0x10]
push eax
call fcn.1011c0c6
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1011c7bd
mov eax, dword [0x10132c6c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10132960
call fcn.1011c648
add esp, 0xc
test al, al
je 0x1011c7bd
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1011c788
cmp word [eax], di
je 0x1011c788
lea eax, [ebp - 0x10]
push eax
call fcn.1011c02b
pop ecx
jmp 0x1011c7bf
lea eax, [ebp - 0x10]
push eax
call fcn.1011c0c6
jmp 0x1011c785
mov eax, dword [edi]
test eax, eax
je 0x1011c7aa
cmp word [eax], dx
je 0x1011c7aa
lea eax, [ebp - 0x10]
push eax
call fcn.1011bfe0
pop ecx
jmp 0x1011c7bd
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1011c888
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1011c4cd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1011c888
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1011c888
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1011c888
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1011c815
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.101131cc
test ebx, ebx
je 0x1011c883
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.101131cc
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1011c888
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1011c888
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100f8090
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1011c88a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007c269
leave
ret
Function at 0x1011f73d
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1011f6b9
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1011f8ac
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1011f8ac
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1011f861
jg 0x1011f799
test eax, eax
je 0x1011f857
push 1
push 0x1000
call fcn.10110368
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1011f7bc
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1011f84e
push 0x8000
push ebx
call fcn.1011f5ea
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1011f7e5
jg 0x1011f7e0
cmp ecx, 0x1000
jb 0x1011f7e5
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10117236
add esp, 0x10
cmp eax, 0xffffffff
je 0x1011f82a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1011f7e0
jl 0x1011f811
test ecx, ecx
jne 0x1011f7d2
push dword [ebp - 0xc]
push ebx
call fcn.1011f5ea
push esi
call fcn.1010bc0d
add esp, 0xc
xor ebx, ebx
jmp 0x1011f8ba
cmp byte [edi + 0x24], 0
je 0x1011f841
cmp dword [edi + 0x20], 5
jne 0x1011f841
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1011f84c
mov ebx, dword [edi + 0x18]
jmp 0x1011f84e
xor ebx, ebx
push esi
call fcn.1010bc0d
pop ecx
jmp 0x1011f8ba
test ecx, ecx
jg 0x1011f823
jl 0x1011f861
test eax, eax
jae 0x1011f823
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10117e09
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1011f881
cmp byte [edi + 0x1c], 0
je 0x1011f823
jmp 0x1011f8b2
push ebx
call fcn.1011a4e1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1011f823
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1011f8ba
cmp byte [edi + 0x1c], 0
je 0x1011f8b7
mov ebx, dword [edi + 0x18]
jmp 0x1011f8ba
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10117e09
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10121840
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1012186d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1012186d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x405e3d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ac4], 0
push esi
jne 0x405e74
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 0x405e4e
mov dword [ecx*4 + 0x422ac0], eax
inc ecx
cmp ecx, 0x100
jl 0x405e49
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405ea5
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 + 0x422ac0]
xor eax, esi
inc ecx
dec edx
jne 0x405e87
pop edi
not eax
pop esi
ret 0xc

Function at 0x40c470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c488
mov eax, 1
add ebx, ebx
jne 0x40c4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c4a0
jne 0x40c4bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4a0
xor ecx, ecx
sub eax, 3
jb 0x40c4d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c542
mov ebp, eax
add ebx, ebx
jne 0x40c4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c50c
inc ecx
add ebx, ebx
jne 0x40c4f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c4ed
jne 0x40c509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c52c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c51d
jmp 0x40c48e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c52c
add edi, ecx
jmp 0x40c48e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c54a
cmp byte [edi], 1
jne 0x40c54a
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 eax, ebx
loop 0x40c54f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c5c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd70c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd748]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c57c
mov ecx, edi
jns 0x40c5ab
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 + 0xd74c]
or eax, eax
je 0x40c5c1
mov dword [ebx], eax
add ebx, 4
jmp 0x40c599
call dword [esi + 0xd750]
popal
jmp 0x401128
Function at 0x2c13700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02c1378f
jae 0x2c1370e
xor ecx, ecx
call fcn.02c1378f
jae 0x2c1373d
xor eax, eax
call fcn.02c1378f
jae 0x2c1374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02c1378f
adc al, al
jae 0x2c1372f
jne 0x2c13779
stosb byte es:[edi], al
jmp 0x2c13711
call fcn.02c1379b
sub ecx, ebx
jne 0x2c13756
call fcn.02c13799
jmp 0x2c13775
lodsb al, byte [esi]
shr eax, 1
je 0x2c13783
adc ecx, ecx
jmp 0x2c13772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02c13799
cmp eax, 0x7d00
jae 0x2c13772
cmp ah, 5
jae 0x2c13773
cmp eax, 0x7f
ja 0x2c13774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2c13711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x419e3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x421f98
cmp edx, dword [eax]
je 0x419e5f
add eax, 8
inc ecx
cmp eax, 0x422028
jl 0x419e50
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x421f98]
jne 0x419f8d
mov eax, dword [0x4222b8]
cmp eax, 1
je 0x419f67
test eax, eax
jne 0x419e90
cmp dword [0x421cd4], 1
je 0x419f67
cmp edx, 0xfc
je 0x419f8d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x419ec7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00417440
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004176d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x419f0a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004176d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41ce18
push edi
call fcn.004182d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00417440
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00417450
lea eax, [ebp - 0xa0]
push 0x41cdf8
push eax
call fcn.00417450
push dword [esi + 0x421f9c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00417450
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041a4fb
add esp, 0x2c
pop edi
jmp 0x419f8d
lea eax, [ebp + 8]
lea esi, [esi + 0x421f9c]
push 0
push eax
push dword [esi]
call fcn.004176d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401120
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via windows callback function

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x40
push 0x1000
push 0x13a
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401179
push 0x402540
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VirtualAlloc_failed:
push 0x4321c8
call fcn.004012f0
add esp, 8
mov ecx, eax
call fcn.00403a80
mov ecx, eax
call fcn.00403c00
mov eax, 1
jmp 0x40122e
push 0x13a
push section..data
mov eax, dword [ebp - 4]
push eax
call fcn.0040a1b0
add esp, 0xc
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4011d1
push 0x402540
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcessWindowStation_failed:
push 0x4321c8
call fcn.004012f0
add esp, 8
mov ecx, eax
call fcn.00403a80
mov ecx, eax
call fcn.00403c00
mov eax, 1
jmp 0x40122e
mov ecx, dword [ebp - 4]
push ecx
push 0x401100
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_EnumDesktopsA]
test eax, eax
jne 0x40121b
push 0x402540
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EnumDesktopsA_failed:
push 0x4321c8
call fcn.004012f0
add esp, 8
mov ecx, eax
call fcn.00403a80
mov ecx, eax
call fcn.00403c00
mov eax, 1
jmp 0x40122e
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x408b77
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408b98
jl 0x408b8f
test edi, edi
jne 0x408b98
xor eax, eax
xor edx, edx
jmp 0x408c59
cmp dword [ebx + 0x38], 0
je 0x408bad
push eax
push edi
push dword [ebp + 8]
call fcn.00408c5f
jmp 0x408c59
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408bf4
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408bf4
cmp eax, edi
jb 0x408bce
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a1b0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x408bfa
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408c4e
mov ecx, ebx
call fcn.004083c7
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408c39
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004113a9
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x408c4e
jmp 0x408c0c
test edx, edx
je 0x408c4e
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004113a9
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x409ff7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a036
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a036
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a036
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a036
cmp dword [ecx + 0x74], 0xe
jbe 0x40a036
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41866a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a268
push 0x42a260
push str.FlsAlloc
push 0x1f
call fcn.004184d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41869e
push dword [ebp + 8]
mov ecx, esi
call dword [0x426148]
call esi
jmp 0x4186a4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4186e8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a278
push 0x42a270
push str.FlsGetValue
push 0x21
call fcn.004184d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41871f
push dword [ebp + 8]
mov ecx, esi
call dword [0x426148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x418727
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a280
push 0x42a278
push str.FlsSetValue
push 0x22
call fcn.004184d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418761
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x426148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]