joyce8/EMBER2024-capa huggingface dataset:
Function at 0x537b80
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.005466e0
mov eax, dword [0x5f1464]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xbc]
xor ebp, ebp
push edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x30], eax
mov esi, dword [esi + 4]
mov dword [esp + 0x1c], esi
sub esi, edi
mov dword [esp + 0x10], esi
cmp dword [esp + 0xc8], edi
jae 0x537be4
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.00494640
add esp, 0xc
cmp edi, 0x40
jbe 0x537c00
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.00494640
add esp, 0xc
mov ecx, dword [esp + 0xc8]
lea eax, [esp + 0x34]
neg eax
lea ebx, [esp + 0x34]
and eax, 0x3f
add ebx, eax
lea eax, [edi + 0x100]
mov dword [esp + 0x20], ebx
cmp ecx, eax
jbe 0x537c2e
mov ebp, ecx
sub ebp, edi
sub ebp, 0x100
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
div edi
push edi
mov esi, edx
push 0
push ebx
mov dword [esp + 0x38], esi
call fcn.00549a70
add esp, 0xc
mov dword [esp + 0x18], 0
cmp ebp, dword [esp + 0xc8]
jae 0x537d0b
mov ecx, dword [esp + 0x1c]
mov esi, ebx
mov edx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x1f
sub ebp, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc0]
shr edx, 0x1f
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0xc]
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
lea ebx, [ecx + ebp]
shr ebx, 0x1f
lea ecx, [edi + ebp]
shr ecx, 0x1f
xor cl, dl
xor dl, bl
or cl, dl
mov edx, ebp
xor cl, bl
shr edx, 0x1f
xor dl, byte [esp + 0x14]
dec cl
mov dword [esp + 0x28], ecx
mov cl, byte [eax + ebp]
mov al, bl
xor al, byte [esp + 0x14]
inc ebp
or dl, al
xor dl, bl
mov ebx, dword [esp + 0x18]
neg dl
and dl, cl
and dl, byte [esp + 0x28]
or byte [ebx + esi], dl
inc ebx
mov edx, dword [esp + 0x10]
mov ecx, ebx
sub ecx, edi
mov eax, ebx
xor ecx, edi
xor eax, edi
or ecx, eax
xor ecx, ebx
shr ecx, 0x1f
neg ecx
and ebx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
lea eax, [ecx + ebp]
cmp eax, dword [esp + 0xc8]
jb 0x537c91
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
xor edx, edx
test edi, edi
je 0x537d3f
mov ebp, dword [esp + 0x30]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebx]
movzx eax, byte [esi + ebx]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, edi
jb 0x537d15
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00545b6c
add esp, 0xa8
ret
Function at 0x538840
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.005466e0
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x14]
inc ebx
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov eax, dword [esi + 8]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 1
je 0x53890c
mov edx, dword [esp + 0x20]
lea eax, [ebx + edx]
cmp eax, ecx
ja 0x538914
add dword [edi + 0xc], edx
add dword [edi + 0x10], edx
sub ecx, edx
mov dword [edi + 4], ecx
test dword [esi + 0x100], 0x200
mov eax, dword [edi + 0xc]
movzx ebx, byte [eax + ecx - 1]
je 0x5388da
cmp dword [esi + 0x88], 0
jne 0x5388da
mov eax, dword [esi + 0x58]
push 8
add eax, 8
push 0x5bd924
push eax
call fcn.00494370
add esp, 0xc
test eax, eax
jne 0x5388cd
test bl, 1
jne 0x5388cd
mov eax, dword [esi + 0x58]
or dword [eax], 8
mov eax, dword [esi + 0x58]
test byte [eax], 8
je 0x5388da
test ebx, ebx
je 0x5388da
dec ebx
mov eax, dword [esi + 0x80]
push ebp
push dword [eax]
call fcn.00498400
mov ebp, dword [edi + 4]
add esp, 4
mov dword [esp + 0x14], ebp
and eax, 0x200000
je 0x53891d
sub ebp, ebx
mov eax, 1
dec ebp
mov dword [edi + 4], ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp ebx, ecx
jbe 0x53888b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x28]
mov edx, ebp
add ecx, ebx
mov eax, ebp
sub edx, ecx
xor eax, ecx
xor edx, ecx
mov ecx, 0xff
or edx, eax
lea eax, [ebp - 1]
xor edx, ebp
shr edx, 0x1f
dec edx
cmp eax, ecx
mov dword [esp + 0x1c], edx
cmovb ecx, eax
xor esi, esi
test ecx, ecx
je 0x5389a3
mov eax, ebx
shr eax, 0x1f
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
lea edi, [ebp - 1]
add edi, eax
mov ebp, ecx
nop
mov al, byte [esp + 0x28]
lea edi, [edi - 1]
mov edx, ebx
mov ecx, esi
sub edx, esi
shr ecx, 0x1f
shr edx, 0x1f
xor al, cl
xor dl, cl
inc esi
or dl, al
movzx eax, byte [edi + 1]
xor dl, byte [esp + 0x28]
xor eax, ebx
dec dl
movzx ecx, dl
mov edx, dword [esp + 0x1c]
and ecx, eax
not ecx
and edx, ecx
mov dword [esp + 0x1c], edx
cmp esi, ebp
jb 0x538960
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
not edx
lea eax, [ebx + 1]
movzx ecx, dl
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub ebp, eax
shl eax, 8
or dword [edi], eax
mov eax, ecx
mov dword [edi + 4], ebp
and eax, 1
pop ebp
pop edi
not ecx
pop esi
or eax, ecx
pop ebx
add esp, 8
ret
Function at 0x56539d
Capabilities:
Read file on windows

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

