joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452ae8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46f5e4
push 0x46f5dc
push str.FlsAlloc
push 0x1f
call fcn.00452913
mov esi, eax
add esp, 0x10
test esi, esi
je 0x452b1c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4632d8]
call esi
jmp 0x452b22
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x452b66
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46f5f4
push 0x46f5ec
push str.FlsGetValue
push 0x21
call fcn.00452913
mov esi, eax
add esp, 0x10
test esi, esi
je 0x452b9d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4632d8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x452ba5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46f5fc
push 0x46f5f4
push str.FlsSetValue
push 0x22
call fcn.00452913
mov esi, eax
add esp, 0x10
test esi, esi
je 0x452bdf
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4632d8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x455b8b
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.00455b07
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x455cfa
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x455cfa
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x455caf
jg 0x455be7
test eax, eax
je 0x455ca5
push 1
push 0x1000
call fcn.0045253b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x455c0a
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x455c9c
push 0x8000
push ebx
call fcn.0044bf9a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x455c33
jg 0x455c2e
cmp ecx, 0x1000
jb 0x455c33
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0044f7c2
add esp, 0x10
cmp eax, 0xffffffff
je 0x455c78
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 0x455c2e
jl 0x455c5f
test ecx, ecx
jne 0x455c20
push dword [ebp - 0xc]
push ebx
call fcn.0044bf9a
push esi
call fcn.00452634
add esp, 0xc
xor ebx, ebx
jmp 0x455d08
cmp byte [edi + 0x24], 0
je 0x455c8f
cmp dword [edi + 0x20], 5
jne 0x455c8f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x455c9a
mov ebx, dword [edi + 0x18]
jmp 0x455c9c
xor ebx, ebx
push esi
call fcn.00452634
pop ecx
jmp 0x455d08
test ecx, ecx
jg 0x455c71
jl 0x455caf
test eax, eax
jae 0x455c71
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00454d5c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x455ccf
cmp byte [edi + 0x1c], 0
je 0x455c71
jmp 0x455d00
push ebx
call fcn.00455a9d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x455c71
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 0x455d08
cmp byte [edi + 0x1c], 0
je 0x455d05
mov ebx, dword [edi + 0x18]
jmp 0x455d08
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00454d5c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x458beb
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 0x458c88
push ebx
push esi
call fcn.00458bb4
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.004564e8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x458c35
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x458c87
push edi
push eax
call fcn.0045341b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x458c55
call fcn.00452634
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x458c86
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004564e8
add esp, 0x20
test eax, eax
jne 0x458c74
push edi
call fcn.00452634
jmp 0x458c7c
push ebx
call fcn.00452634
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 0x458c8b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x458c9c
pop esi
ret
push ebx
push edi
push esi
call fcn.00458bb4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0045341b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x458cc4
push ebx
push esi
push edi
call fcn.0043c080
add esp, 0xc
push 0
call fcn.00452634
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x459421
Capabilities:
Set environment variable

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

