joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101c8920
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 + 0x1028b3d8]
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 0x101c8966
cmp word [ebx], dx
jne 0x101c8966
or byte [eax + edi + 0x28], 4
jmp 0x101c896b
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 0x101c8ace
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 0x101c8aae
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x101c89ac
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x101c89e2
cmp eax, edx
jae 0x101c89f0
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 0x101c8987
jmp 0x101c8ace
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 0x101c8aa9
cmp dword [ebp - 0x18], 0
je 0x101c8aa9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1028b3d8]
test byte [eax + edi + 0x28], 0x48
je 0x101c8a7f
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 0x101c8a43
mov word [esi], cx
jmp 0x101c8a7a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1028b3d8]
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 + 0x1028b3d8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1028b3d8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x101c8ace
pop eax
cmp word [ebp - 4], ax
jne 0x101c8a8f
cmp esi, ebx
jne 0x101c8a8f
mov word [esi], ax
jmp 0x101c8acb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.101c94f3
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x101c8ace
push 0xd
pop eax
jmp 0x101c8a8a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1028b3d8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x101c8ac8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x101c8ace
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 0x101d0303
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 0x101d03a0
push ebx
push esi
call fcn.101d02cc
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.101cc326
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101d034d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101d039f
push edi
push eax
call fcn.101c53f3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101d036d
call fcn.101c2f15
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101d039e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101cc326
add esp, 0x20
test eax, eax
jne 0x101d038c
push edi
call fcn.101c2f15
jmp 0x101d0394
push ebx
call fcn.101c2f15
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 0x101d03a3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x101d03b4
pop esi
ret
push ebx
push edi
push esi
call fcn.101d02cc
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.101c53f3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x101d03dc
push ebx
push esi
push edi
call fcn.101a7780
add esp, 0xc
push 0
call fcn.101c2f15
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x101d0b36
Capabilities:
Set environment variable

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

Function at 0x101d32cb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.101c32b9
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 0x101d333a
cmp esi, dword [ebp - 4]
je 0x101d3335
cmp dword [ebp + 0xc], 0
je 0x101d3335
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x101d3312
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.101d2e1d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x101d333c
xor eax, eax
inc eax
jmp 0x101d333c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x101d33a1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10286280]
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.101c32b9
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.101c32b9
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 0x101d3418
cmp word [ecx], dx
je 0x101d3418
mov eax, dword [0x1027a894]
push edi
dec eax
push eax
push 0x1027a780
call fcn.101d3340
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x101d348b
cmp word [eax], dx
je 0x101d348b
mov eax, dword [edi]
test eax, eax
je 0x101d343c
cmp word [eax], dx
je 0x101d343c
lea eax, [ebp - 0x10]
push eax
call fcn.101d2d23
jmp 0x101d3445
lea eax, [ebp - 0x10]
push eax
call fcn.101d2dbe
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x101d34b5
mov eax, dword [0x1027a77c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1027a470
call fcn.101d3340
add esp, 0xc
test al, al
je 0x101d34b5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x101d3480
cmp word [eax], di
je 0x101d3480
lea eax, [ebp - 0x10]
push eax
call fcn.101d2d23
pop ecx
jmp 0x101d34b7
lea eax, [ebp - 0x10]
push eax
call fcn.101d2dbe
jmp 0x101d347d
mov eax, dword [edi]
test eax, eax
je 0x101d34a2
cmp word [eax], dx
je 0x101d34a2
lea eax, [ebp - 0x10]
push eax
call fcn.101d2cd8
pop ecx
jmp 0x101d34b5
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 0x101d3580
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.101d31c5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x101d3580
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x101d3580
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x101d3580
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x101d350d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.101c70f6
test ebx, ebx
je 0x101d357b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.101c70f6
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101d3580
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 0x101d3580
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.101cc66a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x101d3582
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101a575e
leave
ret
Function at 0x101d6635
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10286280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x101d6678
call fcn.101b9bc1
mov dword [eax], 0xf
call fcn.101b9bd4
mov dword [eax], 0xd
call fcn.101ab595
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a575e
leave
ret
test eax, eax
jne 0x101d667f
inc eax
jmp 0x101d666c
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 0x101d666a
xor eax, eax
cmp ecx, 1
setne al
jmp 0x101d666c
Function at 0x101d6d5c
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.101d6cd8
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x101d6ecb
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x101d6ecb
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x101d6e80
jg 0x101d6db8
test eax, eax
je 0x101d6e76
push 1
push 0x1000
call fcn.101c4d9d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x101d6ddb
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101d6e6d
push 0x8000
push ebx
call fcn.101b9d34
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x101d6e04
jg 0x101d6dff
cmp ecx, 0x1000
jb 0x101d6e04
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.101c7ea6
add esp, 0x10
cmp eax, 0xffffffff
je 0x101d6e49
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 0x101d6dff
jl 0x101d6e30
test ecx, ecx
jne 0x101d6df1
push dword [ebp - 0xc]
push ebx
call fcn.101b9d34
push esi
call fcn.101c2f15
add esp, 0xc
xor ebx, ebx
jmp 0x101d6ed9
cmp byte [edi + 0x24], 0
je 0x101d6e60
cmp dword [edi + 0x20], 5
jne 0x101d6e60
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x101d6e6b
mov ebx, dword [edi + 0x18]
jmp 0x101d6e6d
xor ebx, ebx
push esi
call fcn.101c2f15
pop ecx
jmp 0x101d6ed9
test ecx, ecx
jg 0x101d6e42
jl 0x101d6e80
test eax, eax
jae 0x101d6e42
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101c94f3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101d6ea0
cmp byte [edi + 0x1c], 0
je 0x101d6e42
jmp 0x101d6ed1
push ebx
call fcn.101c991b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x101d6e42
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 0x101d6ed9
cmp byte [edi + 0x1c], 0
je 0x101d6ed6
mov ebx, dword [edi + 0x18]
jmp 0x101d6ed9
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.101c94f3
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101da043
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 0x101da064
jl 0x101da05b
test edi, edi
jne 0x101da064
xor eax, eax
xor edx, edx
jmp 0x101da125
cmp dword [ebx + 0x38], 0
je 0x101da079
push eax
push edi
push dword [ebp + 8]
call fcn.1004edf0
jmp 0x101da125
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x101da0c0
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x101da0c0
cmp eax, edi
jb 0x101da09a
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.101a7780
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 0x101da0c6
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x101da11a
mov ecx, ebx
call fcn.101d99f6
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x101da105
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.101b8e08
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 0x101da11a
jmp 0x101da0d8
test edx, edx
je 0x101da11a
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.101b8e08
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 0x101da360
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101da38d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101da38d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a870
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x42e8a0], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x42e89c]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x42e8a0], eax
cmp ecx, 0x26f
jl 0x40a880
mov dword [0x424940], 0x270
ret