Function at 0x56b17a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056accd
Function at 0x574b10
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x18
call fcn.005466e0
mov eax, dword [0x5f1464]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x24]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov dword [esp + 0x10], 1
mov edi, ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
xor esi, esi
nop
movsx edx, byte [edi]
lea edi, [edi + 1]
lea eax, [edx - 0x30]
cmp eax, 9
ja 0x574bd7
mov eax, dword [esp + ecx*4 + 0x14]
mov esi, 1
lea eax, [eax + eax*4]
lea eax, [eax - 0x18]
lea eax, [edx + eax*2]
mov dword [esp + ecx*4 + 0x14], eax
cmp eax, 0xff
jbe 0x574b50
xor esi, esi
call fcn.00574fe0
cmp eax, 1
jne 0x574ccc
test esi, esi
jne 0x574ce1
push 0xa1
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.004941e0
add esp, 0x10
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x574c48
push 0xa7
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.0048af50
add esp, 0x14
jmp 0x574c9f
cmp edx, 0x2e
jne 0x574c08
test esi, esi
je 0x574beb
cmp ecx, 3
je 0x574b7b
inc ecx
jmp 0x574b4d
push 0x88
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.0048af50
add esp, 0x14
jmp 0x574cbc
test edx, edx
jne 0x574b7b
cmp ecx, 3
jne 0x574b7b
test esi, esi
je 0x574b7b
movzx eax, byte [esp + 0x14]
lea esi, [edx + 1]
mov byte [ebx], al
movzx eax, byte [esp + 0x18]
mov byte [ebx + 1], al
movzx eax, byte [esp + 0x1c]
mov byte [ebx + 2], al
movzx eax, byte [esp + 0x20]
mov byte [ebx + 3], al
jmp 0x574b7d
cmp word [ecx + 8], 2
je 0x574c69
push 0xae
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.0048af50
add esp, 0x14
jmp 0x574c9f
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x10], 0
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
push 0xb7
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.004941e0
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x574ce1
push ebp
push str.host
push 2
call fcn.0048a310
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00545b6c
add esp, 0x18
ret
mov ecx, dword [esp + 0x24]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00545b6c
add esp, 0x18
ret

