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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x7ad700]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b059f
cmp byte [ebx], 0xa
jne 0x4b059f
or byte [edi + eax + 0x28], 4
jmp 0x4b05a4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4b06a3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4b0686
inc eax
cmp dl, 0xd
je 0x4b05d0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4b05f6
cmp eax, ecx
jae 0x4b0604
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4b05b8
jmp 0x4b06a3
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b0681
cmp dword [ebp - 0x10], 0
je 0x4b0681
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x7ad700]
test byte [eax + edi + 0x28], 0x48
je 0x4b065b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4b0646
mov byte [esi], dl
jmp 0x4b0657
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x7ad700]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4b06a3
cmp byte [ebp - 1], 0xa
jne 0x4b066a
cmp esi, ebx
jne 0x4b066a
mov byte [esi], 0xa
jmp 0x4b06a2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b2f5f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b06a3
mov byte [esi], 0xd
jmp 0x4b06a2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x7ad700]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b06a0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b06a3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b06ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x7ad700]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b06f2
cmp word [ebx], dx
jne 0x4b06f2
or byte [eax + edi + 0x28], 4
jmp 0x4b06f7
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4b085a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4b083a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4b0738
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b076e
cmp eax, edx
jae 0x4b077c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4b0713
jmp 0x4b085a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b0835
cmp dword [ebp - 0x18], 0
je 0x4b0835
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x7ad700]
test byte [eax + edi + 0x28], 0x48
je 0x4b080b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4b07cf
mov word [esi], cx
jmp 0x4b0806
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x7ad700]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x7ad700]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x7ad700]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4b085a
pop eax
cmp word [ebp - 4], ax
jne 0x4b081b
cmp esi, ebx
jne 0x4b081b
mov word [esi], ax
jmp 0x4b0857
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b2f5f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4b085a
push 0xd
pop eax
jmp 0x4b0816
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x7ad700]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4b0854
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4b085a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b9a5a
Capabilities:
Parse pe header

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

Function at 0x4c1a01
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f09f4
push 0x4f09ec
push str.FlsAlloc
push 0x1f
call fcn.004c182c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c1a35
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e9470]
call esi
jmp 0x4c1a3b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4c1a7f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f0a04
push 0x4f09fc
push str.FlsGetValue
push 0x21
call fcn.004c182c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c1ab6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e9470]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4c1abe
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f0a0c
push 0x4f0a04
push str.FlsSetValue
push 0x22
call fcn.004c182c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c1af8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4e9470]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4c33fa
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.004c3376
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4c3569
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4c3569
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4c351e
jg 0x4c3456
test eax, eax
je 0x4c3514
push 1
push 0x1000
call fcn.004c2044
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4c3479
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4c350b
push 0x8000
push ebx
call fcn.004b1c1e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4c34a2
jg 0x4c349d
cmp ecx, 0x1000
jb 0x4c34a2
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b280b
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c34e7
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 0x4c349d
jl 0x4c34ce
test ecx, ecx
jne 0x4c348f
push dword [ebp - 0xc]
push ebx
call fcn.004b1c1e
push esi
call fcn.004c1125
add esp, 0xc
xor ebx, ebx
jmp 0x4c3577
cmp byte [edi + 0x24], 0
je 0x4c34fe
cmp dword [edi + 0x20], 5
jne 0x4c34fe
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4c3509
mov ebx, dword [edi + 0x18]
jmp 0x4c350b
xor ebx, ebx
push esi
call fcn.004c1125
pop ecx
jmp 0x4c3577
test ecx, ecx
jg 0x4c34e0
jl 0x4c351e
test eax, eax
jae 0x4c34e0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b2f5f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4c353e
cmp byte [edi + 0x1c], 0
je 0x4c34e0
jmp 0x4c356f
push ebx
call fcn.004b9f80
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4c34e0
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 0x4c3577
cmp byte [edi + 0x1c], 0
je 0x4c3574
mov ebx, dword [edi + 0x18]
jmp 0x4c3577
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004b2f5f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c8122
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 0x4c81bf
push ebx
push esi
call fcn.004c80eb
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.004c3637
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c816c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c81be
push edi
push eax
call fcn.004c1ff6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4c818c
call fcn.004c1125
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c81bd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004c3637
add esp, 0x20
test eax, eax
jne 0x4c81ab
push edi
call fcn.004c1125
jmp 0x4c81b3
push ebx
call fcn.004c1125
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 0x4c81c2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4c81d3
pop esi
ret
push ebx
push edi
push esi
call fcn.004c80eb
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004c1ff6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4c81fb
push ebx
push esi
push edi
call fcn.004a6ab0
add esp, 0xc
push 0
call fcn.004c1125
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4c8955
Capabilities:
Set environment variable

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