Function at 0x45b3c8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00451c06
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 0x45b437
cmp esi, dword [ebp - 4]
je 0x45b432
cmp dword [ebp + 0xc], 0
je 0x45b432
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x45b40f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0045af1a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x45b439
xor eax, eax
inc eax
jmp 0x45b439
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x45b49e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4780c0]
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.00451c06
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.00451c06
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 0x45b515
cmp word [ecx], dx
je 0x45b515
mov eax, dword [0x46fbac]
push edi
dec eax
push eax
push 0x46fa98
call fcn.0045b43d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x45b588
cmp word [eax], dx
je 0x45b588
mov eax, dword [edi]
test eax, eax
je 0x45b539
cmp word [eax], dx
je 0x45b539
lea eax, [ebp - 0x10]
push eax
call fcn.0045ae20
jmp 0x45b542
lea eax, [ebp - 0x10]
push eax
call fcn.0045aebb
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x45b5b2
mov eax, dword [0x46fa94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x46f788
call fcn.0045b43d
add esp, 0xc
test al, al
je 0x45b5b2
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x45b57d
cmp word [eax], di
je 0x45b57d
lea eax, [ebp - 0x10]
push eax
call fcn.0045ae20
pop ecx
jmp 0x45b5b4
lea eax, [ebp - 0x10]
push eax
call fcn.0045aebb
jmp 0x45b57a
mov eax, dword [edi]
test eax, eax
je 0x45b59f
cmp word [eax], dx
je 0x45b59f
lea eax, [ebp - 0x10]
push eax
call fcn.0045add5
pop ecx
jmp 0x45b5b2
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 0x45b67d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0045b2c2
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x45b67d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x45b67d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x45b67d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45b60a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00452ce5
test ebx, ebx
je 0x45b678
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00452ce5
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45b67d
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 0x45b67d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0045ef92
add esp, 0x10
xor eax, eax
inc eax
jmp 0x45b67f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a7f3
leave
ret
Function at 0x45dc02
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4780c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x45dc45
call fcn.00443869
mov dword [eax], 0xf
call fcn.0044387c
mov dword [eax], 0xd
call fcn.0043fb1f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a7f3
leave
ret
test eax, eax
jne 0x45dc4c
inc eax
jmp 0x45dc39
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x45dc37
xor eax, eax
cmp ecx, 1
setne al
jmp 0x45dc39

Function at 0x460980
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4609ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4609ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x753e55
Capabilities:
Execute anti-debugging instructions

Disassembly:
add edi, 0xfaf6b455
jmp 0x753e30
mov dl, 0x1c
mov ebx, edi
jmp 0x753dd2
neg cx
jae 0x753df9
sub esp, 0x14
mov dx, word [esp + 0xe]
mov dx, 0xed0f
jmp 0x753c00
mov bx, word [esp]
bsf dx, si
jbe 0x753dc8
mov dl, 0x1c
jmp 0x753dca
sub esp, 0x14
mov dx, word [esp + 0xe]
jmp 0x753e07
mov dx, 0xed0f
jmp 0x753c00
lea esp, [esp + 2]
sub esp, 0xc0
mov esi, esp
lea edx, [esp + edx]
jmp 0x753deb
mov edx, 0x8edb75a6
mov cx, dx
rdtsc
bsr ax, bp
jmp 0x753e76
rdtsc
pop word [esp]
mov byte [esp], bh
jmp 0x753e1f
jo fcn.00753e99
jno fcn.00753e99

Function at 0x753e60
Capabilities:
Execute anti-debugging instructions

Disassembly:
btr eax, edx
jmp 0x754018
rdtsc
stc
inc dh
bswap edx
mov dl, byte [esp]
inc edx
jmp 0x753f2a
lea edx, [ebx + edi]
jmp 0x753eae
add cl, bl
mov ax, 0x51eb
add edx, ebp
jo 0x753ec7
lea edx, [ebx + edi]
not dx
jmp 0x753eb1
mov edx, 0x724b72be
mov eax, dword [esp]
pushal
lea eax, [edx + edi]
lea esp, [esp + 0x20]
jmp 0x753ede
inc dh
bswap edx
mov dl, byte [esp]
jmp 0x753e84
jne 0x753e7a
rdtsc
stc
jmp 0x753fed

Function at 0x754044
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea eax, [edx + edx]
lea eax, [edx*4]
not al
mov al, 0x1a
sub esp, 6
jae 0x754066
bts eax, edi
lea esp, [esp + 2]
jmp 0x754068
lea esp, [esp + 4]
ror dl, 0
jmp 0x754023
bts eax, edi
lea esp, [esp + 2]
jmp 0x754068
jmp 0x75404d
lea esp, [esp + 4]
xor dl, 0x7b
mov ax, 0x5739
cmc
ja 0x754094
jbe 0x754094
mov al, 0xc6
xchg byte [esp], al
setg ah
mov al, ah
mov al, 0x6a
jmp 0x75414e
lea esp, [esp + 4]
not dl
lea eax, [edi*4]
rol ax, cl
jb 0x75417d
stc
bswap eax
mov ax, word [esp]
bswap eax
jmp 0x7541e6
jmp 0x75425d
jo 0x7541c1
sub esp, 0x18
push word [esp + 0x1d]
jmp 0x754229
sub esp, 0x18
push word [esp + 0x1d]
lea esp, [esp + 2]
dec edi
bswap edx
mov dh, 0xf2
ror ah, 1
jmp 0x7541ef
bswap eax
add bl, dl
bswap edx
sub esp, 0x10
jmp 0x7541a8
jne 0x754211
lea edx, [edi + ebp]
pushal
jmp 0x7541fb
mov ax, cx
mov dh, byte [esp + 0xb]
mov eax, dword [esp + 0x13]
jmp 0x754220
lea edx, [edi + ebp]
pushal
mov ax, cx
mov dh, byte [esp + 0xb]
mov eax, dword [esp + 0x13]
mov dh, 0xf8
jmp 0x754245
lea esp, [esp + 2]
jmp 0x7541cd
pop dword [esp + 0x10]
bsr ax, cx
setle dh
mov dx, 0x1a85
jmp 0x75504f
rdtsc
rcl eax, 0xb
jle 0x75422f
pop dword [esp + 0x10]
jmp 0x754269
stc
bswap eax
mov ax, word [esp]
jmp 0x7541e4
bsr ax, cx
setle dh
mov dx, 0x1a85
rdtsc
jmp 0x755051
mov dl, 0x94
bswap eax
rdtsc
mov edx, 0xfffe016c
mov eax, 0xfe953f0
jmp 0x754293
lea edx, [esi + edi]
not ax
lea edx, [eax + 0xe9]
jmp 0x7542b2
lea edx, [esp + eax]
jmp 0x75430a
inc cl
lea eax, [ebx + edi]
sub esp, 0
jo 0x754565
lea edx, [esp + eax]
lea edx, [esi + edi]
not ax
lea edx, [eax + 0xe9]
mov dl, 0x94
jmp 0x7542b4
rdtsc
lea esp, [esp + 5]
lea esp, [esp + 3]
lea esp, [esp + 0x14]
jmp 0x7545b6
Function at 0x83492b
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00834adb
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x834a29
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x8349cc
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x834a0f
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x8349e3
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x8349fe
test al, 0x40
je 0x8349f5
mov ecx, dword [edi + 0x20]
jmp 0x8349fc
test al, 0x80
je 0x834a0f
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x834a0f
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x83499b
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18

Function at 0x4041d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40422c
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404223
cmp dword [ebp + 8], esi
jne 0x404223
cmp dword [ebp - 4], esi
jne 0x404223
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

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

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7e423845
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1382259d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0xc37508d
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x45ea346a
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401290
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404d1b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x408018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x40873c]
xor ebx, ebx
mov esi, 0x10
cmp eax, ebx
jne 0x40131f
mov eax, dword [0x408068]
cmp dword [0x40807c], esi
jae 0x4012e0
mov eax, 0x408068
push 0x4051d0
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [0x40873c], eax
cmp eax, ebx
jne 0x40131f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.log_file_create_failed.error:_d
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x4013eb
cmp eax, ebx
je 0x4013eb
push 0x3ff
lea eax, [ebp - 0x40f]
push ebx
push eax
mov byte [ebp - 0x410], bl
call sub.MSVCR100.dll_memset
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x410]
push edi
push edx
call dword [sym.imp.MSVCR100.dll_vsprintf]
add esp, 0x18
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x42c], bl
lea ecx, [ebp - 0x42c]
lea edx, [ebp - 0x410]
mov dword [ebp - 4], ebx
call fcn.00401040
mov eax, dword [ebp - 0x42c]
cmp dword [ebp - 0x418], esi
jae 0x40139d
lea eax, [ebp - 0x42c]
mov ecx, dword [0x40873c]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_fputs]
mov edx, dword [0x40873c]
push edx
call dword [sym.imp.MSVCR100.dll_fflush]
mov eax, dword [0x40873c]
mov esi, dword [sym.imp.MSVCR100.dll_fclose]
push eax
call esi
mov eax, dword [0x408748]
add esp, 0x10
cmp eax, ebx
je 0x4013d8
push eax
call esi
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404370
mov esp, ebp
pop ebp
ret
Function at 0x4032d0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4032e0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
push 0
sub eax, edx
push 0
sar eax, 1
push str.PATH
mov edi, eax
call esi
lea edi, [eax + edi + 2]
lea eax, [edi + edi]
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
push edi
mov ebx, eax
push ebx
push str.PATH
call esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403324
mov ecx, dword [0x405578]
mov eax, dword [ebp + 8]
mov dword [edi], ecx
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403340
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x403350
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403370
mov edx, dword [0x405578]
push ebx
push str.PATH
mov dword [edi], edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4033b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404d69
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x408018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x18], edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push edi
push edx
mov dword [ebp - 4], edi
push 0x80000002
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40347b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
push ecx
push edx
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403471
mov edx, dword [esi + 0x10]
mov ecx, dword [ebp - 0x10]
cmp ecx, edx
ja 0x403443
or eax, 0xffffffff
call fcn.00402290
jmp 0x403450
mov eax, ecx
push 0x20
sub eax, edx
mov ebx, esi
call fcn.004020d0
cmp dword [esi + 0x14], 8
jb 0x40345a
mov eax, dword [esi]
jmp 0x40345c
mov eax, esi
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov eax, dword [ebp - 0x14]
push edi
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404370
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408018]
jne 0x40437a
repz ret
jmp fcn.0040472e