Function at 0x575060
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x5750a0
push 0x248
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.0048af50
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x1ead510
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18ee000]
push edi
or ebp, 0xffffffff
jmp 0x1ead532
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1ead539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1ead528
mov eax, 1
add ebx, ebx
jne 0x1ead54b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1ead55c
jne 0x1ead57b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1ead57b
dec eax
add ebx, ebx
jne 0x1ead568
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1ead540
add ebx, ebx
jne 0x1ead577
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1ead5cd
xor ecx, ecx
sub eax, 3
jb 0x1ead593
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1ead602
sar eax, 1
mov ebp, eax
jmp 0x1ead59e
add ebx, ebx
jne 0x1ead59e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1ead56c
inc ecx
add ebx, ebx
jne 0x1ead5ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1ead56c
add ebx, ebx
jne 0x1ead5b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1ead5ae
jne 0x1ead5ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1ead5ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1ead5ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1ead5de
jmp 0x1ead52e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1ead5ec
add edi, ecx
jmp 0x1ead52e
pop esi
mov edi, esi
mov ecx, 0x20752
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1ead60a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x1ead60f
lea edi, [esi + 0x1aa9000]
mov eax, dword [edi]
or eax, eax
je 0x1ead677
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e6fd90]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e6fed4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1ead635
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e6fedc]
or eax, eax
je 0x1ead671
mov dword [ebx], eax
add ebx, 4
jmp 0x1ead652
call dword [esi + 0x2e6fed8]
mov ebp, dword [esi + 0x2e6fee0]
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 0x1ead6ab
sub esp, 0xffffff80
jmp 0x9b1c38
Function at 0x401eec
Capabilities:
Create thread
Terminate thread

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x7826c], edi
mov dword [esi + 0x7824c], edi
je 0x401f1f
push 0xb
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x444
push dword [esi + 0x7826c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x7826c], edi
lea eax, [esi + 0x78250]
push eax
push edi
push esi
push 0x401f51
push edi
push edi
mov dword [esi + 0x7824c], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 2
push eax
mov dword [esi + 0x7826c], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
ret