Function at 0x4caabd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004c0716
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 0x4cab2c
cmp esi, dword [ebp - 4]
je 0x4cab27
cmp dword [ebp + 0xc], 0
je 0x4cab27
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4cab04
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004ca60f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4cab2e
xor eax, eax
inc eax
jmp 0x4cab2e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4cab93
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x51808c]
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.004c0716
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.004c0716
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 0x4cac0a
cmp word [ecx], dx
je 0x4cac0a
mov eax, dword [0x4f1154]
push edi
dec eax
push eax
push 0x4f1040
call fcn.004cab32
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4cac7d
cmp word [eax], dx
je 0x4cac7d
mov eax, dword [edi]
test eax, eax
je 0x4cac2e
cmp word [eax], dx
je 0x4cac2e
lea eax, [ebp - 0x10]
push eax
call fcn.004ca515
jmp 0x4cac37
lea eax, [ebp - 0x10]
push eax
call fcn.004ca5b0
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4caca7
mov eax, dword [0x4f103c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4f0d30
call fcn.004cab32
add esp, 0xc
test al, al
je 0x4caca7
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4cac72
cmp word [eax], di
je 0x4cac72
lea eax, [ebp - 0x10]
push eax
call fcn.004ca515
pop ecx
jmp 0x4caca9
lea eax, [ebp - 0x10]
push eax
call fcn.004ca5b0
jmp 0x4cac6f
mov eax, dword [edi]
test eax, eax
je 0x4cac94
cmp word [eax], dx
je 0x4cac94
lea eax, [ebp - 0x10]
push eax
call fcn.004ca4ca
pop ecx
jmp 0x4caca7
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 0x4cad72
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004ca9b7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4cad72
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4cad72
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4cad72
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4cacff
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004c1c9a
test ebx, ebx
je 0x4cad6d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004c1c9a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4cad72
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 0x4cad72
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004afd5c
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4cad74
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4a5b
leave
ret
Function at 0x40795a
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x40be00
call fcn.00407964
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x40dbf0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x4076fe
cmp eax, esi
jne 0x4076f1
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x407701
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4076d8
xor esi, esi
inc esi
mov eax, dword [0x40dbec]
cmp eax, esi
jne 0x407714
push 0x1f
call sub.MSVCR90.dll__amsg_exit
pop ecx
jmp 0x407743
mov eax, dword [0x40dbec]
test eax, eax
jne 0x40773d
mov dword [0x40dbec], esi
push 0x40a298
push 0x40a28c
call sub.MSVCR90.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x407743
jmp 0x407867
mov dword [0x40d3ec], esi
mov eax, dword [0x40dbec]
cmp eax, esi
jne 0x407767
push 0x40a288
push 0x40a274
call sub.MSVCR90.dll__initterm
pop ecx
pop ecx
mov dword [0x40dbec], 2
cmp dword [ebp - 0x20], ebx
jne 0x407774
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x40dbf4], ebx
je 0x407795
push 0x40dbf4
call fcn.00407c40
pop ecx
test eax, eax
je 0x407795
push ebx
push 2
push ebx
call dword [0x40dbf4]
mov eax, dword [sym.imp.MSVCR90.dll__wcmdln]
cmp dword [eax], ebx
je 0x407867
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x4077ff
cmp cx, bx
je 0x4077ba
cmp dword [ebp - 0x1c], ebx
jne 0x4077ff
movzx ecx, word [eax]
cmp cx, bx
je 0x4077cf
cmp cx, 0x20
ja 0x4077cf
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x4077ba
test byte [ebp - 0x40], 1
je 0x4077db
movzx ecx, word [ebp - 0x3c]
jmp 0x4077de
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x40d3e8], eax
cmp dword [0x40d3dc], ebx
jne 0x407844
push eax
call dword [sym.imp.MSVCR90.dll_exit]
cmp cx, 0x22
jne 0x407810
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x4077a4
cmp dword [0x40d3ec], ebx
jne 0x407852
call dword [sym.imp.MSVCR90.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40d3e8]
jmp 0x407873
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.004079a9
ret
call fcn.0049c000
jmp 0x40769b
Function at 0x10003808
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x353], 0
mov byte [ebp - 0x352], 0xda
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
push dword [ebp - 0x3a]
test dword [esp + edi*8 - 0x39a80001], esi
test dword [ebp + 0x4afffffc], esi
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
invalid