Function at 0x40a8c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, dword [0x42d4a0]
cmp eax, dword [0x424460]
je 0x40a8d8
mov dword [0x424940], 0x271
cmp dword [0x424940], 0x270
jl 0x40a9f7
cmp dword [0x424940], 0x271
jne 0x40a90f
mov eax, dword [0x42d4a0]
call fcn.0040a870
mov eax, dword [0x42d4a0]
not eax
mov dword [0x42d4a0], eax
mov dword [0x424460], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x42e8a4]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x42e8a0]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x42eed4]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x424950]
xor edx, eax
mov dword [ebx*4 + 0x42e8a0], edx
cmp ebx, 0xe2
jl 0x40a918
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x42e8a4]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x42e8a0]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x42e514]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x424950]
xor edx, eax
mov dword [ebx*4 + 0x42e8a0], edx
cmp ebx, 0x26e
jl 0x40a96c
mov eax, dword [0x42f25c]
and eax, 0x80000000
mov edx, dword [0x42e8a0]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x42eed0]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x424950]
xor eax, edx
mov dword [0x42f25c], eax
mov dword [0x424940], 0
mov eax, dword [0x424940]
mov eax, dword [eax*4 + 0x42e8a0]
add dword [0x424940], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret
Function at 0x40c410
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x4241a0]
cmp ax, 0xcb
je 0x40c50c
cmp ax, 0xcc
je 0x40c50c
mov edx, dword [0x42f4b0]
test edx, edx
je 0x40c442
mov eax, dword [0x42f350]
call edx
mov ebx, eax
jmp 0x40c447
mov ebx, 0x42f354
cmp word [0x42f340], 0
jle 0x40c46a
mov eax, 0x42f320
call fcn.0040c6c0
mov eax, ebx
call fcn.0040bff0
mov eax, ebx
call fcn.0040c060
mov edi, dword [ebx]
jmp 0x40c48a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40c485
mov edx, edi
mov eax, ebx
call fcn.0040b4c0
jmp 0x40c488
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40c470
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x42f340], 0
jle 0x40c50c
mov edx, 0x42f260
mov eax, ebx
call fcn.0040b5f0
mov edi, eax
test edi, edi
je 0x40c4df
mov eax, dword [0x42f2f4]
mov dword [edi + 0xc], eax
cmp dword [0x42f2f4], 0
je 0x40c4d4
mov eax, dword [0x42f2f4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x42f2f4], eax
sub word [0x42f340], 1
cmp word [0x42f340], 0
sete bl
mov eax, 0x42f320
call fcn.0040c6d0
test bl, bl
je 0x40c50c
mov eax, 0x42f320
call fcn.0040c6b0
pop edi
pop esi
pop ebx
ret
Function at 0x40e320
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x114], 0
mov dword [0x42e6e0], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov eax, ebp
mov edx, 0
call fcn.0040e500
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x42e6e0]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00402fc0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x424210], eax
mov esi, dword [0x424210]
jmp 0x40e4c0
add esi, 1
movzx eax, byte [esi]
sub eax, 1
cmp eax, 0x20
jb 0x40e3b0
cmp byte [esi], 0
je 0x40e4c9
mov byte [ebp - 0x10c], 0
mov edi, esi
mov dword [ebp - 0x110], 0
jmp 0x40e425
mov al, byte [esi]
cmp al, 1
jb 0x40e41b
sub al, 0x20
jbe 0x40e3ec
sub al, 2
je 0x40e3ff
jmp 0x40e41b
mov al, byte [ebp - 0x10c]
test al, al
je 0x40e42a
add dword [ebp - 0x110], 1
jmp 0x40e422
cmp byte [esi + 1], 0x22
je 0x40e416
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x40e422
add esi, 1
jmp 0x40e422
add dword [ebp - 0x110], 1
add esi, 1
cmp byte [esi], 0
jne 0x40e3dc
test dword [ebp - 0x114], 0xffffffff
je 0x40e4b9
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov eax, ebp
call fcn.0040e500
mov byte [ebp - 0x10c], 0
mov esi, edi
mov eax, dword [0x42e6e0]
mov edx, dword [ebp - 0x114]
mov ebx, dword [eax + edx*4]
jmp 0x40e4b1
mov al, byte [esi]
cmp al, 1
jb 0x40e4a7
sub al, 0x20
jbe 0x40e478
sub al, 2
je 0x40e48b
jmp 0x40e4a7
mov al, byte [ebp - 0x10c]
test al, al
je 0x40e4b6
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
jmp 0x40e4ae
cmp byte [esi + 1], 0x22
je 0x40e4a2
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x40e4ae
add esi, 1
jmp 0x40e4ae
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
add esi, 1
cmp byte [esi], 0
jne 0x40e468
mov byte [ebx], 0
add dword [ebp - 0x114], 1
cmp byte [esi], 0
jne 0x40e3b3
mov ebx, dword [ebp - 0x114]
mov dword [0x42e6d0], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x42e6e0
call fcn.0040c270
mov eax, dword [0x42e6e0]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413630
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x41363c
mov eax, 0x42e770
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41364f
and eax, 0x10
sete al
jmp 0x413651
mov al, 0
leave
ret
Function at 0x413840
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x38]
push ebx
push esi
mov dword [ebp - 0x38], 0
mov eax, 1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
call fcn.00409ef0
call fcn.0040b2b0
push eax
test eax, eax
jne 0x413904
mov ebx, 1
sub ebx, 1
mov esi, esi
add ebx, 1
lea eax, [ebx*4 + 0x42fbec]
mov edx, 0
call fcn.00406ad0
mov dword [ebx*4 + 0x42fc0c], 0xffffffff
cmp ebx, 7
jl 0x413878
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x413904
push 1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
mov cx, 0
mov edx, 0xa
call fcn.00407490
mov eax, dword [ebp - 0x38]
mov edx, 1
call fcn.0040f940
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x413904
push 4
push ebx
push esi
mov eax, 0x413700
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x4137a0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
call fcn.0040a170
lea eax, [ebp - 0x38]
call fcn.00403620
pop eax
test eax, eax
je 0x41391b
call fcn.0040a2a0
pop esi
pop ebx
leave
ret

Function at 0x418c60
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push dword [ebx + 4]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x418c7a
mov dword [ebx + 0xc], 0
pop ebx
leave
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x48011c4
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..tls
nop
nop
nop
cmp eax, 0
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x466379a3
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

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

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6fcf2468
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x2e023b62
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219