Function at 0x40292b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4029d9
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4029d9
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4029d9
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4029d9
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4029d2
mov ecx, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp + 0x10]
rep movsb byte es:[edi], byte [esi]
push eax
xor esi, esi
push esi
push ebx
mov dword [ebp + 0x10], esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4029cb
mov edi, dword [ebp + 0x10]
push 0x10
call sub.gdiplus.dll_GdipAlloc
cmp eax, esi
je 0x4029d9
push esi
push edi
mov ecx, eax
call fcn.004029e2
jmp 0x4029db
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x402a1c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
push edi
jne 0x402a55
push dword [esi + 0x4024]
add esi, 0x4024
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x402b03
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x402b03
push dword [esi + 0x4024]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x402a73
push 5
push dword [esi + 0x4024]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x78258]
cmp dword [esi + 0x7825c], ecx
lea edi, [esi + 0x78258]
lea eax, [esi + 0x7825c]
je 0x402b03
mov dword [eax], ecx
lea ecx, [ebp - 0x10]
call fcn.00401000
cmp dword [edi], 0
mov eax, dword [ebp - 4]
push 0x13
je 0x402ae4
sub eax, dword [ebp - 0xc]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0xfffffffffffffffe
push dword [esi + 0x4024]
call edi
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 0x13
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 1
push dword [esi + 0x4024]
call edi
jmp 0x402b03
sub eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0xffffffffffffffff
push dword [esi + 0x4024]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
leave
ret
Function at 0x40357a
Capabilities:
Identify system language via api

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call edi
call edi
xor esi, esi
mov si, ax
and esi, 0x3ff
call edi
push 7
pop edi
shr ax, 0xa
cmp si, di
mov dword [0x425968], 1
jne 0x4035b5
and dword [0x425968], 0
jmp 0x4037a7
cmp si, 0x16
jne 0x4035ca
mov dword [0x425968], 2
jmp 0x4037a7
cmp si, 0x13
jne 0x4035df
mov dword [0x425968], 3
jmp 0x4037a7
push 8
pop ecx
cmp si, cx
jne 0x4035f6
mov dword [0x425968], 4
jmp 0x4037a7
push 0xa
pop edx
cmp si, dx
jne 0x40360d
mov dword [0x425968], 5
jmp 0x4037a7
cmp si, 0xe
jne 0x403622
mov dword [0x425968], 6
jmp 0x4037a7
cmp si, 0x1b
jne 0x403633
mov dword [0x425968], edi
jmp 0x4037a7
cmp si, 4
jne 0x403658
cmp ax, 1
mov dword [0x425968], ecx
jne 0x4037a7
mov dword [0x425968], 0x19
jmp 0x4037a7
cmp si, 5
jne 0x40366d
mov dword [0x425968], 9
jmp 0x4037a7
push 0x10
pop eax
cmp si, ax
jne 0x403680
mov dword [0x425968], edx
jmp 0x4037a7
cmp si, 0x2a
jne 0x403695
mov dword [0x425968], 0xc
jmp 0x4037a7
cmp si, 0xc
jne 0x4036aa
mov dword [0x425968], 0xd
jmp 0x4037a7
push 0x12
pop ecx
cmp si, cx
jne 0x4036c1
mov dword [0x425968], 0xe
jmp 0x4037a7
cmp si, 0x19
jne 0x4036d6
mov dword [0x425968], 0xf
jmp 0x4037a7
cmp si, 2
jne 0x4036e6
mov dword [0x425968], eax
jmp 0x4037a7
push 0x15
pop eax
cmp si, ax
jne 0x4036fd
mov dword [0x425968], 0x11
jmp 0x4037a7
cmp si, 0x27
jne 0x40370e
mov dword [0x425968], ecx
jmp 0x4037a7
cmp si, 0x50
jne 0x403723
mov dword [0x425968], 0x13
jmp 0x4037a7
cmp si, 0x24
je 0x4036dc
cmp si, 0x29
jne 0x40373b
mov dword [0x425968], 0x16
jmp 0x4037a7
cmp si, 0x1f
jne 0x40374d
mov dword [0x425968], 0x17
jmp 0x4037a7
push 0x18
pop eax
cmp si, ax
je 0x4036dc
cmp si, 6
jne 0x403767
mov dword [0x425968], 0x1a
jmp 0x4037a7
cmp si, 0x22
jne 0x403779
mov dword [0x425968], 0x1b
jmp 0x4037a7
push 0x1d
pop eax
cmp si, ax
jne 0x40378d
mov dword [0x425968], 0x1c
jmp 0x4037a7
cmp si, 1
je 0x4036dc
cmp si, 0x11
jne 0x4037a7
mov dword [0x425968], 0x1e
push dword [0x425968]
push 0x415bd0
call fcn.0040352c
pop ecx
pop ecx
pop edi
mov dword [0x425968], eax
pop esi
ret
Function at 0x4037c1
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x104
mov esi, 0x42598c
push esi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call sub.MSVCRT.dll_wcsrchr
cmp eax, edi
pop ecx
pop ecx
je 0x4037ef
mov word [eax], di
push 0x415c08
push esi
call sub.MSVCRT.dll_wcscat
push dword [0x40f1e8]
push esi
call sub.MSVCRT.dll_wcscat
push 0x415bfc
push esi
call sub.MSVCRT.dll_wcscat
add esp, 0x18
push edi
push 0x80
push 3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 1
mov ebx, 0x40000000
push ebx
push esi
call edi
cmp eax, 0xffffffff
je 0x40383f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403937
push 0
push 0x80
push 4
push 0
push 1
push ebx
push esi
call edi
cmp eax, 0xffffffff
je 0x40385c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 4]
call fcn.0040102a
xor edi, edi
push edi
push 0x1a
push 0x400
lea ecx, [ebp - 4]
call fcn.00401863
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.004018df
push dword [0x40f1e8]
lea ecx, [ebp - 0x10]
push 0x415bf8
call fcn.004010d3
push eax
lea eax, [ebp - 8]
push eax
call fcn.00404981
push eax
lea ecx, [ebp - 4]
call fcn.00401203
lea ecx, [ebp - 8]
call fcn.00401911
lea ecx, [ebp - 0x10]
call fcn.00401911
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str..ini
lea ecx, [ebp - 8]
call fcn.004010d3
lea eax, [ebp - 8]
push eax
push dword [0x40f1e8]
lea eax, [ebp - 4]
push 0x415c08
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404981
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00404981
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404938
lea ecx, [ebp - 0x10]
call fcn.00401911
lea ecx, [ebp - 0x14]
call fcn.00401911
lea ecx, [ebp - 8]
call fcn.00401911
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0xc]
call fcn.00401911
lea ecx, [ebp - 4]
call fcn.00401911
call fcn.0040357a
push dword [0x425968]
push 0x415bd0
call fcn.0040352c
push dword [0x425978]
mov dword [0x425968], eax
push str.tray_start
call fcn.0040352c
add esp, 0x10
pop edi
pop esi
mov dword [0x425978], eax
pop ebx
leave
ret
Function at 0x403aef
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [0x40f1e8]
xor esi, esi
push esi
push esi
mov dword [0x4223b8], ebx
mov dword [0x42618c], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], esi
call edi
cmp eax, 0xb7
je 0x403b2d
call edi
cmp eax, 5
jne 0x403b47
lea eax, [ebp + 8]
push eax
push 0x403271
call dword [sym.imp.USER32.dll_EnumWindows]
push 0xaffe
call dword [sym.imp.USER32.dll_PostQuitMessage]
push esi
push ebx
push esi
push esi
mov eax, 0xfffffbb4
push eax
push eax
mov eax, SysReAllocStringLen
push eax
push eax
push 0xcf0002
push 0x4222f0
push 0x422228
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
push esi
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4045f6
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x42619c]
push ebx
push esi
push edi
mov dword [ebp - 0x814], eax
xor eax, eax
mov ecx, 0x1ff
lea edi, [ebp - 0x810]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x814]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x13
call fcn.004031bf
pop ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.00401075
push 0x415dc0
lea ecx, [ebp - 0x10]
call fcn.004010d3
mov esi, dword [eax]
push 0x415dbc
lea ecx, [ebp - 8]
call fcn.004010d3
mov eax, dword [eax]
push esi
push eax
lea ecx, [ebp - 0xc]
call fcn.0040129c
lea ecx, [ebp - 8]
call fcn.00401911
lea ecx, [ebp - 0x10]
call fcn.00401911
lea eax, [ebp - 0x814]
push str.translate_
push eax
call sub.MSVCRT.dll_wcscat
push dword [ebp - 0xc]
lea eax, [ebp - 0x814]
push eax
call sub.MSVCRT.dll_wcscat
lea eax, [ebp - 0x814]
push str..txt
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x18
lea ecx, [ebp - 4]
call fcn.0040102a
push str._r_nPlease_dont_forget__Write_in_e_mail_subject:_Strings_for:
lea ecx, [ebp - 4]
call fcn.00401221
push 0x13
call fcn.004031bf
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00401221
push str._and_Language_Name_:_German___Deutsch
lea ecx, [ebp - 4]
call fcn.00401221
mov esi, 0x415cc4
push esi
lea ecx, [ebp - 4]
call fcn.00401221
push esi
lea ecx, [ebp - 4]
call fcn.00401221
push 0x19
call fcn.004031bf
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00401221
push esi
lea ecx, [ebp - 4]
call fcn.00401221
push esi
lea ecx, [ebp - 4]
call fcn.00401221
push 0x415cbc
lea ecx, [ebp - 4]
call fcn.00401221
push dword [0x417580]
lea ecx, [ebp - 4]
call fcn.00401221
push esi
lea ecx, [ebp - 4]
call fcn.00401221
push 0x42381c
lea ecx, [ebp - 4]
call fcn.00401221
push esi
lea ecx, [ebp - 4]
call fcn.00401221
push esi
lea ecx, [ebp - 4]
call fcn.00401221
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push 0x40000000
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4047c9
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], 0xfeff
call esi
lea ecx, [ebp - 4]
call fcn.0040184e
push edi
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edi
call sub.MSVCRT.dll_wcslen
pop ecx
shl eax, 1
push eax
push dword [ebp - 0x14]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
push edi
push edi
lea eax, [ebp - 0x814]
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.00401911
lea ecx, [ebp - 0xc]
call fcn.00401911
pop edi
pop esi
pop ebx
leave
ret