Function at 0x10003837
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x353], 0
mov byte [ebp - 0x352], 0xda
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
push dword [ebp - 0x3a]
test dword [esp + edi*8 - 0x39a80001], esi
test dword [ebp + 0x4afffffc], esi
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
invalid

Function at 0x1000385c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.10002ffe
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10002fb3
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
invalid

Function at 0x100038d4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
invalid
test dword [eax - 4], eax

Function at 0x10003ef7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [edx + 0x40], ch
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.10002fcc
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
invalid
push dword [eax]
Function at 0x100051bc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
wait
push 0xffffffffffffff8b
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.10002fee
push 0x6f
mov ah, 0x71
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x100051db
mov eax, 0x41636f72
cmp dword [esi + 4], eax
inc esi
add al, 0x75
invalid
call fcn.10002fee
mov esp, 0x8be238b9
pop edx
and al, 3
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.10002fee
divps xmm4, xmmword [ebx]
jp 0x1000521a
push dword [ebp + 8]
jne 0x10005225
push dword [ebp + 4]
push dword [ebp]
call fcn.100037ee
add byte [ebx], dh
rol dl, 0x10
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp
in eax, 0xff
inc dword [eax]
xor eax, eax
ret 0x10
Function at 0x10020599
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x100e5bc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
xor edi, edi
xor ecx, ecx
inc edi
cmp dword [esi + 0x14], ecx
jne 0x100207be
mov dword [ebp - 0x238], ecx
xor eax, eax
lea edi, [ebp - 0x234]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ecx
mov edx, 0x2d6
stosd dword es:[edi], eax
mov eax, dword [esi]
push edx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x220], ecx
mov edi, ecx
push ebx
mov ecx, esi
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x20c], 0x2da
mov dword [ebp - 0x208], 0x2d4
call dword [eax + 0x28]
test eax, eax
je 0x100207be
or dword [ebp - 0x218], 0xffffffff
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 0x228], eax
xor eax, eax
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + eax*4 - 0x210]
lea ecx, [ebp - 0x238]
push ecx
push 0x1005b573
push eax
push ebx
mov dword [ebp - 0x214], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov ecx, dword [ebp - 0x228]
xor eax, eax
cmp ecx, dword [ebp + eax*4 - 0x238]
je 0x10020674
inc eax
cmp eax, 4
jl 0x1002065d
mov eax, dword [ebp - 0x218]
jmp 0x1002067a
mov dword [ebp - 0x218], eax
test eax, eax
jns 0x10020695
mov eax, dword [ebp - 0x224]
inc eax
mov dword [ebp - 0x224], eax
cmp eax, 3
jl 0x1002062d
jmp 0x10020738
xor eax, eax
push 0x1fc
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call fcn.10074510
add esp, 0xc
mov dword [ebp - 0x244], 0xfffffca4
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + eax*4 - 0x238]
test eax, eax
je 0x10020706
push 0xff
lea ecx, [ebp - 0x204]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x204]
push eax
call fcn.10078bfd
pop ecx
push 1
lea ecx, [ebp - 0x24c]
push ecx
push dword [ebp - 0x214]
mov dword [ebp - 0x23c], eax
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x24]
test eax, eax
jg 0x100207be
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x466
push 0x2d6
push ebx
call esi
lea eax, [ebp - 0x220]
push eax
push 0
push 0x466
push 0x2da
push ebx
call esi
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x21c]
test ecx, eax
je 0x10020785
not eax
test ecx, eax
je 0x10020785
xor edi, edi
inc edi
jmp 0x100207be
push 0x1013
call fcn.1005868d
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp], 0x2d6
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push 0
push 0x468
push 0x2d6
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075551
leave
ret 4